Saravanan666/pypi-org huggingface dataset:
Package: petsafe-scoopfree
PetSafe Scoopfree - Python APIConnect and control a PetSafe Scoopfree device using the PetSafe-Scoopfree API.BREAKING CHANGE:Version 2.0 uses the new PetSafe API.
You will need to request new tokens.PetSafe will lock your account if you request data more often than once per 5 minutes.Installationpip install petsafe-scoopfreeIf installing from source code,python setup.py installLogin tokensYoumustuse tokens to interact with the PetSafe Scoopfree API.There are two methods to retrieve tokens:Get tokens using command lineExecutepython -m petsafe_scoopfree [email_address]to request an email code.Check your email for an email code from PetSafe.Enter your code to generate tokens.Get tokens using Pythonimportpetsafe_scoopfreeassf# replace with your email addressclient=sf.PetSafeClient(email="email@example.com")client.request_code()# check your email for a codecode=input("Enter email code: ")token=client.request_tokens_from_code(code)print("email:",client.email)print("id_token:",client.id_token)print("refresh_token:",client.refresh_token)print("access_token:",client.access_token)Example usageList devicesimportpetsafe_scoopfreeassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")devices=sf.devices.get_scoopers(client)# print all devicesfordeviceindevices:print(device)Rake scooperimportpetsafe_scoopfreeassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")devices=sf.devices.get_scoopers(client)# get the first scooperscooper=devices[0]scooper.rake_now()reset countimportpetsafe_scoopfreeassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")devices=sf.devices.get_scoopers(client)# get the first scooperscooper=devices[0]scooper.reset()reset rake delay to 25 secondsimportpetsafe_scoopfreeassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")devices=sf.devices.get_scoopers(client)# get the first scooperscooper=devices[0]scooper.modify_timer(amount=25)ContributingAll contributions are welcome.
Please, feel free to create a pull request!
Package: petsafe-smartfeed
PetSafe Smart Feed - Python APIConnect and control a PetSafe Smart Feed device using the PetSafe-SmartFeed API.BREAKING CHANGE:Version 2.0 uses the new PetSafe API.
You will need to request new tokens.PetSafe will lock your account if you request data more often than once per 5 minutes.Installationpip install petsafe-smartfeedIf installing from source code,python setup.py installLogin tokensYoumustuse tokens to interact with the PetSafe Smart-Feed API.There are two methods to retrieve tokens:Get tokens using command lineExecutepython -m petsafe_smartfeed [email_address]to request an email code.Check your email for an email code from PetSafe.Enter your code to generate tokens.Get tokens using Pythonimportpetsafe_smartfeedassf# replace with your email addressclient=sf.PetSafeClient(email="email@example.com")client.request_code()# check your email for a codecode=input("Enter email code: ")token=client.request_tokens_from_code(code)print("email:",client.email)print("id_token:",client.id_token)print("refresh_token:",client.refresh_token)print("access_token:",client.access_token)Example usageList feedersimportpetsafe_smartfeedassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")feeders=client.feeders# print all feedersforfeederinfeeders:print(feeder)Feed 1/8 cup at normal speedimportpetsafe_smartfeedassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")feeders=client.feeders# get the first feederfeeder=feeders[0]feeder.feed(amount=1,slow_feed=False)Get current battery level (0 - 100)importpetsafe_smartfeedassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")feeders=client.feeders# get the first feederfeeder=feeders[0]print(feeder.battery_level)Get current food levelimportpetsafe_smartfeedassfclient=sf.PetSafeClient(email="email@example.com",id_token="YOUR_ID_TOKEN",refresh_token="YOUR_REFRESH_TOKEN",access_token="YOUR_ACCESS_TOKEN")feeders=client.feeders# get the first feederfeeder=feeders[0]status=feeder.food_low_statusifstatus==0:print("Feeder has food.")elifstatus==1:print("Feeder is low on food.")elifstatus==2:print("Feeder is out of food.")ContributingAll contributions are welcome.
Please, feel free to create a pull request!
Package: petsc
The Portable, Extensible Toolkit for Scientific Computation (PETSc),
is a suite of data structures and routines for the scalable (parallel)
solution of scientific applications modeled by partial differential
equations. It employs the Message Passing Interface (MPI) standard for
all message-passing communication.NoteTo installPETScandpetsc4py(mpi4pyis optional
but highly recommended) use:$ python -m pip install numpy mpi4py  (or pip install numpy mpi4py)
$ python -m pip install petsc petsc4py (or pip install petsc petsc4py)TipYou can also install the in-development versions with:$ python -m pip install Cython numpy mpi4py
$ python -m pip install --no-deps https://gitlab.com/petsc/petsc/-/archive/main/petsc-main.tar.gzTo set the MPI compilers use the environmental variablesMPICC,MPICXX,MPIF90.Provide anyPETSc./configure options using the environmental variablePETSC_CONFIGURE_OPTIONS.Do not use thePETSc./configureoptions--with-cc,--with-cxx,--with-fc, or--with-mpi-dir.Ifmpi4pyis installed the compilers will obtained from that installation andMPICC,MPICXX,MPIF90will be ignored.
Package: petsc4py
Python bindings for PETSc.InstallIf you have a working MPI implementation and thempicccompiler
wrapper is on your search path, it is highly recommended to installmpi4pyfirst:$ pip install mpi4pyEnsure you have NumPy installed:$ pip install numpyand finally:$ pip install petsc petsc4pyCitationsIf PETSc for Python been significant to a project that leads to an
academic publication, please acknowledge that fact by citing the
project.L. Dalcin, P. Kler, R. Paz, and A. Cosimo,Parallel Distributed Computing using Python,
Advances in Water Resources, 34(9):1124-1139, 2011.http://dx.doi.org/10.1016/j.advwatres.2011.04.013S. Balay, S. Abhyankar, M. Adams, S. Benson, J. Brown,
P. Brune, K. Buschelman, E. Constantinescu, L. Dalcin, A. Dener,
V. Eijkhout, J. Faibussowitsch, W. Gropp, V. Hapla, T. Isaac, P. Jolivet,
D. Karpeyev, D. Kaushik, M. Knepley, F. Kong, S. Kruger,
D. May, L. Curfman McInnes, R. Mills, L. Mitchell, T. Munson,
J. Roman, K. Rupp, P. Sanan, J Sarich, B. Smith,
S. Zampini, H. Zhang, and H. Zhang, J. Zhang,PETSc/TAO Users Manual, ANL-21/39 - Revision 3.20, 2023.http://dx.doi.org/10.2172/2205494,https://petsc.org/release/docs/manual/manual.pdf
Package: petscii-codecs
The petscii-codecs package provides encodings to represent data from
Commodore 8-bit systems. These computers used a modified form of
ASCII, commonly called PETSCII, which contains graphic symbols as well
as control codes.Codecs for the following systems are available:PET 2001later PETsVIC-1001VIC-20C64C16Plus4Each system has two codecs, typically one for uppercase and graphics,
one for lowercase and uppercase. The exception is the VIC-1001 which
has a katakana codec instead of the lowercase and uppercase one.UsageCodecs are used in the same way as other encodings:import petscii_codecs

