Saravanan666/pypi-org huggingface dataset:
Package: practice-japanese
practice_japaneseA simple flashcard program to help practice Japanese characters. Per-character statistics are collected and summarized.RequirementsPython3.6+Installationpython3setup.pyinstall--userThis will create a CLI calledpractice_japaneseon your PATH.Alternatively, install via pip:python3-mpipinstallpractice_japaneseUsagepractice_japanese[--character-setCHARACTER_SET][--statistics-fileSTATISTICS_FILE]Characters from the selected character set will be displayed; the user is expected to enter the romaji for each character.By default, the full character set will be used.PressCTRL+Cto exit; statistics for your slowest and least accurate characters (and the characters you commonly mix them up with) will be printed. These statistics are for your entire history of practicing, not the current session.By default, character statistics will be saved tocharacter_stats.jsonin yourpwd. These statistics are updated each time you practice.
Package: practichem_biodetector
Example of direct instantiation. Faster if you know the port.from practichem_biodetector import Biodetector
from practichem_device import SerialHandler

serial_handler = SerialHandler()
serial_handler.openPort("COM32")
serial_handler.start()
biodetector = Biodetector(serial_handler)

print(biodetector.getPrimaryAbsorbance())Example using the DeviceManager which is in the practichem_device packagefrom practichem_device import DeviceManager
import practichem_biodetector # required to register the product name

device_manager = DeviceManager()
biodetector = device_manager.getDeviceByProductName("BioDetector")

print(biodetector.getPrimaryAbsorbance())Example of using the BiodetectorEmulatorfrom practichem_biodetector import BiodetectorEmulator
biodetector = BiodetectorEmulator()
print(biodetector.getPrimaryAbsorbance())
Package: practichem_rotary_valve
Example of direct instantiation. Faster if you know the port.from practichem_rotary_valve import RotaryValve
from practichem_device import SerialHandler

serial_handler = SerialHandler()
serial_handler.openPort("COM32")
serial_handler.start()
valve = RotaryValve(serial_handler)

valve.jog(60)Example using the DeviceManager which is in the practichem_device packagefrom practichem_device import DeviceManager
import practichem_rotary_valve # required to register the product name

device_manager = DeviceManager()
valve = device_manager.getDeviceByProductName("RotaryValve")

valve.jog(60)Example using the emulated devicefrom practichem_rotary_valve import RotaryValveEmulator
valve = RotaryValveEmulator()
valve.jog(60)
Package: practicus
Practicus AIis an end-to-end Data Science platform, which works like a spreadsheet. It works for both technical and non-technical users.You canexplore and analyzelarge amounts of raw data and find unique insights and patterns.Practicus AI allows you to easilytransform and preparedata, and extend with coding only if necessary.You can create AI models usingAutoMLandpredictthe future with just a few clicks. When working with complex problems,
you can share your experiments exported code with the data science team, so they can take it further without starting from scratch.Several Practicus AI features work directly inside Spreadsheets, allowing you to bring more than 1 billion Spreadsheet
users into your Data Science projects.If needed, you can click to generate thedata processing pipeline code, and go to production with ease.Practicus AIapp is forever free, and the cloud platform offers aforever free tieras well.
If you need more cloud capacity, you canpay as you go, which shows as a line item in your cloud invoice.
No commitments or credit card is needed.
Package: practicuscore
Practicus AIis an end-to-end Data Science platform, which works like a spreadsheet. It works for both technical and non-technical users.You canexplore and analyzelarge amounts of raw data and find unique insights and patterns.Practicus AI allows you to easilytransform and preparedata, and extend with coding only if necessary.You can create AI models usingAutoMLandpredictthe future with just a few clicks. When working with complex problems,
you can share your experiments exported code with the data science team, so they can take it further without starting from scratch.Several Practicus AI features work directly inside Spreadsheets, allowing you to bring more than 1 billion Spreadsheet
users into your Data Science projects.If needed, you can click to generate thedata processing pipeline code, and go to production with ease.Practicus AIapp is forever free, and the cloud platform offers aforever free tieras well.
If you need more cloud capacity, you canpay as you go, which shows as a line item in your cloud invoice.
No commitments or credit card is needed.
Package: praekelt_pyramid_celery
NB: I have made minimal patches to make this (appear to) work on Python 3.x and Pyramid 1.5. I have not extensively tested these changes, but celery workers and celerybeat both start up and start working.Getting Started=====================Include pyramid_celery either by setting your includes in your .ini,or by calling config.include('pyramid_celery').``` pythonpyramid.includes = pyramid_celery```Now you can either use class based:``` pythonfrom celery.task import taskfrom celery.task import Task@taskclass AddTask(Task):def run(self, x, y):print x+y```or decorator based:``` pythonfrom celery.task import task@taskdef add(x, y):print x+y```Configuration=====================All standard celery configuration options will work. Check out http://ask.github.com/celery/configuration.htmlDemo=====================To see it all in action check out pyramid_celery_demo, run rabbitmq-server and then do:``` python$ python setup.py develop$ populate_pyramid_celery_demo ./development.ini$ pserve ./development.ini$ pcelery ./development.ini worker```If you are using celery < 3.1 use  older celery command lines binding.``` pythonpceleryd development.ini```
Package: praekelt.recipe.backup
praekelt.recipe.backupFilesystem and database backup Buildout recipe.Creates abin/script with which you can easily create backups of any path and/or database. Uses rsync to create incrementally complete backups, see:Do-It-Yourself Backup System Using Rsync.NOTE: This recipe is under active development and has not been fully tested in a production environment. Use at your own risk.UsageAdd a part inbuildout.cfglike so:[buildout]
parts = backup

