Saravanan666/pypi-org huggingface dataset:
Package: pphp
Python PPHP: Hypertext Preprocessor.PPHPThis is a spinoff of PHP (PHP: Hypertext Preprocessor) that uses Python instead of the PHP language.How to use it:To host the server, simply runpython-mPPHPServerTo execute Python code inside a file, use:<?pphp#code here (line breaks permitted)?>and output will be recorded in the same way as PHP - through stdout.Example:<p>Request method:<?pphpecho(_SERVER['REQUEST_METHOD'])?></p>Some special globals:echo(text)- this is equivalent to sys.stdout.write(text)escape(text)- this is equivalent to PHP’shtmlspecialchars- escapes special HTML characters.__script__- this is the entire script currently being executed__db__- this is the server’s database, more documentation below_GET- this is the GET data as a dictionary_POST- this is the POST data as a dictionary_REQUEST- this is a combination of _GET and _POST_SERVER- this is the equivalent of PHP’s $_SERVER, with some exceptions described below.In _SERVER, the keysREQUEST_TIME, HTTP_ACCEPT, HTTP_ACCEPT_CHARSET, HTTP_HOST, HTTP_REFERER, HTTPS, REMOTE_HOST, SERVER_ADMIN, SERVER_SIGNATURE, SCRIPT_NAME, and SCRIPT_URIare all not available; and the keyGATEWAY_INTERFACEreturns the version of thecgimodule, not the gateway interface.Data for a server can be stored using the global__db__. This is simply a dictionary - you can store and retrieve values as such. Data in__db__is stored as JSON in the file__DATABASE__.json, under~/.pphpon Mac or Linux or%appdata%/.pphpon Windows. Changes to__db__will only show up in__DATABASE__.jsonafter all scripts have finished running.WARNING: Moving the file will reset that script’s data!Thanks to:banana439monkeyfor help in thinking of the name.StackOverflowfor help with the many problems I experienced.Python(duh) for having such awesome batteries included.
Package: pphw-utils
Package for taking an array of records (utf-8 strings) and splitting it to batches of records, for a delivery system with following limits:max size of a record is 1MB (otherwise discarded)max size of a batch is 5MB (otherwise an additional batch created)max number of records in a batch is 500 (otherwise an additional batch created)Input is in format: [rec1, rec2, rec3, ..., recN]
Output is ini format: [batch1, batch2, batch3, ..., batchN] where each batch is array of records like input.To run unittests:python -m unittest -v test/test_records.py
Package: pphysics
PPhysicsPython module for game's physics library.InstallationRunpip install pphysicsFor more details, seeInstallation.Update version 1.1.1Config metadataUpdate version 1.1.0Added image alias pygame.imageAdded Color alias pygame.ColorAdded cursors alias pygame.cursorsAdded event alias pygame.eventAdded font alias pygame.fontAdded joystick alias pygame.joystickAdded key alias pygame.keyAdded mixer alias pygame.mixerAdded mouse alias pygame.mouseAdded muisc alias pygame.mixer.muiscAdded PixelArray alias pygame.PixelArrayAdded Rect alias pygame.RectAdd scrap alias pygame.scrapAdded sndarray alias pygame.sndarrayAdded sprite alias pygame.spriteAdded Surface alias pygame.SurfaceAdded surfarray alias pygame.surfarrayAdded time alias pygame.timeAdded transform alias pygame.transformAddeddocfor get_objects_by_tag(), get_object_by_name(), get_objects() and remove_tag()Fixed error at get_object_by_name(): No variables named 'object'. Did you mean: 'objects'?Update Vector constructor 5: Vector() -> Vector with position (0, 0)Update GameObject constructor: Allow setting property in constructor.Update Object.docChange returned value of Object.Force(), Object.del_tag(), Object.add_tag(), Object.set_name() from None to self.Change returned value of World.add() from None to selfUpdate World.add() to add many object in onceSupport GameObject.position, GameObject.velocity to be assigned to a tuple, the returned type is automatically converted to Vector.DOCUMENTARYSee documentary pages:PPhyics Documetation.EXAMPLESeeSimple game's source code
Package: ppi-client
# PPI SDK for PythonPython library to integrate with PPI public APIThis library provides developers with a simple set of bindings to help you integrate PPI API, from account information to streaming market data.## RequirementsPython 3 or higher## InstallationPending On Python 3.xpip3 install ppi## Getting StartedSimple usage looks like:## DocumentationPending##  SupportPending## License` pending `
Package: ppig
PPIG: A simple AI terminal assistantExample:Input:➜ppiglistonlydirectoriesls-d*/
Thecommandhasbeencopiedtotheclipboard

