Saravanan666/pypi-org huggingface dataset:
Package: piso
piso - pandas interval set operationspisoexists to bring set operations (union, intersection, difference + more), analytical methods, and lookup and join functionality topandas'interval classes, specifically- pandas.Interval
- pandas.arrays.IntervalArray
- pandas.IntervalIndexCurrently, there is a lack of such functionality in pandas, although it has been earmarked for development.  Until this eventuates, piso aims to fill the void.  Many of the methods can be used via accessors, which can be registered topandas.arrays.IntervalArrayandpandas.IntervalIndexclasses, for example:>>>importpandasaspd>>>importpiso>>>piso.register_accessors()>>>arr=pd.arrays.IntervalArray.from_tuples(...[(1,5),(3,6),(2,4)]...)>>>arr.piso.intersection()<IntervalArray>[(3,4]]Length:1,closed:right,dtype:interval[int64]>>>arr.piso.contains([2,3,5])235(1,5]TrueTrueTrue(3,6]FalseFalseTrue(2,4]FalseTrueFalse>>>df=pd.DataFrame(...{"A":[4,3],"B":["x","y"]},...index=pd.IntervalIndex.from_tuples([(1,3),(5,7)]),...)>>>s=pd.Series(...[True,False],...index=pd.IntervalIndex.from_tuples([(2,4),(5,6)]),...name="C",...)>>>piso.join(df,s)ABC(1,2]4xNaN(2,3]4xTrue(5,6]3yFalse(6,7]3yNaN>>>piso.join(df,s,how="inner")ABC(2,3]4xTrue(5,6]3yFalseThe domain of the intervals can be either numerical,pandas.Timestamporpandas.Timedelta.Severalcase studiesusing piso can be found in theuser guide.  Further examples, and a detailed explanation of functionality, are provided in theAPI reference.Visithttps://piso.readthedocs.iofor the documentation.Installationpisocan be installed from PyPI or Anaconda.To install the latest version from PyPI::python-mpipinstallpisoTo install the latest version through conda-forge::condainstall-cconda-forgepisoVersioningSemVeris used by piso for versioning releases.  For versions available, see thetags on this repository.LicenseThis project is licensed under theMIT LicenseAcknowledgmentsCurrently, piso is a pure-python implentation which relies heavily onstaircaseandpandas.  It is designed to operate as part of thepandas ecosystem.  The colours for the piso logo have been assimilated from pandas as a homage, and is not to intended to imply and affiliation with, or endorsement by, pandas.Additionally, two classes have been borrowed, almost verbatim, from the pandas source code:- `pandas.util._decorators.Appender`
- `pandas.core.accessor.CachedAccessor`
Package: pispy-client
PISpyIntroductionPISpy aims to be a simple but usefulPyPilookup client
for the Terminal, built withTextual.InstallationPISPy is a full-screen terminal-based tool and is best installed usingpipx:$pipxinstallpispy-clientRunningOnce installed, just runpispyfrom your shell.NamingWait! What? Is this pispy or pispy-client? Why the two names?Well... when I started hacking this together I went to check if PyPi had a
package calledpispyand it didn't, so I steamed ahead with that. Only
when I came to add the package to PyPi did it say it wouldn't let me because
it was too similar to another package.So... package name ispispy-clientbut the content ispispy.Work in progressPISpy is currently a work in progress. I'm still figuring out what it should
do and how; but for now it provides a simple package lookup interface.
Package: pisql
What is pisql ?pisql is a mix of a command line tool and a small python library to interact with aSybase ASEdatabase.It so happens, that I have to work with a Sybase ASE database and I wanted to have a tool to interact with it.But why ?The reason I built this is fairly simple although frustrating:My company has tight control over what gets installed on the workstationsMy company hasn't bought the SQL Anywhere drivers for ASE on top of ASE itself as of todayThe only way I have to interact with the database is through avery old and ugly piece of software called "sqlDbx".I wanted to have scripting and automation capabilities that the interface couldn't provide, but that bash/powershell/python could.What is it ?pisql is, for the CLI part, arich CLI wrapperaround the barebonesisqlcommand line tool that comes with the ASE installation every time.For the python part, it's a small library that allows you to interact with the database through python code.
You can turn.sqlfiles into dataframes (pandasorpolars), and further manipulate them.
You can use every tool you have in python to interact with the data, vizualize it, etc.How do I use it ?InstallationYou can install pisql through pip:pipinstallpisqlAlthough I recommendpipx:pipxinstallpisqlThis works on Windows, Linux and MacOS.UsageCLIThe CLI is fairly simple to use.To execute a single .sql file, you can just use theexeccommand:pisqlexecmy_file.sqlwhich is also aliased topisql e my_file.sqlandpisql x my_file.sql.To execute multiple .sql files, you can use what I call the "query mode" or "run mode", using eitherthe symbolsq,runor::. Once this more is activated, you can chain multiple executions togetherby using the++or//commands:pisqlq++file_one.sqlfile_two.sqlfile_three.sqlAn important feature of this mode, is that you can list both files and directories.pisql:://file.sqlsome_dirother_file.sqlWhat happens then is that pisql will execute sequentially:file.sqlfirstthen all the.sqlfiles insome_dirsecondthenother_file.sqllastOne nice feature is the presence of rich progress bars like so (give example)NB:I haven't had the time to implement further recursion, so if you have a directory insome_dir, it will be ignored.PythonWill explain in the next few days.What's next ?I'm currently working on a few things:Implementing a config file subcommand to set the default database, user, etc.Give more freedom to users to change the storage of the dataframes and config filesBuild a semi ORM to interact with the database through python. Comes to mind the SELECT, WHERE, JOIN, etc. clauses.Have a little templating feature, but nothing too fancy. I don't want to reinvent the wheel here.Use Agg-Grid to have a  web interface to interact with the database. I'm not sure how to do this yet, but I'll figure it out.Here's most of it for now ! I'll update this as I go.
Package: pisque
Python packages are great. Virtual environments are great.
Installing tools from PyPI is awesome.
Installing multiple unrelated packages simultaneously in the one virtual environment can be chaos.
You might wantdocker-compose,tox, andawsall available globally,
but you don’t want them stepping on each others toes inside the same virtual environment.
This is whatpisquehelps with!pisquewill create a sequestered virtual environment,
install a package and its dependencies usingpip,
and symlink any installed executables into your~/.local/bin.$pisqueinstalltoxCreating virtual environment ~/.local/share/pisque/environments/tox...
Installing dependencies...
Linking installed executables to ~/.local/bin
  * tox$pisqueinstalldocker-composeCreating virtual environment ~/.local/share/pisque/environments/docker-compose...
