Saravanan666/pypi-org huggingface dataset:
Package: pycreds
PyCreds - Python Library to keep credentials safe by storing in platform keystores.PyCreds is a Python Library written in C++ to keep credentials safe by storing in platform keystores. On MacOS the passwords are managed by the Keychain, on Linux they are managed by the Secret Service API/libsecret, and on Windows they are managed by Credential Vault.Features 🚀Cross Platform- PyCreds is a cross platform solution for storing credentials, Windows, Linux and MacOS are fully supported.Security- Uses platform specific credential vault for storing credentials.API- Provides high level operations such asget_password,set_password,delete_password,find_passwordandfind_credentials.Command Line Interface- Ships with a Cli based onclickfor Cli usage.Installation ✔Install with pip:$pipinstallpycreds# Or Install with cli$pipinstallpycreds[cli]Docsget_password(service, account)Get the stored password forserviceandaccount.service- The string service name.account- The string account name.Returns password asstringif found else raisesValueError.set_password(service, account, password)Save thepasswordforserviceandaccount.service- The string service name.account- The string account name.password- The string password.ReturnsTrueif successful else raisesValueError.delete_password(service, account)Delete thepasswordforserviceandaccount.service- The string service name.account- The string account name.ReturnsTrueif successful else raisesValueError.find_password(service)Findspasswordforservice.service- The string service name.Returns password asstringif found else returnsNone.find_credentials(service)Finds credentials forservice.service- The string service name.Returns a list of credential dict in format{"account": "foo", "password": "bar"}.Cli DocsUsage: pycreds [OPTIONS] COMMAND [ARGS]...

  PyCreds Command Line Interface.

Options:
  --help  Show this message and exit.

Commands:
  delete  Delete Password.
  get     Get Password.
  set     Set Password.