➜Make sure your device has some sort of clipboard system such asxclip. If it doesn't you can install it executing:➜sudoapt-getinstallxclipConfigppiguses OpenAI API. In order to use this API you need to be signed up in OpenAI as well as an API key. (get it here)Once you have your API key, you have two options:Create appig_cfg.yamlfile in the directory from which you will callppig. Choosing this option you won't be able to use ppig outside of that foler.Create the path~/.ppig/ppig_cfg.yaml. Choosing this option you will be able to use ppig from any folder.In both cases, theppig_cfg.yamlmuste be like this:api_key:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXReplaceXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXwith your API key.
Package: ppim-migrator
Photoprism to Immich migratorThis tool can migrate albums and favorites from Photoprism to Immich. It does not migrate you photos.PrerequisitesThe tool will only work if you keep the same file structure in immich that you already had in photoprism.
This is the case if you take theoriginalfolder from photoprism and use it in immich as external library.How it worksMigrate favoritesThe tool fetches all photos with afavoritetag from your photoprism instanceFor each photo, it retrieves the originalfilenameand its respectivepathIt connects to immich, tries to find the photo byfilenameand validates potential candidates on the immich side by comparing the filepathIf a match was found, it marks the photo on immich asfavoriteMigrate albumThe tool fetches all photos of a certainalbumfrom your photoprism instanceFor each photo, it retrieves the originalfilenameand its respectivepathIt connects to immich, tries to find the photo byfilenameand validates potential candidates on the immich side by comparing the filepathIf a match was found, it creates a newalbumin immich and adds the matched photosInstallationpip install ppim-migratorConfigurationCreate aconfig.yamlfile in the working directory where you want to run the command.photoprism:
  base_url: https://photoprism.example.com
  username: 
  password: 
immich:
  base_url: https://immich.example.com
  api_key:UsageMigrate all favorites from photoprism to immichpython -m ppim-migrator migrate-favoritesMigrate a certain album from photoprism to immichTo get analbum-idjust open the album in photoprism. The id is part of the url.