Installing dependencies...
Linking installed executables to ~/.local/bin
  * docker-composeInstallingpisquecan be installed just like any other Python package.
You probably want to install it in its own isolated virtual environment though,
for exactly the same reasons that you want to usepisquein the first place!
The following bash snippet will installpisqueto a scratch virtual environment,
then usepisqueto installpisque:$VIRTUAL_ENV=$(mktemp--directory--tmpdir"pisque-venv.XXXXXX")$python3-mvenv"$VIRTUAL_ENV"$"$VIRTUAL_ENV/bin/pip"installpisque$"$VIRTUAL_ENV/bin/pisque"installpisque$rm-rf"$VIRTUAL_ENV"
Package: pisslink
Pisslink.pyMinimalistic lavalink wrapper based on wavelink. Made for Pycord.PrerequisitesMake sure you have a runninglavalinkserver.Installationpip install git+https://github.com/KaasToast/Pisslink.pyBasic exampleimportdiscordimportpisslinkimportrefromdiscord.commandsimportslash_commandfromdiscord.extimportcommandsYOUTUBE_REGEX=re.compile(r'^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$')classClient(discord.Bot):def__init__(self):super().__init__()classMusic(commands.Cog):def__init__(self,client):self.client=clientself.client.loop.create_task(self.node())asyncdefnode(self):awaitself.client.wait_until_ready()awaitpisslink.NodePool.create_node(client=self.client,host='127.0.0.1',port=2333,password='youshallnotpass')@slash_command()asyncdefplay(self,ctx,query):'''Play a song from youtube.'''player=ctx.voice_clientawaitctx.defer()ifnotplayer:# try to connect to the voice channelifnotctx.author.voice:returnawaitctx.respond('You are not connected to a voice channel.')else:try:channel=ctx.author.voice.channelawaitchannel.connect(cls=pisslink.Player())player=ctx.voice_clientexceptdiscord.Forbidden:returnawaitctx.respond('I do not have access to this channel.')ifnotctx.author.voiceorplayer.channel!=ctx.author.voice.channel:# check if author is in same channel as the botawaitctx.respond('You must be in the same channel as the bot.')else:ifYOUTUBE_REGEX.match(query):# check if query is url.track=awaitpisslink.PisslinkTrack.get(query,return_first=True)else:# query is not a urltrack=awaitpisslink.PisslinkTrack.search(query,return_first=True)ifnottrack:# check if track was foundawaitctx.respond('Song not found.')else:# play the trackawaitplayer.play(track)awaitctx.respond(f'Playing{track.title}.')client=Client()client.add_cog(Music(client))client.run('TOKEN')For advanced usage seeadvanced.py
Package: pistachio
pistachioPistachio aims to simplify reoccurring tasks when working with the file system.DevelopingTo install pistachio, along with the tools you need to develop and run tests, run the following in your virtualenv:$python-mvenvenv
$source/env/bin/activate
$pipinstallflit
$flitinstallInstallYou can install pistachio by running the following command.$pipinstallpistachioUsageTo use pistachio you can inport the module by running the following commands.>>>importpistachioDescribeMethod to return a description for the resource.>>>pistachio.describe("README.md")Pistachio(path='README.md',exists=True,is_directory=False,is_file=True,is_symlink=False,name='README.md',stem='README',suffix='md')ExistsYou can confirm if a directory, file or symbolic link exists using the following method.>>>pistachio.exists("README.md")TrueGet MD5 HashThis method will return the MD5 hash string for a specific file.>>>pistachio.get_md5_hash("README.md")"2f853812babf98322618edeb24359591"Is DirectoryIs the resource a directory? True or False.>>>pistachio.is_directory("README.md")FalseIs FileIs the resource a file? True or False.>>>pistachio.is_file("README.md")TrueIs SymlinkIs the resource a symbolic link? True or False.>>>pistachio.is_symlink("README.md")FalseMake a SymlinkMake a new symbolic link.>>>pistachio.ln("README.txt","README.md")FalseMake a DirectoryMake a new directory or directory tree.>>>pistachio.mkdir("src")>>>pistachio.exists("src")TrueTouchThis method will create an empty file with a given filename and directory path.>>>pistachio.touch("foo.bar")TrueTreeThis method will return a list of directories, files and symlinks below a specific directory.>>>pistachio.tree("src")Tree(path='pistachio',results=[Pistachio(path='./__init__.py',exists=True,is_directory=False,is_file=True,is_symlink=False,name='__init__.py',stem='__init__',suffix='py')])
Package: pistar
Thepistaris a simple and lightweight function testing tool, using pistar testing framework can quickly
complete the development and execution of test cases.Basic introductionCommand entry:$ pistar
usage: pistar [options] <command> <args>