[backup]
recipe = praekelt.recipe.backup
prefix = foobar
local_storage_path = /var/backupsRunning the buildout will add a backup script with the same name as your backup part in thebin/directory. In this casebin/backup. The resulting script will create timestamped backups of the buildout path prefixed with the stringfoobarlocally in/var/backups.OptionsprefixString prefixed to backup directory names.Required.source_pathPath to recursively backup.Defaults to the buildout directory.database_engineType of database to backup.Supported options: mysql or postgres.database_nameName of the database to backup.database_usernameUsername of the database to backup.database_passwordPassword of the database to backup.local_countNumber of backups to keep locally. As new backups are created older backups are deleted.Defaults to 3.local_storage_pathLocal path in which to store backups. Make sure the user running the backup script has appropriate rights to this path.Required.remote_hostHostname of remote host on which to mirror local backups.remote_storage_pathRemote path in which to store backups. Make sure the user running the backup script has appropriate rights to this path (via rsync).Note: rsync functionality is limited to key based authentication. Make sure to setup your keys appropriately for passwordless remote authentication.Full ExampleThe following example illustrates all available options:[buildout]
parts = backup

[backup]
recipe = praekelt.recipe.backup
prefix = foobar
local_count = 2
local_storage_path = /var/backups
source_path = /var/foobar

remote_host = www.my-backup-server.com
remote_storage_path = /var/backups/foobar