Example:Url, when opening the album:https://photoprism.example.com/library/albums/aqrcixa2uf1q45iq/viewThealbum-idwould beaqrcixa2uf1q45iqpython -m ppim-migrator migrate-album <album-id-here>
Package: ppi-network-annotation
A library for annotating a protein-protein interaction network using differentially expressed gene
informationINPUT FILESThere are 4 files which are necessary to run this program:A protein-protein interaction network in the format of:Entrez IDEntrez IDConfidence scoreSuch as:216 216 0.763679 1134 0.7355607 71 0.655552 960 0.632886 2064 0.95058 2064 0.731742 2064 0.87An example of such a network can be found [here](http://cbdm-01.zdv.uni-mainz.de/~mschaefer/hippie/download.php)An experiment file, in Excel format. Rows show individual entries, columns are the values of the following properties:Log2 fold changeAdjusted p valueEntrez idThe file may contain other columns too, but the indices and names of the above columns must
be entered as parameters
Package: pping
ppingpingin pythonInstallingpipinstallppingUsagefromppingimportpingresult=ping('www.example.com')# simple usageresult=ping('www.example.com',# optional argumentsrepeat=4,# -- Number of echo requests to send.interval=1,# -- Time in seconds interval between each request.size=32,# -- Send buffer size in bytes.timeout=1,# -- Timeout in seconds to wait for each reply.ttl=128)# -- Time To Live.Operation on the result>>>print(result)'''Reply from 93.184.216.34: bytes=32 time=151ms TTL=52Request timed out.Reply from 93.184.216.34: bytes=32 time=149ms TTL=52Reply from 93.184.216.34: bytes=32 time=150ms TTL=52Ping statistics for www.example.com:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss)Approximate round trip times in milli-seconds:Average = 150ms, Minimum = 149ms, Maximum = 151ms, Stdev = 0.5'''>>>result[0]Response(status='ok',src='93.184.216.34',dst='192.168.31.100',ttl=52,size=32,seq=1,rtt=0.15059328079223633)>>>result[1]Response(status='timedout')>>>result.hostname'www.example.com'>>>result.iplist['93.184.216.34']>>>result.times# timed out are not inclued[0.15059328079223633,0.1492629051208496,0.14995193481445312]>>>result.all_times# timed out as None[0.15059328079223633,None,0.1492629051208496,0.14995193481445312]# other properties>>>result.hostalias>>>result.avg>>>result.min>>>result.max>>>result.stdev>>>result.sent>>>result.recv>>>result.lostLicenseThis project is licensed under the MIT License - see the LICENSE file for details
Package: ppioner
Nanocal1. Install MCC Universal Library for Linux (uldaq)Author:Measurement Computing
Theuldaqpackage contains programming libraries and components for developing applications using C/C++ on Linux and macOS Operating Systems. For more information please refer tomccdaq github2. Install the Python interfaceInstall the uldaq Python API with:$ pip install uldaqRefer tohttps://pypi.org/project/uldaq/for more detailes.Note:sometimes one needs to change date on raspberry pi:$ sudo date -s "YYYY-MM-DD HH:MM:SS"3. For developersRefer to the UL documentation:https://www.mccdaq.com/PDFs/Manuals/UL-Linux/python/index.htmlpython -m build
pip install -e .
Package: ppi-origami
PPI OrigamiTools for processing and analysing PPI datasetsInstallingYou can install PPI origami using pippipinstall-Uppi-origamiDocumentationInformation for usage and installation is available from the documentation sitehttps://emad-combine-lab.github.io/ppi_origami/LicensePPI Origami - Tools for processing and analysing PPI datasetsCopyright (C) 2023-2024  Joseph SzymborskiThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttps://www.gnu.org/licenses/.
Package: ppipa
PP’s FreeIPA ModulePyPI package:ppipaIf you spot any problems or have any improvement ideas then feel free to
open an issue and I will be glad to look into it for you.InstallationA recommended way of installing the tool is pip install.pip installThe tool is available in PyPI and can be installed using pip:$ pip install --user ppipaUsagefrom ppipa import FreeIPAServer

ipa = FreeIPAServer(host='ipa01.example.com', bindpw='password')

users = ipa.find_users_by_email(email='first.last@example.com')
n = len(users)

user = ipa.users().get('first.last')
cn = user.cn
is_ldap_group_member = user.is_member_of('ldap_group')
Package: ppjson
=====ppjson=====.. image:: https://img.shields.io/pypi/v/ppjson.svg:target: https://pypi.org/pypi/ppjson.. image:: https://img.shields.io/travis/jiamo/ppjson.svg:target: https://travis-ci.org/jiamo/ppjson.. image:: https://readthedocs.org/projects/ppjson/badge/?version=latest:target: https://ppjson.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/jiamo/ppjson/shield.svg:target: https://pyup.io/repos/github/jiamo/ppjson/:alt: Updates------1. rfc: https://tools.ietf.org/html/rfc71592. use: https://github.com/dabeaz/sly3. inspire ref: https://github.com/counsellors/jsonparser=======History=======0.0.1 (2017-10-20)------------------* First release on PyPI.
Package: ppl
PRETTY PROGRESSBAR LIBRARYThe progress bar library that started with the idea of looking prettyInstallationOnly works withpython3.pip3 install pplHow to useSimple usageimporttimefrompplimportpbforiinpb(range(100)):time.sleep(0.1)Show task name along with the progress barimporttimeimportrandomfrompplimportpbtotal=120tasks=['Make paintball','Find dragons','Code in python','Take out the trash','Fill up water bottles for trip']fortaskintasks:i=0foriinpb(range(total),task=task):sleep_time=[.05,.04,.03,.02,.01][random.randint(0,4)]time.sleep(sleep_time)# emulating long-playing taskCustom bar lengthBy default the bar length is the full width of the terminal windowimporttimefrompplimportpbforiinpb(range(100),bar_len=20):time.sleep(0.1)
Package: pplay-pygame
Abstraction framework for creating games in Python, built on pygame, used by Computer Science students at Universidade Federal Fluminense.More information and detailed documentation on the project website:https://www2.ic.uff.br/pplay/Installationpip install pplay-pygameCreditsProf. Esteban CluaProf. Anselmo MontenegroGabriel SaldanhaAdonis GasigliaYuri NogueiraDependenciesPPlay obviously depends on Python and pygame and all their dependencies.Dependencies:Python >= 3.7pygame >= 2.1.2
Package: pplbench
Getting Started with PPL BenchWhat is PPL Bench?InstallingGetting StartedWhat is PPL Bench?PPL Bench is a new benchmark framework for evaluating probabilistic programming languages (PPLs).InstallationEnter a virtual (or conda) environmentInstall PPL Bench core via pip:pip install pplbenchInstall PPLs that you wish to benchmark. For PPL-specific instructions, seeInstalling PPLs.
You could also run the following command to install all PPLs that are currently supported by PPL Bench (except for Jags):pip install pplbench[ppls]Alternatively, you could also install PPL Bench from source. Please refer toInstalling PPLsfor instructions.Getting StartedLet's dive right in with a benchmark run of Bayesian Logistic Regression. To run this, you'll need to install
PyStan (if you haven't already):pip install pystan==2.19.1.1Then, run PPL Bench with example config:pplbench examples/example.jsonThis will create a benchmark run with two trials of Stan on the Bayesian Logistic Regression model. The results of the run are saved in theoutputs/directory.This is what the Predictive Log Likelihood (PLL) plot should look like:Please see theexamples/example.jsonfile to understand the schema for specifying benchmark runs. The schema is documented inpplbench/main.pyand can be printed by running the help command:pplbench -hA number of models is available in thepplbench/modelsdirectory and the PPL implementations are available in thepplbench/pplsdirectory.Please feel free to submit pull requests to modify an existing PPL implementation or to add a new PPL or model.Join the PPL Bench communityFor more information about PPL Bench, refer toBlog post:linkPaper:linkWebsite:linkSee theCONTRIBUTING.mdfile for how to help out.LicenseThis source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
Package: ppline
To install the library:pipinstallppline1. AboutThe librarypplinecan execute any class or any sequance of classes in any order. In other words, it is able to execute both:a specific class from a particular python file that can contain multiple classes, oran ordered sequence of specified classes from different python files.2. How it works2.1. Triggering a sequence of classes in orderTo build a pipeline with classes to execute, you have to create a config .yml file in a root directory in the following form:steps:
    [step name]:
        exec: [relative path to a file]:[class to execute]
    [step name]:
        exec: [relative path to a file]:[class to execute]
    [step name]:
        exec: [relative path to a file]:[class to execute]Let's create a config .yml file with the namecollect.yml:steps:
    preProcessing:
        exec: src/calculation.py:Calculate
    kMeans:
        exec: src/models.py:Kmeans
    hyperTuning:
        exec: src/tuning.py:GridSearchThe executable classes specified in collect.yml should have a__call__method. For instance, if we open aforementioned in collect.yml file insrc/calculation.pyand look atCalculateclass that we trigger, we seecallmethod in the end.#this is src/calculation.pyclassCalculate(object):defsum(self):a=2b=4self.c=a+bdefdivide(self):f=4self.d=self.c/fdefshow_result(self):print(self.d)def__call__(self):self.sum()self.divide()self.show_result()In order for the ppline to work, you have to make sure thatyour code is module-enabled (you have to have__init__.pyin every directory with.pyfiles that you desire to execute classes from;the names of your steps in.ymlare unique;After creating a configuration .yml file in your root directory, use the following command to trigger the pipeline in terminal:python-mppline.cli--config_filecollect.yml2.2. Triggering one class from .py filePpline can also trigger a specific class from a specific .py file.python-mppline.cli--trigger_classpath/to/file.py:TestClassBelow is an example of command that triggers aCalculateclass fromcalculation.pyfile.python-mppline.cli--trigger_classsrc/calculation.py:CalculateNote:Calculateclass should have a__call__method that executes desired class functions, andsrc/calculation.pyshould contain__init__.pyfile.To dodependency map between stepsindependent steps in parallelmake png export of visualized pipeline w/ namesChanges0.2.5(2021-08-08)feature to trigger a single classfeature to generate gitlab-ci.yml file from the pipeline config fileminor bug fixes0.2.2(2021-03-15)__call__ method is implementedminor bug fixes
Package: pplmyapi
📦📦 pplmyapi (Python PPL myAPI wrapper)Czech PPL (Professional Parcel Logistic) API wrapper written in Python. Helps you to communicate with PPL myAPI without worring about fetching access tokens and constructing your own requests. All (hopefully) done for you in the background.Install it from PyPIpipinstallpplmyapiUsageThis is still a work in progress, so the API might change in the future. However, the basic usage is as follows:Create aPPLinstance with your credentialsobtain aRESTConnectorinstance from thePPLinstance.use theRESTConnectorinstance to communicate with the PPL REST API (myAPI2)Send a package# Create Package instance with all the required data and 6 packages in the setpackage=Package(reference_id="123456789",package_product_type=Product.PPL_PARCEL_CZ_PRIVATE_COD,note="test",recipient=Recipient(name="John Doe",city="Hradec Králové",street="Hlavní 1",zip_code="50001",phone="123456789",email="j.doe@example.com",country='CZ'),sender=Sender(name="Test s.r.o.",street="Testovací 55/36",city="Praha",zip_code="11000",country="CZ",),payment_info=PaymentInfo(cod_price=100,cod_currency='CZK',cod_vs='123456789',insurance_price=100,insurance_currency='CZK',specific_symbol='123456',bank_account='123456789',bank_code='0300'),weighted_package_info=WeightedPackageInfo(weight=10.22,),package_set=(PackageSet(total_packages=6,)),flags=[PackageFlag(code=Flag.CL,value=True)],)# create packagespackages=[package]# create rest_connectorrest_con=ppl.connector()# create rest_actionresponse=rest_con.post_shipments(packages=packages,file_path='./out_test',file_name='test_010223.pdf',)Response from the API is a dictionary containing the following keys:labels: base64 encoded labels from the API (all together)packages: list ofPackageinstances (initionaly passed to thepost_shipmentsfunction) with extendedshipment_numberattribute,label_base64attribute (with single label) and extendedpackage_setattribute (withrelated_packagesattribute containing list ofPackageinstances related to the current package with the samereference_idattribute but differentshipment_numberattribute)Get label for a package# TODODevelopmentIf you're keen on contributing to this project, you can do so by forking this repository and creating a pull request. Please make sure to follow thePEP8style guide.
Package: pplogger
Logging helperPyPI package:pploggerIf you spot any problems or have any improvement ideas then feel free to
open an issue and I will be glad to look into it for you.InstallationA recommended way of installing the module is pip install.pip installThe tool is available in PyPI and can be installed using pip:$ pip install --user pploggerUsagefrom pplogger import get_logger

log = get_logger(debug=True)
log.debug('Debug message')
Package: pplpy
This Python package provides a wrapper to the C++Parma Polyhedra Library
(PPL).The whole package started as a fork of a tiny part of theSagesoftware.How it worksThe names of objects and methods are the same as in the library:>>>importppl>>>x=ppl.Variable(0)>>>y=ppl.Variable(1)>>>z=ppl.Variable(2)>>>cs=ppl.Constraint_System()>>>cs.insert(x>=0)>>>cs.insert(y>=0)>>>cs.insert(z>=0)>>>cs.insert(x+y+z==1)>>>poly=ppl.C_Polyhedron(cs)>>>poly.minimized_generators()Generator_System{point(1/1,0/1,0/1),point(0/1,1/1,0/1),point(0/1,0/1,1/1)}The available objects and functions from thepplPython module are:Variable,Variables_Set,Linear_Expression(defined inppl.linear_algebra)MIP_Problem(defined inppl.mip_problem)C_Polyhedron,NNC_Polyhedron(defined inppl.polyhedron)Generator,Generator_System,Poly_Gen_Relation,point,closure_point,ray,line(defined inppl.generator)Constraint,Constraint_System,Poly_Con_Relation,inequality,equation,strict_inequality(defined inppl.constraint)InstallationThe project is available atPython Package Indexand
can be installed with pip:$ pip install pplpyNote that if you have gmp and ppl installed in a non standard directory (e.g. you use brew
on MacOSX) then you need to set appropriately the variablesCFLAGSbefore callingpip. For
example:$ export CFLAGS="-I/path/to/gmp/include/ -L/path/to/gmp/lib/ -I/path/to/ppl/include/ -L/path/to/ppl/lib $CFLAGS"
$ pip install pplpyUsing from CythonAll Python classes from pplpy are extension types and can be used with Cython. Each
extension type carries an attributethisptrthat holds a pointer to
the corresponding C++ object from ppl.A complete example is provided with the filestests/testpplpy.pyxandtests/setup.py.SourceYou can find the latest version of the source code on github:https://github.com/sagemath/pplpyDocumentationAn online version of the documentation is available athttps://www.sagemath.org/pplpy/Compiling the html documentation requires make andsphinx.
Before building the documentation, you need to install the pplpy package (sphinx uses Python introspection).
The documentation source code is contained in the repositorydocswhere there is a standard
Makefile with a targethtml. Runningmake htmlin thedocsrepository builds the documentation
insidedocs/build/html. For more configuration options, runmake help.Licensepplpy is distributed under the terms of the GNU General Public License (GPL)
published by the Free Software Foundation; either version 3 of
the License, or (at your option) any later version. Seehttp://www.gnu.org/licenses/.RequirementsPPLCython(tested with both 0.29 and 3.0)cysignalsgmpy2On Debian/Ubuntu systems the dependencies can be installed with:$ sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev libppl-dev cython3 python3-gmpy2 python3-cysignals-pari
Package: pplugins
[![Documentation Status](https://readthedocs.org/projects/pplugins/badge/?version=latest)](http://pplugins.readthedocs.org/en/latest/?badge=latest) [![Build Status](https://travis-ci.org/JohnMaguire/pplugins.svg?branch=master)](https://travis-ci.org/JohnMaguire/pplugins) [![Coverage Status](https://coveralls.io/repos/github/JohnMaguire/pplugins/badge.svg?branch=master)](https://coveralls.io/github/JohnMaguire/pplugins?branch=master)Think of it as the yapsy of multiprocessing.Supported versionsPython 2.7Python 3.3+