positional arguments:
  run          Execute test cases
  generate     Generate interface test cases

optional arguments:
  -v, --version  Show the version of pistar
  -h, --help     Show help messageSimple test example:frompistarimportBaseTestCase,teststepclassExampleTestCase(BaseTestCase):defsetup(self):print('ExampleTestCase setup...')@teststepdefstep_basic_assert(self):self.assert_that(100).is_type_of(int,float).is_less_than(200)self.assert_that([1,2,3]).contains(4)defteardown(self):print('ExampleTestCase teardown...')Execution and output:$ pistar run /test/example.py
collecting...
collected 1 test case

--------------------------------------------------- ExampleTestCase start ---------------------------------------------------
ExampleTestCase setup...
[2021-08-23 16:57:54,121] [ERROR] [**/_pistar/utilities/testcases/case.py:142]
    @teststep
    def step_basic_assert(self):
        self.assert_that(100).is_type_of(int, float).is_less_than(200)
>       self.assert_that([1, 2, 3]).contains(4)
                                     ^^^
E   expect [1, 2, 3] to contain 4, but it did not

/test/example.py:15 AssertionContainsException
ExampleTestCase teardown...
---------------------------------------------------- ExampleTestCase end ----------------------------------------------------

===================================================== test summary info =====================================================
FAILED /test/example.py::ExampleTestCase
===================================================== 1 failed in 0.03s =====================================================FeaturesTest cases can be flexibly composed by pre step, test step and post stepVarious test step usage, such as timeout control and parameterizationRich streaming assertion and error log outputSupport session level pre and post conditionsCompatible with pytest case executionAutomatic generation of basic test casesSome features of pistar refer to unittest and pytest.LicenseCopyright (c) Huawei Technologies Co., Ltd. 2020-present.Distributed under the terms of the MIT license, pistar is free software.
Package: pistar-echo-agent
PiStarEchoAgentThePiStarEchoAgentis a local agent that supportsHuawei Devcloud CloudTestto executePiStarandPytesttest cases.Basic introductionCommand entry:$ pistar-echo-agent
usage: pistar-echo-agent [-h] [-p PORT] -o OUTPUT [-v]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  specify the port of pistar echo agent server
                        # default value: 10001
  -o OUTPUT, --output OUTPUT
                        specify the report path of the task
  -v, --version         show the version of pistar-echo-agentStart Commandnohuppistar-echo-agent-o./result&Run the following command to avoid generatingnohup.outstandard output:nohuppistar-echo-agent-o./result>/dev/null2>&1&LicenseCopyright (c) Huawei Technologies Co., Ltd. 2021-present.Distributed under the terms of the MIT license,PiStarEchoAgentis free software.
