Saravanan666/pypi-org huggingface dataset:
Package: pruun
pruunPruun is a CL utility for easily creatingAWS lambda deployment packages within Python virtualenvs. It was designed to work as a simple, out-of-the-box solution that can be integrated into any deployment pipeline.NOTE: Supported OSs are Linux and MAC. Windows support is not fully tested at the moment.InstallationUse the package managerpipto install pruunpip install pruunUsageFor the following usage examples, let's imagine this is simple directory structure:.
├── requirements.txt
└── my_lambda_handler.py$ pruun --help
Usage: pruun [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  package  Creates deployment package .zip file in current directory.
$ pruun package my_lambda_handler.py
Locating all installed packages...  [####################################]  100%          
Creating deployment package...
Finit!Commandspruun package [OPTIONS] handler_pathUsage: pruun package [OPTIONS] handler_path

  Creates deployment package .zip file in current directory.

  handler_path (str): Name of Lambda handler file/directory.  Trailing slash
  for a directory path is optional.

  package-file (str, optional): Desired filename of deployment .zip file.
  Defaults to "deployment_package.zip".

Options:
  --package-file PATH  Desired filename of deployment .zip file.
  --help               Show this message and exit.ContributingSet up the development environment by runningmake setup.Before contributing a pull request, please make sure tests pass by runningmake test.
Package: prvd
provide-pythonProvide python client library.Installationpip install prvdpipenvpipenv installuses the Pipefile to install package dependencies.UsageBasic transaction creation using a Provide API token:fromprvd.goldmineimportGoldmineclient=Goldmine('your-provide-application-api-token')params={'account_id':'your-provide-application-account-uuid','method':'delegate','value':0,'params':["0x3109F8317aef2959dA5F57973031B9B43c0c617d"]}client.execute_contract('your-provide-application-smart-contract-uuid',params)
Package: prwlock
Areader-writer lockfor
Python that can (must, actually) be used for locking across multiple Python processes.The rationale and initial implementation of the project can be found in theaccompanying blog post.InstallationThis package isavailable on PyPi, so you can install the latest stable
release with a simplepipcall:$pipinstallprwlockUsageAll you have to do is import the module and start using it. There is no need
for initialization. Therefore, a code block such as the one below is enough to
get an RWLock instance.fromprwlockimportRWLockrwlock=RWLock()The RWLock itself is pickleable and, therefore, can be passed around to child processes,
such as in the code block below.from__future__importprint_functionimportosimporttimefrommultiprocessingimportPoolfromprwlockimportRWLockdeff(rwlock):foriinrange(2):print(os.getpid(),'Acquiring read lock')rwlock.acquire_read()print(os.getpid(),'Sleeping for a while')time.sleep(1)print(os.getpid(),'Releasing lock')rwlock.release()time.sleep(.1)r=RWLock()children=20pool=Pool(processes=children)forchildinrange(children):pool.apply_async(f,[r])Context Managersprwlockalso supports context managers using thewithsyntax. The code
block below displays one possible way of using it.fromprwlockimportRWLock# First you instantiate the lockrwlock=RWLock()# Now you can lock it in read or in write modewithrwlock.reader_lock():# If this executes, then reader lock access has been acquiredprint('Reading data')# Likewise, you can lock in writer mode with:withrwlock.writer_lock():print('Writing data')ContributorsRenato CunhaMarcos AssunçãoVyronas TsingarasChanges0.4.1: Fixed bug in which temporary files were left over in $TMPDIR0.4.0: Added context-management support using thewithsyntax;0.3.0: Completed the API’s implementation. Namely:Added support for immediate failure when locks cannot be obtained;Added timeouts for obtaining the locks.0.2.0: Added support for RWLocks on Windows XP and above. Changed the API so
that the lock can be imported asfrom prwlock import RWLock, instead of the
slightly awkwardfrom prwlock.prwlock import RWLockmethod.0.1.1: Fixed the value of thePTHREAD_PROCESS_SHAREDconstant for Mac OS
X. Also added a check to prevent double destruction of the underlying lock
on Mac OS X.0.1.0: Initial release
Package: prwlr
[![Build Status](https://travis-ci.org/dizak/prwlr.svg?branch=master)](https://travis-ci.org/dizak/prwlr)# prwlrprwlr (profiles crawler) integratesGenetic InteractionsandPhylogenetic Profiles.
prwlr aimes to be self-contained (as far as possible) and easy-to-use python library.
Package: prwm
prwm-pythonPacked Raw WebGL Model (PRWM) and PRWB (Packed Raw WebGL Binary) encoderPacked Raw WebGL Model is a binary file format for nD geometries specifically designed for JavaScript and WebGL with a strong focus on fast parsing (from 1ms to 0.1ms
in Chrome 59 on a MBP Late 2013).Seehttps://github.com/kchapelier/PRWMfor specifications detail
Package: prybar
A Python library to temporarily definepkg_resourcesentry pointsat runtime. The primary use case is testing code which works with entry points.Installing$pipinstallprybarprybar requires Python 3.6 or greater.Usage>>>importprybar>>>frompkg_resourcesimportiter_entry_points>>># Entry point doesn't exist>>>list(iter_entry_points('example.hash_types','sha256'))[]>>># With prybar's context manager we can create entry points temporarily>>>withprybar.dynamic_entrypoint('example.hash_types',...name='sha256',module='hashlib'):...hash=next(iter_entry_points('example.hash_types','sha256')).load()...hash(b'foo').hexdigest()[:6]'2c26b4'>>># And it's gone again>>>list(iter_entry_points('example.hash_types','sha256'))[]See thefull documentationfor more.
Package: prygress
Give yourself something to watch while your long calls are made. Add the '@progress' decorator to your functions, thats it!from prygress import progressfrom time import sleep@progressdef wait_with_me():sleep(10)wait_with_me()................................................ finished.To customize your bar, just add one or all of these params to the decorator:@progress(char='.', pause=0.2)Full documentation available at https://github.com/dboudwin/prygress
Package: prymatex
What is PrymatexPrymatex is a simple and flexible text editor. It’s written in PyQt4 and
it’s main aim is to support TextMate bundles.Why Prymatex?There areenoughtext editors out there, and many of them are
focused on writing code, just to name a few, Notepad++, Kate, Gedit,
Scribes, etc.These editors are great, but the way they are way they are extended is
complex for non C/C++ programmers (although this is changing gradually).
That’s where TextMate comes into place. It allows the user to define syntaxes,
snippets, macros and commands in a very simple way, using
shell scripting, Ruby, Python, PHP or any other tool wich can handle
shell variables and stdin/stdout pipes.There are a lots of these extensions (actually called Bundles) maintained by
enthusiasts. From Ruby on Rails, to OpenGL programming, these bundles come
with 3 basic components:SyntaxAn extensible syntax format (allowing inclusion/usage, ie: PHP includes HTML and JS)CommandsThey’re like what we all know as marcrosSnippetsPieces of text that can be tirggered in certain situationsTemplatesFile templatesRunning PrymatexSee INSTALL.rst to setup your enviroment.
Package: prymbr
prymbrA Package to simplify the usage of prime numbers, fractions, and other simple yet time consuming operations.Features:Check if a number is primeDecompose a number into a sequence of prime factorsFind gcd and lcm of 2 numbersCreate fractionsSimplify fractions to the maximumConvert fractions back to decimalsAnd more!Incoming Update:Faster calculations with the use ofSimdlibraryMore calculation optionsUsage:Installprymbron your system with pip:pip install prymbrExample:importprymbrprint(prymbr.isprime(51))#Falseprint(prymbr.decomp(78))#[2, 3, 13]print(prymbr.pgcd(45,63))#7print(prymbr.gcd(45,63))#7print(prymbr.ppcm(45,63))#405print(prymbr.lcm(45,63))#405fraction=prymbr.frac(88,48)#88/48print(fraction)print(prymbr.simp(fraction))#11/6print(prymbr.deci(fraction))#1.8333print(prymbr.frac(fraction))#Trueprint(prymbr.frac(1.6424))#2053/1250
Package: pryme
# pryme## written by J. Alex Ruble (Calamitizer)([GitHub repository](https://github.com/Calamitizer/pryme))## OverviewNote: This module is early in development and not too much super-cool stuff is implemented. Check it out if you're curious, though. The `Decomposition` class is pretty nifty.This is (/ will be) a Python module for various number-theoretic operations and combinatorial structures. Certain major functions are memoized to disk for efficiency. For example, output data for `decompose()` (which computes the prime factorization of its argument) is stored in `./memo/decompose.pryme`.This module is *not* intended to be suitable or efficient for large primes (> 2^64). The focus of this module is number theory on a more mundane scale. For efficient large primality tests and factorizations, the user is directed towards such modules as `gmpy2` and `SymPy`.## Usage Guide`NotImplemented`## Changelog### v0.2 (21 March '16)* Miller-Rabin primality test implemented.* `Decomposition`s are properly memoized.* `Decomposition` testing script begun.### v0.1 (13 March '16)This is the first pushed version of pryme. Noteworthy features: the `Decomposition` class and various utility decorators.## Jolly CooperationAll contributions to and optimizations of this project are welcome. Just fork pryme on GitHub and follow your heart.## ImplementationThis code is written in Python 2.7.3. (So far) only Python standard library modules are used.## AuthorYou can reach the author (Alex Ruble) most easily via GitHub ([Calamitizer](https://github.com/calamitizer)), email ([jaruble@ncsu.edu](mailto:jaruble@ncsu.edu)), or Twitter ([@aknifeallblade](https://twitter.com/aknifeallblade)).## LicenseThis software has no associated copyrights whatsoever (*i*.*e*. an [unlicense](http://unlicense.org/)). See `LICENSE.txt` for the full description. Crediting me is appreciated, but not required.
Package: prysenter
Prysenter is an absolutely minimal, text-only, terminal-only presentation runner.
It shows a sequence of strings, centered in your terminal.InstallingDownload and run presenter.py for an example of what it looks like.The python module,colorama, is an optional dependency for colorized output of slides.Color Mappingsf_color maps to colorama.Fore.CODE constant.b_color maps to colorama.Back.CODE constant.s_color maps to colorama.Style.CODE constant.A code example is in the Usage section below.UsageCrank the font size on your terminal, run your presentation.New Presentationsfrom prysenter import Prysentation
slides = ['Intro to Prysenter',
          'Prysenter presents',
          'Simple',
          'Minimal',
          'Quick',
          'Thank You.',]
Prysentation(slides=slides).start()Color Examplefrom prysenter import Prysentation
slides = ["{f_red}Red Slide",
          "{f_green}Slide",
          "{b_white}{f_yellow}{s_bright}What is this, I don't even.{s_reset_all}"]
Prysentation(slides=slides).start()Timeout ExampleYou can make all your slides advance after a presentation-wide timeout:from prysenter import Prysentation, pechakucha
slides = ["Pecha",
          "Kucha",
          "Who would ever need more",
          "Than 20 Seconds?"]
Prysentation(slides=slides, timeout=pechakucha.timeout).start()
Package: prysm3
=======
PRYSMopen-source tools for PRoxY System Modeling, v1.0: oxygen-isotope systemsIntroductionThe paper, published in JAMES:http://onlinelibrary.wiley.com/doi/10.1002/2015MS000447/fullProxy system modeling can be used in paleoclimatology to improve the interpretation of
paleoclimate data. Existing forward models for climate proxies are somewhat scattered in
the literature, making their integration difficult. Further, each model has been coded
separately, according to disparate conventions. Here, we present a comprehensive, consistently
formatted package of forward models for water-isotope based climate proxies (ice cores, corals,
tree ring cellulose, and speleothem calcite) [PRYSM]. This suite of Python-scripted models requires
a standard set of climate inputs and can be used to simulate the proxy variable of interest by proxy class.
By making this forward modeling toolbox publicly available, PRYSM provides an accessible platform that maximizes
the utility of proxy data and facilitates proxy-climate (simulated or historical) comparisons. Many of these codes
have been employed in past studies; we review modeling approaches for each proxy class, and compare
results when forced with an isotope-enabled climate simulation. Applications of multi-proxy forward
modeling including parameter estimation, the effects of physical processes (such as karst transit times
or firn diffusion in ice cores) on the simulated climate signal, as well as explicit modeling of
time uncertainties are used to demonstrate the utility of PRYSM for a broad array of climate studies.Dependenciespython 2.7 (https://www.python.org/download/releases/2.7/)numpy (http://www.numpy.org/)scipy (http://www.scipy.org/)rpy2 (http://rpy.sourceforge.net/) (For BCHRON)Optional:
matplotlib (http://matplotlib.org/) (For plotting tools)InstallationMake sure the dependencies are installed, then download and unzip this package, and then:python setup.py installAlternately, you can use pip:pip install git+https://github.com/sylvia-dee/PRYSM.gitEither method will add a module named 'psm' to your default lib/python2.7/site-packages/ directory.If you lack root access:python setup.py install --userFor git users:
git clonehttps://github.com/sylvia-dee/PRYSM.gitpython setup.py installTestingFrom the examples/ directory, run each of the example driver scripts and each of the plotting examples. For just the icecore example:python icecore_driver.pyThis will create numpy array output files in examples/results/:ice_Xn.npy
ice_time_d.npy
ice_depth.npy
ice_diffused.npyTo plot (requires matplotlib):python plot_icecore_example.pyThis will reproduce paper figure 3.
Package: prysm-api
prysm-apiThe API forPRoxY System Modeling (PRYSM).
Currently, it supports PSMs listed below:Ice-core d18OTree-ring width withVSLiteTree-ring celluloseTree MXDCoral d18O and Sr/CaSpeleothem d18OVarve thicknessHow to installSimplypipinstallprysm-apiLMRt# LMRt provides many useful functions necessary for prysm-apiTo use VS-Lite, inRinstall.packages("devtools")devtools::install_github("fzhu2e/VSLiteR")Usage examplesCalling VS-Liteimportprysmres=prysm.forward('prysm.vslite',# psm namelat_obs,lon_obs,# lat/lon of the target locationlat,lon,time,# dimension variables of the environmentals{# environmental variables:'tas':tas,# surface air temperature in (time, lat, lon) [K]'pr':pr,# precipitation rate in (time, lat, lon) [kg/m2/s]},T1=8,T2=23,M1=0.01,M2=0.05,# PSM specific parameters)Hereresis a dictionary that includes the pseudoproxy values and the
corresponding timepoints, plus other output for diagnostics.Calling the PSM for ice core d18Oimportprysmres=prysm.forward('prysm.ice.d18O',# psm namelat_obs,lon_obs,# lat/lon of the target locationlat,lon,time,# dimension variables of the environmentals{# environmental variables:'tas':tas,# surface air temperature in (time, lat, lon) [K]'pr':pr,# precipitation rate in (time, lat, lon) [kg/m2/s]'psl':psl,# sea-level pressure in (time, lat, lon) [Pa]'d18Opr':d18Opr,# precipitation d18O in (time, lat, lon) [permil]},)ReferencesDee, S., J. Emile-Geay, M. N. Evans, A. Allam, E. J. Steig, and D. m. Thompson, 2015: PRYSM: An open-source framework for PRoxY System Modeling, with applications to oxygen-isotope systems. J. Adv. Model. Earth Syst., 7, 1220–1247, doi:10.1002/2015MS000447.Dee, S. G., N. J. Steiger, J. Emile-Geay, and G. J. Hakim, 2016: On the utility of proxy system models for estimating climate states over the common era. J. Adv. Model. Earth Syst., 8, 1164–1179, doi:10.1002/2016MS000677.Dee, S. G., L. A. Parsons, G. R. Loope, J. T. Overpeck, T. R. Ault, and J. Emile-Geay, 2017: Improved spectral comparisons of paleoclimate models and observations via proxy system modeling: Implications for multi-decadal variability. Earth and Planetary Science Letters, 476, 34–46, doi:10.1016/j.epsl.2017.07.036.Dee, S. G., J. M. Russell, C. Morrill, Z. Chen, and A. Neary, 2018: PRYSM v2.0: A Proxy System Model for Lacustrine Archives. Paleoceanography and Paleoclimatology, 33, 1250–1269, doi:10.1029/2018PA003413.LicenseMIT License (see the detailshere)How to citeIf you find this package useful and use it in your research, please cite it with DOI:... and welcome to Star and Fork!
Package: prython
PrythonInspired byRuby's pry gemandthis snippet.Prython is a debugging aid, made to be lightweight and very easy to use. If you want to take a look at Python's official debugger,this is it.InstallationPython 3Install from PyPi with:pipinstallprythonor, in case you have 2 versions in your system and hasn't mapped Python 3 as the main one:pip3installprythonUsageAll of this package's methods are listed below (I told you it was lightweight and easy to use).
Remember toimport prythonat the top of your file.pry()importprythona="Are you prying?"defexample_function():b="With prython?"prython.pry()c="Yep!"If you run this file, say, from the command line, a REPL interpreter will pop up at the context of the line callingprython.pry(), which means you will have access to variablesaandbbut notc, as the line wasn't ran when prython was called.
Package: pryzm
Pryzm, color convenient class for linux/mac cliInstall itpip install pryzmCreate color 'wrappers' to compose text for printingimportpryzmaspzred=pz.Pryzm().red# create a function for a colorred_on_blue=pz.Pryzm().red().BLUE# lower case is text, CAPS is background.# NB: that to chain you need the () to capture the 'self' returnprint(red('Red Text')+" "+red_on_blue("followed by blue text"))# prints red and blue textCreate standalone functions to print directly by settingecho=Truein constructorimportpryzmaspzred=pz.Pryzm(echo=True).redred_on_blue=pz.Pryzm(echo=True).red().BLUEred("This is red text")# These two functions now print directlyred_on_blue("This is red text with blue background")# great for quickly creating semantic printing to better read console output!warning=pz.Pryzm(echo=True).yellowinfo=pz.Pryzm(echo=True).cyanerror=pz.Pryzm(echo=True).rederror("Error: this text shows as red")warning("Warning: pay attention, but really just an fyi")info("Cyan is probably a little strong, maybe green would be better")
Package: ps2
ps2ps tools that can be used in Linux/MacOS/Windows.Installpipinstallps2Usagezencore:scriptszencore$python3ps2.py--helpUsage:ps2.py[OPTIONS][OUTPUT]Thekeywordscanbeusedinoutputtemplate:cmdlineconnectionscpu_percentcpu_timescreate_timecwdelapsed_timeenvironexegidsmemory_full_infomemory_infomemory_info_exmemory_mapsmemory_percentnamenicenum_ctx_switchesnum_fdsnum_threadsopen_filespidppidstatusthreadsuidsusernameThedefaultoutputtemplateis:"{pid}\t{name}"Options:--helpShowthismessageandexit.Example 1By default, ps2 show pid and name.zencore:scriptszencore$ps20kernel_task89loginwindow282cfprefsd283distnoted287lsd306UserEventAgent311CommCenter312trustd313sharedfilelistd315Terminal...Example 2You can customize the output template, there are many KEYWORDS provided for you to use.zencore:scriptszencore$ps2'{pid}\t{elapsed_time}\t{cmdline}'0682055.903354883289682043.2770848274/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindowconsole282681934.4019351006/usr/sbin/cfprefsdagent283681934.2526762486/usr/sbin/distnotedagent287681933.4957187176/usr/libexec/lsd306681855.2815728188/usr/libexec/UserEventAgent'(Aqua)'311681855.1821689606/System/Library/Frameworks/CoreTelephony.framework/Support/CommCenter-L312681855.1382620335/usr/libexec/trustd--agent313681855.0924699306/System/Library/CoreServices/sharedfilelistd315681854.9572939873/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal-psn_0_69649Releases0.2.0 2019/12/06Fix package structure, remove src folder and put ps.py at the root of project folder.Change long description format from .rst to .md.0.1.3 2018/04/18First stable release.
Package: ps2-analysis
ps2-analysis [WORK IN PROGRESS]ps2-analysisis a library written in Python >= 3.8 that fetches data from the
Daybreak Planetside 2 Census API and eases advanced analysis.It uses its sister project, theps2-censusclient
whose objective is simply to handle data retrieval from the Census API. Further parsing
and exploitation is performed here inps2-analysis.ps2-analysisExamplesDevelopmentEnvironmentFeatures:Currently supports infantry and vehicle weapons dataDownloads datasets from the API and stores them locally asndjsonfilesParses data and generates class objects suitable for further processingInstallationpipinstallps2-analysisExamplesExamples are available in theexamplesfolder:discover_infantry_weapons.py: updates the infantry weapons datafile and outputs all different (nested) key paths as well as associated set of values encountered within the whole dataset; example output indiscover_infantry_weapons.jsondiscover_vehicle_weapons.py: updates the vehicle weapons datafile and outputs all different (nested) key paths as well as associated set of values encountered within the whole dataset; example output indiscover_vehicle_weapons.jsongenerate_infantry_weapons.py: no output; simply an example ofInfantryWeaponobjects generationgenerate_vehicle_weapons.py: no output; simply an example ofVehicleWeaponobjects generationDevelopmentEnvironmentIn order to developps2-analysis:Setup a virtual environment with python 3.8InstallpoetryInstall dependencies withpoetry installRun tests withpytestUpdate dependencies withpoetry updateTo run the examples in theexamplesfolder:Add your Census API service ID to theCENSUS_SERVICE_IDenvironment variableCreate a folder inside theexamplesfolder of the cloned repository:datafilesRun the scripts and check the outputs