database_engine = postgres
database_name = foobar_db
database_username = db_username
database_password = db_passwordThe resulting script will create timestamped backup folders prefixed with the stringfoobarlocally in/var/backups. The backup will contain all the files found in/var/foobaras well as a database dump of the postgres database namedfoobar_db. A copy of each created backup will be sent towww.my-backup-server.comvia rsync and stored in the/var/backups/foobarpath. Only the latest 2 backups will be retained locally. Older backups will be deleted automatically.Changelog0.0.3Complete refactor to use rsync.0.0.2Dereference symbolic links.0.0.1Initial Release
Package: praetorian-api-client
praetorian-api-clientMy name is Aurelius and I am emperor's counselor 👨‍⚖️. My everyday job is to maintain and manage communication 🗣 between praetorian
Cornelius 🛡️ and military commander Maximus ⚔️.Or just for normal people without abstract thinking I am API Client for praetorian-api project.IntroductionPraetorian API Client is used for creating requests to Praetorian API and for receiving responses which are deserialized to objects.Installation# pippipinstallpraetorian-api-client# pipenvpipenvinstallpraetorian-api-client# poetrypoetryaddpraetorian-api-clientExample1. Create Environment objectfrompraetorian_api_client.configurationimportEnvironmentenvironment=Environment(name='praetorian-api',api_url='http://127.0.0.1:8000/',read_only=False)2. Create Configuration objectfrompraetorian_api_client.configurationimportConfigurationconfiguration=Configuration(environment=environment,key='api-key',secret='api-secret')3. Create ApiClient objectfrompraetorian_api_client.api_clientimportApiClientapi_client=ApiClient.create_from_auth(configuration=configuration,username='username',password='password')3. Create request from ApiClient to ApiThis request will return (if successful) list of Remote objects.remotes=api_client.remote.list()TestsTo run tests, you need to run command:pytestTests require access data to the api. For security reasons, access data is stored in environment variables. To set
environment variables, you need to create an.envfile from the example in the.env.examplefile.Developed with 💙 and ☕️ byAdam Žúrekwith the support ofBACKBONE s.r.o., 2021 (C)0.1.0 : 2020-01-12Initial release0.1.1 : 2020-01-12⛄️ Added resources package0.1.2 : 2020-01-12🌈 Added to remote list possibility to filter by name0.1.3 : 2020-02-12🎃 Implemented service list0.1.4 : 2020-02-12😴 Implemented fill_content method for filling query/payload content0.1.5 : 2020-02-12🤭 Implemented tests according to specific filter arguments0.1.6 : 2020-02-12🦾 Fixed getting variables of service object.0.2.0 : 2020-02-12🥑 Implemented self delete endpoint for temporary user.🥑 Added additional data to user get response.0.3.0 : 2020-02-12🍓 Implemented endpoint for getting one specific remote by id.0.4.0 : 2021-06-05🍇 Implemented endpoint for getting one specific service by id.0.4.1 : 2021-06-05🍌 Service endpoints now gets all data from the instance.0.4.2 : 2021-08-05🥒 Added name filter to the project listing endpoint.🥒 Added name filter to the service listing endpoint.🥒 Implemented create of temporary user endpoint.0.4.3 : 2021-09-05🥕 Changed api requests according to the new api changes.🥕 Implemented test for temporary_user creation process.0.4.4 : 2021-09-05🥥 Added project response attribute mapping in remote get endpoints.
Package: praetorian-fabric
praetorian-fabricGladiator Titus in your service. I like heavy weights 🏋️. More strength, more praetorian, more fabric.
What more do you want? Gimme that heavy variables 💪.IntroductionPraetorian Fabric library extends standardfabriclibrary, to maintain communication
with praetorian services. Main purpose is to make necessary connections and provide
suitable data.Installation# pippipinstallpraetorian-fabric# pipenvpipenvinstallpraetorian-fabric# poetrypoetryaddpraetorian-fabricUsage####1. First you need to create environment variables:PRAETORIAN_API_URLPRAETORIAN_API_KEYPRAETORIAN_API_SECRETPRAETORIAN_USERNAMEPRAETORIAN_PASSWORD####2. Createfabfile.pyfolder in your project root directory
####3. InstantiatePraetorianConfigobject:praetorian_config=PraetorianConfig(project_name='foo project')####4. Create task and connect to Praetorian SSH Proxy to gain needed variables:@taskdefdeploy(ctx,remote_name):ctx=praetorian_config.connect(ctx,remote_name)####5. Get variables by dot notation anywhere in your tasks:@taskdefdeploy(ctx,remote_name):ctx=praetorian_config.connect(ctx,remote_name)variable=praetorian_config.get_variable('variable_name')nested_variable=praetorian_config.get_variable('variables.nested_variable.name')Developed with 💙 and ☕️ byAdam Žúrekwith the support ofBACKBONE s.r.o., 2021 (C)0.1.0 : 2021-08-05💪 Initial release0.1.1 : 2021-09-05✌️ Removed useless service calling.0.1.2 : 2021-10-05👍 Fixed get_variable method, when variable path does not exist.
Package: pragmail
pragmailpragmail is a library for retrieving email messages for other useful software applications.It extends Python's built-in modules for internet protocols and support, maintaining the same degree of user flexibility.Example usage:>>>importpragmail>>>client=pragmail.Client("imap.domain.com")>>>client.login("username","password")('OK',[b'username authenticated (Success)'])>>>client.select("INBOX")('OK',[b'1357'])>>>client.imap4.search(None,'FROM','"John Smith"')('OK',[b'245 248 257 259'])>>>client.imap4.close()('OK',[b'Returned to authenticated state. (Success)'])>>>client.imap4.logout()('BYE',[b'LOGOUT Requested'])pragmail also equips you with several utility functions and a few useful methods for managing retrieved email messages. Please refer to the documentation for details.Installingpragmail can be installed with pip:$ python -m pip install pragmailYou can get the latest source code from GitHub:$ git clone git://github.com/huenique/pragmail.git
$ cd pragmail/
$ poetry installDocumentationUsage and reference documentation is foundhere.ContributingCheck thecontributing guideto learn more about the development process and how you can test your changes.
Package: pragyaniitian
pragyaniitian LibraryUserbot PyrogramDisclaimer️                       ⚠️ WARNING FOR YOU ️ ️⚠️
   pragyaniitian is used to help your account activities on Telegram
   We are not responsible for what you misuse in this repository
   !  Be careful when using this repository!
   If one of the members misuses this repository, we are forced to ban you
   Never ever abuse this repositoryInstallingpip3 install --upgrade pragyaniitian