Package: pycrfsuite-spacing
(Spacing corrector using pycrfsuite)Home-page: https://github.com/lovit/Author: LovitAuthor-email: soy.lovit@gmail.comLicense: UNKNOWNDescription: Pycrfsuite를 이용한 띄어쓰기 교정기.template generator, feature transformer를 포함하여 손쉽게 띄어쓰기 교정기를 학습할 수 있도록 하였습니다.자세한 사용법은 https://github.com/lovit/pycrfsuite_spacing/에 있습니다.This package makes easy to use including (1) template geneartor and (2) feature transformer.For detailed tutorials, see the README file on https://github.com/lovit/pycrfsuite_spacing/Keywords: pycrfsuite,spacing correctorPlatform: UNKNOWN
Package: pycribbage
PyCribbagePyCribbage is a Python application for playing a card game called Cribbage. It was created to demonstrate my ability to apply OOP concepts, follow a TDD process and apply SOLID coding principles.An overview of the rules of the game and the terminology used can be found here :https://www.theukrules.co.uk/rules/children/games/cards/cribbage.htmlInstallationPyCribbage was created with Python 3.8.5, but it should work with Python 3+.
There are no additional dependencies required so one should one be able to use this library with a standard Python 3.8.5 installation.mkdir cribbage
cd cribbage
git clone https://github.com/jotter91/PythonCribbageTo run the tests then there are some additional packages required, please see requirements_dev.txt. These can be installed as follows:python -m venv .venv/
source .venv/bin/activate # Line to enter before any commands below
python -m pip install -r requirements_dev.txtUsageTo play an interactive game launch main.py and follow the on screen promptspython pycribbage/main.pyThe prompts will ask for information on which methods to use. The methods are split into the two parts of a cribbage game, The Show and The Play. Currently your opponent can use either a random choice during the game or a repeatable choice (useful for replaying the same game).If you would like to play a computer player then enter the information as follows:Enter the name for the 1 Player:
Human
Enter the method for this player's 'The Show'
[0] For Fixed index
[1] For Random
[2] For Human
2
Enter the method for this player's 'The Play'
[0] For Fixed index
[1] For Random
[2] For Human
2
Enter the name for the Second Player:
Bot
Enter the method for this player's 'The Show'
[0] For Fixed index
[1] For Random
[2] For Human
1
Enter the method for this player's 'The Play'
[0] For Fixed index
[1] For Random
[2] For Human
1To run the tests :python -m pytest testsContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: py-cricket
py-cricket library for Roanuz Cricket APIIts a python library to get cricket scores,schedule and statistics from [Roanuz CricketAPI](https://www.cricketapi.com).Itseasy to access with the access key,secret key and app id.Changes List:1.0.11:Added support for Metric Group 101 APIs1.0.10:1.Fixed issue in reading files in file storage handler1.0.9:1.Added Fantasy points and Fantasy credits API1.0.8:1.Fixed Bugs1.0.7:1.Added Player Stats API1.0.6:1.Added Season Teams API1.0.5:1.Changed freeAPI informations1.0.4:1.Supports Python3.x versions1.0.3:1.Access key, secret key and app id can also be accessed through Environmental variables.
2.Ball by ball API has been added to the API list.1.0.2:1.File Storage Handler approach has been added for the Authentication.
2.Authentication process has to be generated for every session.Getting started:Install py-cricket usingpip install py-cricketCreate a Cricket API App here [My APP Login](https://www.cricketapi.com/login/?next=/apps/)Import py-cricket and create Authentication using ‘RcaFileStorageHandler’ or ‘RcaStorageHandler’ approach.To check all our API’s please visit :https://github.com/roanuz/py-cricketAbout Roanuz:Roanuz is a company which works in the development of Artificial IntelligenceRoanuz product Spider Cricket(https://spider.cricket/) is one of the AI answering website developed by Roanuz developers.
Package: pycrime
PyCrimeFetch crime statistics from the ExpenseCheck crime statistics API.InstallationPyPi is the easiest:pipinstallpycrimeUsageCreate a new API client with:frompycrimeimportCrimeClientclient=CrimeClient(jwt=<your-token>)Please replace<your-token>with your API token as a string.Fetch crime statistics based on postcode with:client.locality_statistics(3000)Here, the postcode for Melbourne's CBD, 3000, has been used. Please
substitute for the postcode of interest. The return value is adictcontaining shaped like the following:{'localityTheftRate':27524.8484848485,# per 100k population'stateTheftRate':3448.8149871704,# per 100k population'theftStateAnomaly':698.0958267475# percentage}
Package: pycrires
Data reduction pipeline for VLT/CRIRES+pycriresis a Python wrapper for running the CRIRES+ recipes ofEsoRex.The pipeline organizes the raw data, creates SOF and configuration files forEsoRex, runs the calibration and science recipes, improves the wavelength solution, and creates plots of the images and extracted spectra.Additionally, there are dedicated routines for the extraction, calibration, and detection of spatially-resolved objects such as directly imaged planets.For spatially resolved objects, the telluric lines can typically be corrected with the stellar spectrum. Otherwise, it is possible to use an empirical modeling approach with the recipes ofMolecFit. The pipeline interface ofpycriresprovides functionalities for both cases.DocumentationDocumentation can be found athttp://pycrires.readthedocs.io.AttributionPlease citeStolker & Landman (2023)whenpycriresis used in a publication and Landman et al. (in prep.) specifically when using the dedicated routines for spatially-resolved sources.ContributingContributions are welcome so please considerforkingthe repository and creating apull request. Bug reports and feature requests can be provided by creating anissueon the Github page.LicenseCopyright 2021-2023 Tomas Stolker & Rico Landmanpycriresis distributed under the MIT License. SeeLICENSEfor the terms and conditions.
Package: pycriteo
PyCriteo=========PyCriteo is a simple Python library to access the Criteo API.It uses Python convenient built in dictionaries to make API requests.Basic usage:-----------Get all running campaigns>>> from pycriteo import Client>>> c = Client('username', 'password', 'token')>>> campaigns = c.getCampaigns({'campaignStatus': 'RUNNING'})>>> dict(campaigns.campaign[0]).keys()['status','campaignID','categoryBids','budgetID','campaignName','remainingDays','campaignBid']Schedule a report job>>> job = c.scheduleReportJob({'reportType': 'Category','reportSelector': {'CampaignIDs': [i.campaignID for i in campaigns.campaign]},'startDate': '2014-01-01','endDate': '2014-30-01','isResultGzipped': False,'aggregationType': 'Daily'})Save the report job as csv>>> c.downloadReport(job.jobID, 'my_report.csv')Installation--------------pip install pycriteoLicense----Apache 2.0
Package: pycrits
# What is Pycrits?Pycrits is a tool developed by Dynetics to simplify the management of data stored in
CRITs (https://crits.github.io/) without requiring the user to directly implement
web requests to the CRITs authenticated API themselves.## AuthorsCarter Church  (https://github.com/carterchurch)## LicenseThis project is licensed under the MIT License - see the LICENSE file for details## Documentation
Further documentation for this project can be found at its offical github:https://github.com/Dynetics/pycrits
Package: pycrm114
pycrm114Pythonic bindings forcrm114CRM114 - the Controllable Regex MutilatorCRM114 is a system to examine incoming e-mail, system log streams, data files or other
data streams, and to sort, filter, or alter the incoming files or data streams according
to the user’s wildest desires.—crm114.sourceforge.netQuickstartNo persistenceimportpycrm114crm=pycrm114.CRM114(classes=["spam","ham"])crm.learn("spam","foo bar")crm.learn("ham","bar is good")assertcrm.classify("is bar good")["class"]=="ham"assertcrm.classify("foo bar good")["class"]=="spam"crm.forget("spam","foo bar")assertcrm.classify("foo bar good")["class"]=="ham"File System Persistenceimportpycrm114crm=pycrm114.CRM114(classes=["spam","ham"],storage=pycrm.storage.FileSystemStorage("/var/tmp/crm-test"))crm.learn("spam","foo bar")crm.learn("ham","bar is good")crm.save()new_crm=pycrm114.CRM114(classes=["spam","ham"],storage=pycrm.storage.FileSystemStorage("/var/tmp/crm-test"))assertnew_crm.classify("is bar good")["class"]=="ham"assertnew_crm.classify("foo bar good")["class"]=="spam"DependenciesDebian/Ubuntu:sudoapt-getinstall libtre5libtre-devOS X:brew install treTestsDependenciespipinstall-rrequirements/test.txtTo test against different python versions use tox:toxTo run the tests with the active python:python setup.py build && nosetests testsBuildingpythonsetup.pybuildReferencescrm114Changelog0.2.3 2015-04-19Documentation tweaks0.2.2 2015-04-18Added a forget method to unlearn a text from a class0.2.0 2015-04-18Python 3 compatibilityAdded a Pythonic wrapper with a potentially pluggable storage backendSupport for dumping control block/data block to string instead of fileAdded basic tests0.1.0 2015-04-10Initial import frompmundkur/libcrm114
Package: pycrobit
pycrobitPython library that permits to recycle microbits exercises in python using 5 * 5
strings and some coloring without the hassle of handling terminal coloring and refresh.ContextThere's a lot of fun exercises for children using microbits but a lot less using python.Installationpipinstallpycrobit[colorama]Or downloadpycrobit.pyfor offline use.Example of usefrompycrobitimportFore,Pycrobitall_lit="""*************************"""all_off="""........................."""pycrobit=Pycrobit(framerate=0.50)whileTrue:pycrobit.display(all_lit)# Lit red by defaultpycrobit.display(all_off)pycrobit.display(all_lit,{"*":Fore.YELLOW})pycrobit.display(all_off)pycrobit.display(all_lit,{"*":Fore.GREEN})pycrobit.display(all_off)pycrobit.display("*.*.*\n"*5)pycrobit.wait(-0.25)pycrobit.display(".***."*5)pycrobit.wait(-0.25)
Package: pycromanager
pycromanageris a Python library for customized microscope hardware control and integration with image processing. It works together withMicro-managerandMicro-magellan, or can be used as a standalone backend system for controlling microscope hardware.Check out to thejournal articleor thedocumentationfor an idea of the capabilities and how to get started.Have a cool example of something you've done withpycromanageror an idea for improvement? Reach out on the issues page.Installing pycro-managerDownload the lastest version ofmicro-manager 2.0Install pycro-manager usingpip install pycromanagerRun Micro-Manager, select tools-options, and check the box that says Run server on port 4827 (you only need to do this once)To verify everything is working, run the following code:from pycromanager import Core

core = Core()
print(core)which will give an output like:<pycromanager.core.mmcorej_CMMCore object at 0x7fe32824a208>TroubleshootingUpon creating the Bridge, you may see an error with something like:UserWarning: Version mistmatch between Java ZMQ server and Python client.
Java ZMQ server version: 2.4.0
Python client expected version: 2.5.0In this case case your Micro-manager version Pycro-manager versions are out of sync. Usually, this can be fixed by downloading the latest versions of both. Uprgade to the latest Pycro-manager with:pip install pycromanager --upgradeContributingWe welcome community contributions to improve Pycro-manager, including bug fixes, improvements to documentation, examples of different use cases, or internal improvements. Check out thecontributing guideto see more about the workflow. Areas where community contributions would be especially helpful can be found on theIssuespage with aHelp wantedlabelInformation about how to setup a development environment for the Java parts of Pycro-manager can be foundhere
Package: pycronjob
pycronjobAn easy start crontab toolsSupports 5~7 cron symbols0/1 * * * *  or  0 */2 * * * ?  or 0 */3 * * * ? *How to Useinstallpip install pycronjobbasefrompycronjobimportCrontabdefp(*args):print(args,datetime.datetime.now())print('====\n')joblist=[{'crontab':'0/1 * * * *','func':p,'args':('job1',)},{'crontab':'0 */2 * * * ?','func':p,'args':('job2',)},{'crontab':'0 */3 * * * ? *','func':p,'args':('job3',)},]synccrontab=Crontab(joblist)crontab.start()asynccrontab=Crontab(joblist,True)crontab.start()# do other thingsync to asyncimportthreadingdefinner():crontab=Crontab(job_list)whileTrue:try:crontab.start()except:logger.info(traceback.format_exc())timer=threading.Timer(1,inner)timer.daemon=Truetimer.start()
Package: pycronner
pycronnerpycronneris a simple job scheduling tool in Python.pycronnerofficially supports Python 3.6+.Installing pycronner$python3-mpipinstallpycronnerUsing pycronnerRun a job every 5 minutesfrompycronnerimportcronner@cronner.every(5).minutedefjob():passcronner.start()Run a job every 5 minutes on first day every month between 8:00 AM and 10:00 AM.frompycronnerimportcronner@cronner.at(day=1,hour=(8,9))@cronner.every(5).minutedefjob():passcronner.start()Not use decorator but do the same thing as above.frompycronnerimportcronnerdefjob():passcronner.do(job2).every(5).minute().at(day=1,hour=(8,9))cronner.start()
Package: pycronorg
py-cron-orgA simple sdk for cron-job.orgInstallationpip3installpycronorgUsage>>>importos>>>fromdotenvimportload_dotenv>>>frompycronorg.syncimportJobsApi>>>>>>>>>assertload_dotenv()>>>token=os.environ['CRON_ORG_TOKEN']>>>api=JobsApi(token)#-------------------------------------create------------------------------------->>>job=api.create(...api.Schema(...title='hi, cron-job.org',...url='http://example.com',...scheldule=api.SchelduleSchema(...hours=[12],...minutes=[0],...),...)...)#------------------------------------get-job------------------------------------->>>assertapi.get(job.jobId)#-------------------------------------update------------------------------------->>>api.update(...api.SchemaUpdate(...jobId=job.jobId,...scheldule=api.SchelduleSchema(...hours=[13],...minutes=[0],...)...)...)#--------------------------------retrieve-history-------------------------------->>>history=api.retrive_history(job.jobId)#------------------------------------get-all------------------------------------->>>jobs=api.all()#-------------------------------------delete------------------------------------->>>api.delete(job.jobId)>>>>>>ContributingWe welcome contributions from the developer community to improve the pycronorg. If you are interested in contributing to the pycronorg, please follow the steps below:Fork the repository on GitHub.Create a new branch for your feature or bug fix.Make the necessary changes in your branch.Write tests to ensure the changes are working as expected.Submit a pull request with your changes.LicenseThe pycronorg is licensed under theMIT License.
Package: py-cron-schedule
Python’s crontab syntax scheduler.Features[x] Easy to use and feature-rich API[x] Scheduling unit is a function[x] Syntax similar to LinuxCrontabtiming tasks[x] Provides millisecond precision[x] Use multi-process optimizationUsageshell script $ pip installpy-cron-schedulefrompy_cron_scheduleimportCronSchedule,CronFormatErrorif__name__=='__main__':cs=CronSchedule()cs.add_task("ms","* * * * * * *",lambda:print("Every Millsecond"))cs.add_task("sec","* * * * * *",lambda:print("Every Second"))cs.add_task("min","* * * * *",lambda:print("Every Minute"))cs.add_task("hour","0 * * * *",lambda:print("Every Hour"))cs.start()API Documentation[x] [简体中文](./doc/zh-CN/README.md)[ ] [English](./doc/en-US/README.md)LicenseUnder the Creative Commons GPL-3.0 Unported license. See the LICENSE
file for details.Under the Anti 996 License. See the Anti 996 LICENSE file for
details.
Package: pycronscript
pycronscriptSchedule your Python scripts.Getting startedInstall packagepip install pycronscriptCreate config fileThis is created with the first run ofpycronscriptand you can see the path where it is has been created.Register your scripts for the scheduled run in config fileNote: Scripts must have a 'run' method![custom_name]
path=/home/my_user/foo/bar/my_script.py
each={'minutes': 5} # datetime.timedelta args, but in dict format. Default=1h.
...StartRun againpycronscriptGetting started withDocker(example)Files needed:pycronscript_with_docker
├── config.cfg
├── docker-compose.yml
├── Dockerfile
├── requirements.txt
└── test.pytest.pydef run():
    print('working!')config.cfg[test]
path=/usr/app/src/test.py
each={'minutes': 5}DockerfileFROM python:3.11

WORKDIR /usr/app/src
RUN pip install pycronscript
RUN mkdir -p /root/.config/pycronscript
COPY config.cfg /root/.config/pycronscript/config.cfg

# Install your custom requirements
COPY requirements.txt ./
RUN pip install -r requirements.txt

# Copy scripts
COPY test.py ./docker-compose.ymlversion: '3.4'

services:
  pycronscript:
    build: .
    container_name: pycronscript
    entrypoint: 'pycronscript'
    restart: alwaysStartdocker-compose up -d
Package: pycrontab
PyCronTabpip3 install pycrontab$ pycrontab -h
usage: pycrontab [-h] [-c CONFIG] [-l {INFO,DEBUG,WARNING}]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        config file path
  -l {INFO,DEBUG,WARNING}, --log-level {INFO,DEBUG,WARNING}
                        logging level
Package: pycrop
# PyCrop1. What it does2. functions1. Contain2. Cover3. Installation## What it doesMethods to manipulate images## Functions### 1.Cover- params:- path:str - image absolute path- size:list - output image size (width:int, height:int)- point:list - point from where image is cropped and resized- savepath:str - image destination path- quality:int - output image quality (from 0 to 100%)- returns:- (resize status, output image path):tupleBased on size, it will crop evenly distributed rectagle from point coordinates (in percentage).### 2.Contain- params:- path:str - image absolute path- size:list - output image size (width:int, height:int)- savepath:str - image destination path- quality:int - output image quality (from 0 to 100%)- returns:- (resize status, output image path):tupleFunction will fit source image in rectagle which has same dimensions as size.## InstallationTo install the package by `pip` run following command```sh$ pip install pycrop```or```sh$ pip install git+https://github.com/giorgi94/pycrop.git```
Package: pycroscopy
pycroscopy is apythonpackage for generic (domain-agnostic) microscopy data anlaysis. More specialized or domain-specific analysis routines are contained within some of the other packages within the pycroscopy ecosystem.Please visit ourhomepagefor more information and installation instructions.If you use pycroscopy for research, we would appreciate if you could cite ourArxiv papertitled “USID and Pycroscopy - Open frameworks for storing and analyzing spectroscopic and imaging data”
Package: pycroservices
pycroservicespycroservices is a microservices framework on AWS Lambda.pycroservices runs AWS Lambda functions designed as a directed acyclic graph.
Here is a list of the package contents:provide mechanism that makes functions loosely coupled with each otherrun on AWS Lambdarun on local machineprovide template creation tool (future work)provide graph creation tool (future work)provide endopoint creation tool (future work)provide validation tool (future work)provide deployment tool (future work)provide event tracing mechanismprovide infinite loop limiterpycroservices is a free software distributed under the Apache license version 2.0.InstallationTo install pycroservices, type at your function directory:pip install pycroservices -t /path/to/your-function-dirpycroservices requires Python 2.7 and boto3.DeploymentZip the content of the your-function-dir directory, which consists of the following contents:your function codesconfiguration files (<function_name>.json)pycroservices.pyUpload the zip file to AWS Lambda.Websitespycroservices project at GitHub: source
code, bug tracker
Package: pycrossgate
this is a Python package designed to facilitate the importation of missing modules during coding. Rather than requiring manual importation of modules that have not been previously utilized, “pycrossgate” enables automatic detection and importation of such modules in real-time. This feature streamlines the coding process by eliminating the need for users to manually manage imports, allowing them to focus on writing code without distraction. “pycrossgate” is available for installation via PyPI using pip.