Package: pistarlab
piSTAR LabWARNING: Under active development - not ready for public use.OverviewpiSTAR Lab is a modular deep reinforcement learning platform built to make AI development accessible and fun.Release: 0.0.1-dev(early release)Documentationhttps://pistarlab.readthedocs.ioFeaturesWeb UIPlugin System for adding new agents, environments or tasks typesPython API, anthing you can do in the UI, you can do in Python as wellRun agents in single and multi player environmentsExperiment trackingUses Ray Project (https://ray.io/) under the hood for distributed processingMore to comeUI ScreenshotsQuick StartDetailed documentation is published athttps://pistarlab.readthedocs.ioNotesOnly tested onUbuntu, but should also work onOS X.MS Windowsusers seeInstallation using DockerSuggest using Anaconda or Miniconda for Python installation (visithttps://www.anaconda.com/products/individualfor instructions)Requires pip and python 3.7 or 3.8Installationfrom pypipipinstall-Upistarlab[all]from repogitclone--single-branch--depth=1http://github.com/pistarlab/pistarlab/
pipinstall-e."[all]"UsageTo launch piSTAR Lab UI, run:pistarlab_launcherOpen browser to:http://localhost:7777ContributingWe are still in an early phase of this release but if you are interested in contributing to piSTAR Lab, please reach out.
Package: pistatus
Pi-StatusPi-Status fetches basic statistics regarding your Raspberry Pi including network, CPU, RAM & storage stats it then displays the stats in the command-line, a GUI app or a browser tab. The program can be used for remote monitoring of headless deploys or simply to conveniently get stats on your Pi. The GUI app and browser tab refresh the stats on a timely basis. The lyrics are fetched from Genius.InstallationRequires Python 3.6+. Use pip or pip3 depending on your installation. You might want to use the--userflag on Linux to avoid using pip as root.pip install pistatusChangelogv1The First Version!Usageusage: pistatus [-g] [-w]To use the CLI output no arguments are required.Arguments:-g, show the stats in the gui form       
  -w, start the web server on the local networkYou can quit the web server by pressingCtrl+Cand you will be able to see the IP address in the command line for reference.Compiling PiStatus for DevelopmentClone into this repocdinto the cloned repo.pip install -e .the -e flag installs it locally in editable mode.ScreenshotsWeb ViewCLI ViewGUI View