with open('example.seq', encoding='petscii_c64en_lc') as f:
    for line in f:
        print(line)
Package: petstore-sdk
Getting Started with Swagger PetstoreIntroductionThis is a sample server Petstore server.  You can find out more about Swagger athttp://swagger.ioor onirc.freenode.net, #swagger.  For this sample, you can use the api keyspecial-keyto test the authorization filters.Find out more about Swagger:http://swagger.ioInstall the PackageThe package is compatible with Python versions3 >=3.7, <= 3.11.
Install the package from PyPi using the following pip command:pipinstallpetstore-sdk==6.6.6You can also view the package at:https://pypi.python.org/pypi/petstore-sdk/6.6.6Initialize the API ClientNote:Documentation for the client can be foundhere.The following parameters are configurable for the API Client:ParameterTypeDescriptionenvironmentEnvironmentThe API environment.Default:Environment.PRODUCTIONhttp_client_instanceHttpClientThe Http Client passed from the sdk user for making requestsoverride_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk userhttp_call_backHttpCallBackThe callback value that is invoked before and after an HTTP call is made to an endpointtimeoutfloatThe value to use for connection timeout.Default: 60max_retriesintThe number of times to retry an endpoint call if it fails.Default: 0backoff_factorfloatA backoff factor to apply between attempts after the second try.Default: 2retry_statusesArray of intThe http statuses on which retry is to be done.Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]retry_methodsArray of stringThe http methods on which retry is to be done.Default: ['GET', 'PUT']passwordstringThe API client can be initialized as follows:fromswaggerpetstore.swaggerpetstore_clientimportSwaggerpetstoreClientfromswaggerpetstore.configurationimportEnvironmentclient=SwaggerpetstoreClient(password='Password')AuthorizationThis API usesCustom Authentication.List of APIsPetStoreUserClasses DocumentationUtility ClassesHttpResponseHttpRequest
Package: pettifogger
pettifoggerpettifogger (noun)pet·​ti·​fog·​ger | \ ˈpe-tē-ˌfȯ-gər, -ˌfä- \Definition of pettifogger1 : a lawyer whose methods are petty, underhanded, or disreputable : shyster2 : one given to quibbling over trifles(source:https://www.merriam-webster.com/dictionary/pettifogger)DescriptionPettifogger is a github actions workflow validator, that will sniff out things like forgotten checkouts and suspicious capital letter words. The intention is to provide some level of additional insight to the workflow files before they go to master/main.The project is still under initial development and is mainly intended for internal testing but other interested may try it out as well if their sanity can stand it.Installationpip install pettifoggerorpip install --upgrade pettifoggerUsagePettifogger can be run with or without--workflowargument. When the argument is defined, then only that workflow is being validated and if used together with--watch, then only that file is watched. When used without--workflowthe tool will search paths matching.github/workflowsin all subdirectories and will validate those. When the workflows are searched automatically--watchwill watch all those directories for changes.usage: pettifogger [-h] [--version] [--workflow WORKFLOW] [--suppress-suspicions] [--fail-on-suspicions] [--no-fail-on-error] [--watch]

optional arguments:
  -h, --help            show this help message and exit
  --version             Print pettifogger's version
  --workflow WORKFLOW   Path to a workflow file to validate
  --suppress-suspicions
                        Suppresses the suspicion output
  --fail-on-suspicions  Suspicions fail the validation
  --no-fail-on-error    Errors will not fail the validation
  --watch               Watch the file or workflow subdirectories detected automaticallyKnown limitationsTool has not been tested in Windows or in MacOS. It might work or then not. Please report any issues related to this using the Gitlab issues.Shell scripts only support *nix shell dialects (developed using bash). Windows powershell etc. are not supported at the moment.If the environment variables are not found from the workflow file, they are considered to be missing. This is something that is currently being looked into.LicenseThis project is licensed under MIT license.
Package: petyr
petyrAffine, Similarity Transformations and Homography for Python. Fast and chainable inplace operations. Produced matrix can be used withcv2.warpAffineandcv2.warpPerspective.InstallationFor stable releasepip3installpetyrOr, build from sourcepip3installgit+https://github.com/safwankdb/petyrUsagefrompetyrimportSimilarity,Affine,HomographyAffine,SimilarityandHomographyderive from theTransform2Dbase class which implements all the basic operations.Applying Transformationp=np.array([[0,0],[1,0],[1,1],[0,1]])rotate_and_move=Affine().rotate(90).translate(2,1)q=rotate_and_move*ppt=Homography.from_elements([1,0,0,0,1,0,0.1,0.2,1])r=pt*pFinding Transformationat=Affine.from_points(p,q)pt=Homography.from_points(p,q)st=Similarity.from_points(p,q)Basic OperationsThese operations modify the object in-place except forinvert()which return a new object.TranslationScalingShearingRotationInversionResetat=Affine()at.translate(1,3)at.scale(1.05,2)at.rotate(45,degrees=True)at.shear(10,45)at_inv=at.invert()Same goes forHomographyandTransform2Dobjects.ChainingChaining OperationsMutiple operations can be chained together.at=Affine()at.scale(2,2).rotate(90)at.shear(10,0).translate(-3,4)Chaining TransformsMultiple transforms can be multiplied together. This is anon-commutativeoperation. The rightmost transform will be applied first.a=Affine()a.translate(2,3)b=Homography()b.scale(4,5)c=a*bTestingTo run the inbuilt unit tests,gitclonehttps://github.com/safwankdb/petyrcdpetyr
python3-munittest-vMaitainersMohd SafwanTODOImplementpetyr.Homography.Add unit tests.Vectorizefrom_points.Add unit tests forAffineandHomographyclasses as well.AddSimilarityclass for similarity transforms.Update all tests for similarity transformUpdate README with Similarity TransformGenerate complete documentation.Move documentation to somwhere other than README.
Package: peu-bandoos
peuPython experiment utilsUtilities for software experimentation in python.
Here I publish small utilities I recurrently use in experimental projects.
This is also a pretext to publish my first package on PyPi.This is a work in progress, and by now only includes a few
meaningful functions.peu.core:dict_productperfroming the a dictiionary flavoured
cartesian product, useful to generate parameter combination for
software experiments.peu.multi:tracked_multproc_unorderedperfroming application of
function in parallel (via multiprocessing Pool) over a sequence of
inputs, usingtqdmto monitor progressExamplesdict_productfrompeu.coreimportdict_productparams={'a':[1,2,3],'b':{True,False}}fixed={'max_epochs':100,'scoring':'accuracy'}configs=dict_product(params,fixed=fixed)# =># [{'a': 1, 'b': False, 'max_epochs': 100, 'scoring': 'accuracy'},#  {'a': 1, 'b': True, 'max_epochs': 100, 'scoring': 'accuracy'},#  {'a': 2, 'b': False, 'max_epochs': 100, 'scoring': 'accuracy'},#  {'a': 2, 'b': True, 'max_epochs': 100, 'scoring': 'accuracy'},#  {'a': 3, 'b': False, 'max_epochs': 100, 'scoring': 'accuracy'},#  {'a': 3, 'b': True, 'max_epochs': 100, 'scoring': 'accuracy'}]tracked_multiproc_unorderedfrompeu.multiimporttracked_multiproc_unorderedimporttimedeff(x):time.sleep(0.1)return(x+1)**2tracked_multiproc_unordered(f,range(100))# 100%|████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 76.71it/s]InstallationThe package is published on pypi @https://pypi.org/project/peu-bandoos/0.0.2/$ pip install peu-bandoos==0.0.2
Package: peupasswd
PeupasswdAdvanced Password Security SoftwarePeupasswdis an advanced password security software written in python use in generating unique password for each of each service i.e you can generate special password for each of your social media or services with just one master password; see alsoneupasswdHow It WorksPeupasswdtakes in a master password, the service name you wanna use the password for and the length of the password u want(never worry about the length you can choose as much as possible you dont need to cram it). Then it encrypt the master password in a way you can nerver guess of. Also you can retrieve/check ur password again by doing same way.How to:-Install through pippip install peupasswdfrom peupasswd import peupasswd

print(peupasswd("master password", "instagram", 12))Running on webhttps://blackstackhub.github.io/Peupasswd
Package: pevl
pevlPython Event Versioning LibraryThis library provides code to upgrade events. Think of it as an event equivalent to flyway,
where you can define the mappings between events and have all incoming events upgraded to
a version your code can deal with, on the fly.The target environment is either an event sourcing system, or microservices with
an event bus - anywhere you're consuming events and doing something with them.Pre-requisitesAll events must be versioned. That is, there must be a version number in the event
structure somewhere.There must be a way to map from a given event version to version+1 for every version number.
This is typically done by defining an upgrade method.The library provides a class,Upgrader, which will take events in, extract the
version number, run all appropriate upgrade methods until the version is current, then
call an event factory with the upgraded data and return the appropriate object.Design decisions (and whys)Factory is only called with the latest data, not for each version - this is to save
from having to maintain factories for every version.Supporting Python 3.8 and above - because I want static types.All events are dictionaries - for simplicity. Events are deepcopy'ed as part of the implementation.Upgrade methods may mutate events in place - each event is provided as a deepcopy (so don't upgrade things that don't deepcopy).
If you return, that will be used - if not, the assumed mutated event will be used.Upgrade methods will get dictionaries and return dictionaries, and wrapping will be invisible - because
I want this to be as simple to use as possible.All versions should be strings, not numbers or other oddball things - for simplicity.No version will be represented with str(None) (ie. 'None')How to UseCreate a module that holds a bunch of version upgrade methods.Each method should use the@pevl.event.upgradedecorator, and in the decorator you specify a version number to apply to and a new-version number to set (otherwise you must set the new version number in the upgrade script itself).Each method should apply an appropriate upgrade from the version number given to the next version number.Each method should be named descriptively.Each method takes an event :dict, and returns an event: dictVersion numbers do not need to sort properly - but each version needs to upgrade to another version that is then handled (or not, if final version)Example:frompevl.eventimportupgrade@upgrade('v0.1','v0.2')defsplit_first_last_name(event):event['first'],event['last']=event['name'].split()The code to upgrade the events:frompevl.eventimportUpgraderupgrader=event.Upgrader(upgrades=[split_first_name,])upgraded=upgrader.ingest(event,target_version='v0.2')For an example of the code that does the upgrades, seesample_sns.pyLikely Failure ModesMake sure your versions match what comes out of the event itself. str/int mismatches may be silently ignored.Make sure you have a version. Again, failed version matches may be ignored.
Package: pew
Python Env Wrapper is a set of commands to manage multiple [virtual environments](http://pypi.python.org/pypi/virtualenv). Pew can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in a single (configurable) location.Virtualenvs makes it easier to work on more than one project at a time without introducing conflicts in their dependencies.Pew is completely shell-agnostic and thus works on bash, zsh, fish, powershell, etc.For the documentation, you might want to read here:https://github.com/berdario/pew#usage
Package: peweb
In the name of God, the Most Gracious, the Most Merciful.PWebPython Web Framework (PWeb). PWeb is a DRY full-stack framework based on Flask micro web framework.DocumentationInstall and update usingpip:pipinstall-UpwebPlease findthe Documentationwith example fromhmtmcse.comDonateProblem Fighterdevelops and supports PWeb and the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution to PWeb, see the contributing guidelines.LinksChanges :https://opensource.problemfighter.org/pweb/pwebPyPI Releases :https://pypi.org/project/pwebSource Code :https://github.com/problemfighter/pwebIssue Tracker :https://github.com/problemfighter/pweb/issuesWebsite :https://www.problemfighter.com/open-source
Package: pewlib
pewlibPewlib is a library for importing, processing and exporting LA-ICP-MS data.
Currently exports from Agilent, Thermo and PerkinElmer software is supported, as well as delimited text images.InstallationPewlib is availble on PyPI and installable via pip.pip install pewlibDocumentationDocumenation is available athttps://djdt.github.io/pewlib.
Package: pew-trobz
Python Env Wrapper is a set of commands to manage multiple [virtual environments](http://pypi.python.org/pypi/virtualenv). Pew can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in a single (configurable) location.Virtualenvs makes it easier to work on more than one project at a time without introducing conflicts in their dependencies.Pew is completely shell-agnostic and thus works on bash, zsh, fish, powershell, etc.For the documentation, you might want to read here:https://github.com/berdario/pew#usage
Package: pexels
pexelsDescriptionGet pexels video ids with selenium firefoxInstallpipinstallpexels# orpip3installpexelsUsagefrompexelsimportPexelsfrompexels.models.enumsimportOrientation,Sizepexels=Pexels()video_ids=pexels.get_video_ids('dogs',videos_orientation=Orientation.HORIZONTAL,# Optionalvideos_size=Size.FOUR_K# Optional)Dependenciesrandomua,selenium-firefox
Package: pexels-api
Using Pexels API v1 with PythonUsepexels_apito search photos fromPexels.Dependencies:requestsInstallation:pip install pexels-apiUsage:The following code shows you how to import the package and make a simple query to Pexels API v1. See moreexamplesor thedocumentation.# Import API class from pexels_api packagefrompexels_apiimportAPI# Type your Pexels APIPEXELS_API_KEY='YOUR-PEXELS-API-KEY'# Create API objectapi=API(PEXELS_API_KEY)# Search five 'kitten' photosapi.search('kitten',page=1,results_per_page=5)# Get photo entriesphotos=api.get_entries()# Loop the five photosforphotoinphotos:# Print photographerprint('Photographer: ',photo.photographer)# Print urlprint('Photo url: ',photo.url)# Print original size urlprint('Photo original size: ',photo.original)