Package: prai
prai 🙏===========Raiblocks Python RPC clientInstall-------A somewhat stable version from pypi:.. code-block:: bash$ pip install praiOr the most recent master version from Github:.. code-block:: bash$ git clone https://github.com/jxub/praiUsage-----.. code-block:: Python>>> from prai import Wallet, Account# creating a wallet with the rai node url>>> w = Wallet(http://localhost:7475)>>> w.account_list(){"accounts" : []}>>> w.accounts_create(count=2){"accounts": ["xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000","xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3s00000000"]}>>> w.account_balance("xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"){"balance": "10000","pending": "10000"}# using unpacking to pass in the params with *>>> w.send(*w.account_list()['accounts'], 10000){"block": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"}# query the same account as before>>> w.account_balance("xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"){"balance": "0","pending": "0"}Some notes----------Prai is a work in progress, so expect some rough edges and stay tuned for updates 🙈.Roadmap-------- Finish basic API.- Add some higher-level features, for example a simple e-commerce payment API.- Add more validation and tests (ughhh).- Add hashing of Rai addrsses to shorter to be better for end-user (??!)🍻
Package: prainsa
Python Brain Signal AnalysisA Python framework to analyze and visualize brain signals.Free software: GNU General Public License v3Documentation:https://prainsa.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-01-06)First release on PyPI.
Package: prairie
Prairie CLIPrairie CLI is a command-line interface designed to streamline your PrairieLearn experience. Whether you're a course instructor, a content developer, or just someone looking to explore PrairieLearn, this tool offers utilities to make your journey smoother.FeaturesDocker Integration: Easily manage PrairieLearn containers with built-in Docker commands.Local Course Development: Test and develop your course content locally without the need for external setups.Easy Updates: Keep your local PrairieLearn version up-to-date with simple commands.InstallationDependencies: Ensure you haveDocker Desktopinstalled.(Windows Users): It's recommended to use WSL 2 for optimal performance. Follow theinstallation guidefor WSL 2 and integrate it with Docker as describedhere.Install Prairie CLI: (Installation steps for Prairie CLI would go here)UsageOnce installed, you can use theprairiecommand to access all features. Here are some common commands:Launch PrairieLearn:prairie docker launch --course-dir YOUR_COURSE_DIRECTORYUpdate PrairieLearn:prairie docker updateCheck PrairieLearn Status:prairie docker statusFor a full list of commands and options, useprairie --help.ContributingIf you'd like to contribute to Prairie CLI, just make a pull request.LicenseThis project is licensedunder the LGPLv3 license,
with the understanding that importing a Python modular is similar in spirit to dynamically linking
against it.You can use the library/CLIprairiein any project, for any purpose,
as long as you provide some acknowledgement to this original project for
use of the library (for open source software, just explicitly includingprairiein the dependency such as apyproject.tomlorPipfileis acknowledgement enough for me!).If you make improvements toprairie, you are required to make those
changes publicly available.This license is compatible with the license of all the dependencies as
documented inthis project's ownpyproject.toml.
Package: prairiedog
prairiedogSupports Python 3.6, Python 3.7, PyPy 3.6 on LinuxInstallationWe recommend you follow both the installation step for graph creation
and for querying the graph, unless you are computing the graph in one
place, and querying it in another.Both steps require you to first install lemongraph.Clone prairiedog and install lemongraphgit clone --recursive https://github.com/superphy/prairiedog.git
cd prairiedog/
python3 -m venv venv
. venv/bin/activate
cd lemongraph/
apt-get install libffi-dev zlib1g-dev python-dev python-cffi
python setup.py installFor creating a graph. venv/bin/activate
pip install -r requirements.txt
pip install snakemakeFor querying an existing graph. venv/bin/activate
python setup.py installUsageDockerdocker run -v /abs-path-to/outputs/:/p/outputs/ -v /abs-path-to/samples/:/p/samples/ superphy/prairiedog dgraphFor creating a graph. venv/bin/activate
snakemake -j 24 --config samples=samples/For querying an existing graphVia docker# Without debug
docker run -v /home/kevin/pdg-test/outputs:/p/outputs/ -v /home/kevin/pdg-test/samples:/p/samples/ superphy/prairiedog:c6ff5c63779a73de02c9b3de0f4225b29564f285 query TCGAGCATTAT GCATAGGCAAC
# With debug
docker run -v /home/kevin/pdg-test/outputs:/p/outputs/ -v /home/kevin/pdg-test/samples:/p/samples/ superphy/prairiedog:c6ff5c63779a73de02c9b3de0f4225b29564f285 --debug query TCGAGCATTAT GCATAGGCAACor virtualenv. venv/bin/activate
prairiedog ATACGACGCCA CGTCCGGACGTYou should get something like:prairiedog GGGCGTTAAGT GGCAGGTTGAA
prairiedog[21238] INFO Looking for all strings between GGGCGTTAAGT and GGCAGGTTGAA ...
prairiedog[21238] INFO Found {'string': 'GGGCGTTAAGTTGCAGGGTATAGACCCGAAACCCGGTGATCTAGCCATGGGCAGGTTGAA', 'edge_type': 'SRR3295769.fasta', 'edge_value': '>SRR3295769.fasta|NODE_75_length_556_cov_349.837_ID_5290_pilon'}
prairiedog[21238] INFO Found {'string': 'GGGCGTTAAGTTGCAGGGTATAGACCCGAAACCCGGTGATCTAGCCATGGGCAGGTTGAA', 'edge_type': 'SRR3665189.fasta', 'edge_value': '>SRR3665189.fasta|NODE_60_length_523_cov_287.621_ID_4672'}Tests & BenchmarksTest genomes are included in thetests/folders, while genomes for
benchmarking should be included in thesamples/folder. To run tests and
benchmarks:python3 -m venv venv
. venv/bin/activate
pip install tox
tox -vHistory0.2.0 (2019-07-28)Pangenome graph creation via DgraphQueries between kmers via Dgraph0.1.2 (2019-06-21)Supports Pangenome graph creationUses LemonGraph as backendSupports queries between any two kmers0.1.1 (2019-05-25)Initial Snakefile for creating graphsStill need to add node_labels0.1.0 (2019-05-08)First release on PyPI.
Package: prajil
def add(*k):
s=0
for i in k:
s+=i
return s
#function to add
def iroot(a):
x=list(map(int,input('enter 1/2 for sqrt, 1/3 for cube root,1/4 for 4th root etc=').replace('/',' ').split()))v=x[0]/x[1]return a**vfunction for rootsdef prime(a):
if a>1:
for i in range(2,a//2+1):
if a%i==0:
return 'not prime'else:
return 'prime'
else:
return 'not prime'primedef armstrong(a):p=len(str(a))
s=0
for i in str(a):
s+=int(i)**p
if a==s:
return 'armstrong'
else:
return 'not armstrong'disarmdef disarm(a):p=1
s=0
for i in str(a):
s+=int(i)**p
p+=1
if a==s:
return 'disarm'
else:
return 'not disarm'def strongnumber(a):
x=0
for i in range(1,a//2+1):
if a%i==0:
x+=i
if x==a:
return 'strongnumber'
else:
return 'not strong'
#strongdef special(a):
sum=0
for i in str(a):
fact=1for k in range(1,int(i)+1):
  fact*=k
  
sum+=factif sum==a:
return 'special'
return'not special'def emrip(a):
b=a
a=str(a)
a=a[::-1]
if int(a)!=b:
if prime(int(a))==prime(b):
if prime(int(a))=='prime':
return 'emrip'
return 'not emrip'
return 'not emrip'
return 'not emrip'def spy(a):
s=0
m=1
for i in str(a):
m*=int(i)
s+=int(i)
if m==s:
return 'spynumber'
return 'not spynumber'def help():
print('''This module is made by prajil,using it u can find emrip number,spynumber,special number,strong number,disarm number,armstrong ,ith root of a number
import prajil
prajil.(spy(),emrip(),special(),strongnumber(),disarm(),iroot())''')