Package: pisten
PistenPisten(Pi + Listen) is a simple port listener that will forward valid wake-on-lan packets to the broadcast IP address.
Pisten is best suited for use on always-on, low-power devices, such as the Raspberry Pi.Some routers do not allow port forwarding to the broadcast IP address which necessitates the use of this program.
Also, it is generally safer to filter out unwanted packets before forwarding to the broadcast IP.InstallationYou can install pisten as a python package:python3 -m pip install pistenOr you can clone this repository:git clone https://github.com/davidpratt512/pistenUsageOn linux, you can usenohup pisten &to run the server.
By default, the server listens on port 1729 and forwards to 255.255.255.255:9.You can specify what port to listen to and what IP address/port to forward to:pisten -L 3141 -F 0 -I 127.127.127.127In this case, we are (-L)istening on port 3141, (-F)orwarding to port 0 and (-I)P address 127.127.127.127.Set up port forwardingAll routers can be configured to forward packets from specific ports to specific devices on your network.
You will want to forward a public UDP port of your choice to port 1729 (or whatever port you specify) of the IP address of your server.
You may want to consider creating a DHCP reservation for your server as well.
Package: pistl
PISTL (pronounced as "Pistol")About the figure above: Multiple shapes generated using PISTL as STL file and visualized inMeshmixerfor the purpose of this picture. The visualization in PISTL can be done using pyvista, which is installed as a dependency._What is PISTL?PISTL is a small (micro) library that can be used in python to programatically create stereolithographic (stl) files of regular geometric shapes like circle, cylinder, tetrahedron, sphere, pyramid and others by morphing these shapes. pystl also provide functions that can be used to translate and rotate these stl objects.In summary:
PISTL can be used for the following purposes:to create simple geometric shape files in .stl format.visualize this stl files. [PySTL uses pyvista for such visualizations].perform simple transformations like translate, rotate and scale shapes.PISTL is an open source project that welcomes contributions from developers from diverse community and backgrounds._contact :sumanan047@gmail.comto get added on the project formally.
Package: pistol
pistol======A python package utility to make packaging, sharing, installing, and managinglibraries simpler.Using Pip and requirements.txt has sufficed for python development thus far,though is lacking in comparison to tools such as Gem and NPM. For example,NPM allows a developer to distinguish between production and developmentdependancies. This functionality is not conveniently baked into Pip. Pistolis driven by a `package.yaml` file that contains a map of `tag`s to lists ofdependencies. Dependencies may then be installed using`pistol install[=tag] [package]`.## Commands### initCreates a basic pistol python package.### installInstalls a python package from PyPi.`pistol install[=tag] [package] --save=[tag]``#### Arguements- --save=[key]### uninstallRemoves a Python package.### uploadUpload a package to PyPi.#### Arguements- --user=[pypi_username]- --pass=[pypi_password]## Installation`pip install pistol`## Potential Aliases- load- whip- shoot## package.yamlThe `package.yaml` is structured as follows.```yamlname: pistolversion: 0.0.1description: >A python package utility to make packaging, sharing, installing, and managinglibraries simpler.dependencies:common: # Here are common required dependancies.- pipdevelop:test:```
Package: pistonapi
Piston API Wrapper for PythonThis is a very simple API Wrapper for thePiston API.The Piston API documentation can be foundhere.Installationpipinstallpistonapiorpythonsetup.pybuild
pythonsetup.pyinstallUsage ExamplefrompistonapiimportPistonAPI# Create a new Piston API instancepiston=PistonAPI()# Get all the supported languagesprint(piston.languages)# ORprint(piston.runtimes)# Execute your own code!code='print("Hello, World!")'print(piston.execute(language="py",version="3.9",code=code))
Package: piston-mini-client
OverviewPiston mini client is a package that allows you to easily describe an
API provided by a Django server using django-piston that takes care of:Serializing call arguments and deserializing responses from the api.  It
can deserialize json provided by Piston into light-weight objects.Making the http calls for you.  You should be able to call a method on an
api object instead of having to fetch a particular URL.Provide a in-code description of your API.  Developers should be able to
know your API by looking at the client code you provide.You can read thelatest docs online.Installationpiston-mini-client uses a standard distutils setup.py script, so you can use:python setup.py installRunning the testsTo run the tests, just installtox(can be in a virtualenv) and then run:toxThis will ensure the tests run on Python 2.6, 2.7 and 3.2, and the docs build
correctly.Building the docs locallyWithsphinxinstalled, you should be able to build the documentation for
this code with:cd doc
make htmlEnjoy!
Package: pistonpy
PistonpyPistonpy is an API wrapper for the Piston code execution engine by Engineer Man.Key FeaturesSimple modern and efficient Pythonic API using therequestslib.Supports application integration and CLI usage.RequirementsPython 3.8+requestsInstallingTo install the library, run the following commands:# Linux/MacOSpython3-mpipinstall-Upistonpy# Windowspy-3-mpipinstall-UpistonpyUsagefrompistonpyimportPistonApp# Initialize the client.piston=PistonApp()my_code="print('This code ran from app.py itself!')"output=piston.run(language="python",version="3.10.0",code=my_code)print(output)This gives the output:{'language':'python','version':'3.10.0','run':{'stdout':'This code ran from app.py itself!\n','stderr':'','code':0,'signal':None,'output':'This code ran from app.py itself!\n'}}run_file=piston.run(language="python",files=['test.py'])# version is optional. files even if it maybe only one must be given as lists.print(run_file)This gives the same output,{'language':'python','version':'3.10.0','run':{'stdout':'The code ran from test.py\n','stderr':'','code':0,'signal':None,'output':'The code ran from test.py\n'}}# You cannot provide both code and files in a single PistonAPP().run() instance.# For running multiple files (For now it ONLY supports multiple python files)multiple_files=piston.run(language="python",version="3.10.0",files=['test.py','test_two.py'])print(multiple_files)Sadly, the output for multiple files are provided all-together. This will be fixed in the upcoming updates. The above statement will output to:{'language':'python','version':'3.10.0','run':{'stdout':'The code ran from test.py\nthis is test 2\n','stderr':'','code':0,'signal':None,'output':'The code ran from test.py\nthis is test 2\n'}}print(piston.languages)# Prints the available languages along with their version.print(piston.aliases)# Prints the available languages along with their alias/aliases.print(piston.raw)# Prints the raw data without any formatting done.LicenseThis project is distributed under theMITlicense.PistonFor visiting Piston's github repository,click here.