Saravanan666/pypi-org huggingface dataset:
Package: pythonpancakes
🐍 Python Pancakes 🥞A simple request wrapper for the Pancake-Swap API.InstallationInstall package# Using pip$pipinstallpythonpancakes# Or from source$gitclonehttps://github.com/scottburlovich/pythonpancakes.gitpythonpancakes
$cdpythonpancakes
$python3setup.pyinstallImport module into your project and initialize API classfrompythonpancakesimportPancakeSwapAPIps=PancakeSwapAPI()UsagePlease note, the API functionality currently exposed by PancakeSwap is quite basic. This package will be updated
as they add new functionality.summary()Returns a dictionary containing data for the top ~1000 PancakeSwap pairs, sorted by reserves.Example invocation:summary=ps.summary()Example output:# output:{"updated_at":1234567,//UNIXtimestamp"data":{"0x..._0x...":{//BEP20tokenaddresses,joinedbyanunderscore"price":"...",//pricedenominatedintoken1/token0"base_volume":"...",//last24hvolumedenominatedintoken0"quote_volume":"...",//last24hvolumedenominatedintoken1"liquidity":"...",//liquiditydenominatedinUSD"liquidity_BNB":"..."//liquiditydenominatedinBNB},//...}}tokens(address)If address parameter is specified, returns the token information, based on address. Otherwise,
returns the tokens in the top ~1000 pairs on PancakeSwap, sorted by reserves.Example invocation without address:tokens=ps.tokens()Example output without address:{"updated_at":1234567,//UNIXtimestamp"data":{"0x...":{//theaddressoftheBEP20token"name":"...",//notnecessarilyincludedforBEP20tokens"symbol":"...",//notnecessarilyincludedforBEP20tokens"price":"...",//pricedenominatedinUSD"price_BNB":"...",//pricedenominatedinBNB},//...}}Example invocation with address:token=ps.tokens('0x00000000000...')Example output with address:# output{"updated_at":1234567,//UNIXtimestamp"data":{"name":"...",//notnecessarilyincludedforBEP20tokens"symbol":"...",//notnecessarilyincludedforBEP20tokens"price":"...",//pricedenominatedinUSD"price_BNB":"...",//pricedenominatedinBNB}}pairs()Returns data for the top ~1000 PancakeSwap pairs, sorted by reserves.Example invocation:pairs=ps.pairs()Example output{"updated_at":1234567,//UNIXtimestamp"data":{"0x..._0x...":{//theassetidsofBNBandBEP20tokens,joinedbyanunderscore"pair_address":"0x...",//pairaddress"base_name":"...",//token0name"base_symbol":"...",//token0symbol"base_address":"0x...",//token0address"quote_name":"...",//token1name"quote_symbol":"...",//token1symbol"quote_address":"0x...",//token1address"price":"...",//pricedenominatedintoken1/token0"base_volume":"...",//volumedenominatedintoken0"quote_volume":"...",//volumedenominatedintoken1"liquidity":"...",//liquiditydenominatedinUSD"liquidity_BNB":"..."//liquiditydenominatedinBNB},//...}}
Package: python-papi
PyPAPI is a Python binding for thePAPI (Performance Application Programming
Interface)library. PyPAPI
implements the whole PAPI High Level API and partially the Low Level API.NoteStarting withv5.5.1.4, PyPAPI is only compatible with GCC 7.0 or
higher. Please use previous releases for older GCC version.Documentation:https://flozz.github.io/pypapi/Installing PyPAPISee this page of the documentation:https://flozz.github.io/pypapi/install.htmlHackingBuilding PyPAPI For Local DevelopmentTo work on PyPAPI, you first have to clone this repositiory and
initialize and update submodules:git clone https://github.com/flozz/pypapi.git
cd pypapi

git submodule init
git submodule updateThen you have to build both PAPI and the C library inside thepypapimodule. This can be done with the following commands:python setup.py build
python pypapi/papi_build.pyLinting and Code formattingTo build lint the code, you first need to install Nox:pip install noxThen, run the following command:nox -s lintTo automatically coding style issues, run:nox -s black_fixGenerating DocumentationTo build the Sphinx documentation, you first need to install Nox:pip install noxThen, run the following command:nox -s gendocSupport this projectWant to support this project?☕️ Buy me a coffee💵️ Give me a tip on PayPal❤️ Sponsor me on GitHubChangelog[NEXT](changes onmaster, but not released yet):Nothing yet :)v5.5.1.6:chore: Added code linting with Flake8 (@flozz)chore: Added code formatter and reformatted all files with Black (@flozz)chore: Added Nox to run code linting, code formatting, doc building tasks (@flozz)chore: Updated dev dependnecies (@flozz)chore: Automatically build and publish sdist package and wheels for Linux (@flozz, #39)docs: Updated documentation (@flozz)v5.5.1.5:fix: Fixed issue with module namedtypes.py(@mcopik, #19)v5.5.1.4:chore: Fixed compilation with GCC 8 and newer (@maresmar, #18)chore!: PyPAPI is no more compatible with GCC < 7.0v5.5.1.3:chore: Removed.o,.loand other generated objects from the packagev5.5.1.2:feat: Partial bindings for the low level APIv5.5.1.1:chore: Added missing files to build PAPIv5.5.1.0:feat: Initial release (binding for papy 5.5.1)
Package: python-parakeet
Parakeetis a digital twin for cryo electron tomography and stands forProgram forAnalysis andReconstruction ofArtificial data forKryoElEctronTomographyInstallationParakeet can be installed using pip with the following command:pipinstallpython-parakeetNOTE:Because the package needs to be built locally from source and has
some external dependencies you may need to ensure your environment is ready before
running this command. You need to set the location of the CUDA compiler and
possibly G++ and FFTW libraries. For full instructions please see the
installation documentationhere.UsageParakeet can be used as a suite of command line tools as follows:parakeet.config.new-cconfig.yamlparakeet.sample.new-cconfig.yamlparakeet.sample.add_molecules-cconfig.yamlparakeet.simulate.exit_wave-cconfig.yamlparakeet.simulate.optics-cconfig.yamlparakeet.simulate.image-cconfig.yamlFor full command line usage instructions please see the command line
documentation herehere.
Alternatively, there is a complementary high level Python API which can be seenhere.DocumentationCheckout thedocumentationfor more information!NotificationsYou can receive notifications from theGithub discussionsby clicking "watch" on this repository.IssuesPlease use theGitHub issue trackerto submit bugs or request features.ChangesCheckout thechangelogfor a list of recent changes to parakeet.ContributionsIf you would like to help contribute to profet, please read ourcontributionguide andcode of conduct.LicenseCopyright Diamond Light Source and Rosalind Franklin Institute, 2019.Distributed under the terms of the GPLv3 license, parakeet is free and open source software.
Package: python-parallel-collections
This package provides a convenient interface to perform map/filter/reduce style operation on standard Python data structures and generators in multiple processes.The parallelism is achieved using the Python 2.7 backport of the concurrent.futures package.
If you can define your problem in terms of map/reduce/filter operations, it will run on several parallel Python processes on your machine, taking advantage of multiple cores.Examples athttps://github.com/gterzian/Python-Parallel-CollectionsFeedback and contributions highly sought after!
Package: python-parallel-hierarchy
A utility for creating a parallel class hierarchy based on a primary set of classes.How does it work?This package gives you an easy to use factory.  This factory takes as input a class from an original model, and outputs
a new class in a new parallel inheritance structure.More information athttps://gitlab.com/joel.larose/python-parallel-hierarchy/-/blob/master/README.rstHow to installpip install https://gitlab.com/joel.larose/python-parallel-hierarchy.gitorpip install python-parallel-hierarchy
Package: python-parameter-guard
Python GuardGuard is a fluent argument validation library that is intuitive, fast and extensible.InstallingTo run this project, I advise to user virtualenv. The project requires python == 3.6.mkvirtualenv -p $(which python3) pyguardAndpython setup.py installUsageHere's some examples how to use this package:from guard import Guard

Guard.NotNull(None) # Not Null Guard without parameter name and message
Guard.NotLessThan(-1, 0, "age") # Not Less Than Guard with parameter name and without custom message
Guard.NotAny([], "ags_lst", "This list must be at least one element.") # Not Any Guard with custom messageRunning the testspytest -v testsAuthorsJoao Teixeira-joaoteixeira88
Package: python_paris
python-paris: Hierarchical graph clustering algorithm (paris) and dendrogram processing=========================paris is a Python module that provides an implementation of the hierarchical clustering algorithm for graphs, paris.It provides four algorithms able to process dendrograms in order to extract best clusters, clusterings or distances.Installation------------Install the latest version of cylouvain using ``pip`` ::$ pip install python_parisDependencies------------cylouvain requires:- Python (>= 2.7 or >= 3.4)- NumPy- NetworkXSimple example--------------Build a simple graph with NetworkX::>>> import networkx as nx>>> graph = nx.Graph()>>> graph.add_nodes_from(['0', '1', '2', '3', '4', '5'])>>> graph.add_edges_from([(0, 1, 1), (0, 2, 1), (1, 2, 1), (2, 3, 1),(3, 4, 1), (3, 5, 1), (4, 5, 1)])Compute a clustering hierarchy of the nodes using paris::>>> from python_paris import paris>>> dendrogram = paris(graph)Compute the best clusters, clusterings and distances::>>> best_cluster = best_cluster_cut(dendrogram)>>> best_homogneous_clustering = best_homogeneous_cut(dendrogram)>>> best_heterogneous_clustering = best_heterogeneous_cut(dendrogram)>>> best_distance = best_distanceLicense-------Released under the Apache License 2.0 licence::Copyright (C) 2018 Bertrand Charpentier <bercha@kth.se>
Package: python-parmap
Parallel MapParmap is a python equivalent to Matlab's parfor function. Parmap runs
trivially parallisable problems in multiple parallel processes.A problem is trivially parallisable is each iteration of the loop
can be computed independently of every other iteration.Examplesfromparmapimportparmapx=np.arange(5)# Parallelise a call to a function with one argumentdefsqr(x):returnx*xparmap(sqr,x)>>>[0,1,4,9,16,25]# Parallelise a function with two argumentsdefhypot(x,y):returnnp.sqrt(x**2+y**2)# hypot is called on every combination of x[i] and x[j].# result has one hundred elementsparmap(hypot,x,x)>>>[0,1,2,...7.071]# Parallelise a function with  a configuration optiondefpower(x,n):returnx**n# parmap works accepts both positional and keyword arguments as keyword argumentsfunction_args=dict(n=3)result=parmap(hypot,x,fargs=function_args)defhypotn(x,y,n):returnx**n+y**nresult=parmap(hypot,x,x,fargs=function_args)Choosing your method of concurrencyPython is technically a single threaded application that does not allow multiple calculations to be performed at one time. There are three main tricks for getting around this limit.Multiprocessing:Multi-processing creates multiple, separate, Python processes on your computer that compete for resources. These processes are completely separate, and can communicate with each other only with some difficulty (the ability to communicate between processes is not exposed by parmap, which assumes the procesess are separate). Multi-processing is best for problems which involve lots of CPU calculations, but not a lot of reading/writing data from disk or the network.Threading:In threading mode, multiple tasks take turns using the CPU to complete their work, but spend most of their time asleep. Threads are must cheaper to create than processes, both in terms of memory needed, or time to create. Only one thread can run at a time in Python, so threading is of no advantage for CPU heavy tasks. However, tasks that involve downloading multiple files from the internet spend most of their time waiting anyway, and are ideal for threads.Asyncio:Asyncio is similar to threading, but each thread has very fine grain control over when it cedes control of the CPU. Where normal threads are told by the OS when to run and when to stop, asyncio "threadlets" announce when they've reached a good stopping point. Asyncio is more complicated to implement, and not recommended if your code is not already designed with async in mind.Your choice of concurrency in parmap can be set using the "engine" keyword.is_prime=parmap(check_if_prime,x,engine="multi")pdf_list=parmap(download_pdfs,url_list,engine="threads")The "serial" engine disables concurrency and runs the tasks in series with a normal for loop. If one of the tasks throws an uncaught exception, the code halts, allowing you to debug. The other engines skip over failed tasks and try to complete as many as possible.Installationpip install parmapThe fileimplementation.pyis stand alone. If you prefer, you can simply copy it into your source code.
Package: python-parrot
parrotis a simple HTTP server that
responds to any valid GET request with the file specified on the command
line.It is useful during testing (e.g. to mock out a server application), or
to do client testing. Both text and binary files are handlded correctly.Its only dependency is the excellentpython-magiclibrary for
mime type guessing. It works on Python 3.$ pip install python-parrotUsage$ parrot port filenameThe following arguments are required:port: Port to listen onfilename: Filename of the data to send in response to all
requestsSampleStart the parrot server:$ echo 'This is a test' > test.txt
$ parrot 8000 test.txt
parrot/1.0.0 listening on 0.0.0.0:8000 with file test.txt (text/plain)In another terminal (assuming10.1.1.1is a valid IP on the server):$ echo 'GET /anything HTTP/1.0' | nc 10.1.1.1 8000
HTTP/1.0 200 OK
Server: parrot/1.0.0 Python/3.4.2
Date: Thu, 24 Sep 2015 00:27:56 GMT
Content-Type: text/plain

This is a test
Package: python-parsnip
![Screenshot](https://github.com/timmyomahony/python-parsnip/raw/master/parsnip-screen-small.jpg)`Parsnip` is a basic python interface to allow the sending of web texts via the main 4 Irish mobile operators websites. It is influenced by [cabbage](http://cabbagetexter.com/), a popular `php` implementation.* **Meteor** : [http://mymeteor.ie](https://www.mymeteor.ie/mymeteorapi/index.cfm)* **O2** :  [http://o2online.ie](https://messaging.o2online.ie/smscenter_send.osp)* **Vodafone** : [http://vodafone.ie](https://www.vodafone.ie/myv/messaging/webtext/Process.shtml)* **Three** : [http://three.ie](http://webtext.three.ie/send.jsp)##Install##pip install -e git+https://github.com/timmyomahony/python-parsnip.git#egg=parsnip##Usage##import parsniptexter = parsnip.get_webtexter("Meteor", "0851111111", "1234")texter.login()texter.send("Heyo", ["0866666666", "0877777777", "0863333333"])print texter.get_remaining_webtexts()255texter.logout()* `get_webtexter(operator, phone_number, online_pin)` : is a factory method which returns an instance of `Webtexter`.* A webtexter instance has the following methods:* `login()` : login to remote operator site* `logout()` : clear cookies and perform logout on remote operator site* `send(message, recipients)` : sends a web text to the provided recipients, where `recipient` is either a comma separated string of phone numbers, or a list of phone numbers.* `get_remaining_webtexts` : returns an integer##Features##* For messages that have more characters then the provider allows (i.e. sending a message greater than 160 characters on Three), the message will be broken into smaller chunks and sent separately. The same can be said for recipients : if there are more recipients then the provider handles, they are split up and the message numerous times##TODO##* incorporate group texting* add ellipses to chunked messages##Contact##[me@timmyomahony.com](mailto://me@timmyomahony.com)
Package: python-particle
python-particleA python wrapper around the Particle Cloud API (http://particle.io)Installation NotesInstallable directly via pip. However some systems might need to install requests[security] if they get the InsecurePlatformWarning. That hasn’t been included in the requirements by default because it may not be required on all platforms.Local configuration SupportAs of v0.2 local support is available to configure devices over serial.TestsTests coming soon. Except tests for this particular package are going to be highly localized. You will need to provide a valid, particle username, password and not to mention a proper device ID that can be used to test the claim and request features
Package: python-paseto
python-pasetoPlatform-Agnostic Security Tokens for PythonInstallationpipinstallpython-pasetoCheck installationpython-mpasetolibsodiumis required, this will check if it is installed on your system. On Ubuntu 20.04 you can get it withsudo apt install libsodium23.Low level APIImplements PASETO Version2 and Version4 protocols supportingv2.public,v2.local,v4.publicandv4.localmessages.
Every protocol version provides access to encrypt() / decrypt() and sign() / verify() functions.Low level API is focuses on solid, high quality, production ready primitives
as specified directly in thePASETOprotocol.
Seepaseto-specfor protocol details.Example use with Version2frompaseto.protocol.version2importencrypt,decryptmessage=b"foo"# your datakey=b"0"*32# encryption keytoken=encrypt(message,key)plain_text=decrypt(token,key)assertplain_text==messageprint(f"token={token}")print(f"plain_text={plain_text}")print(f"message={message}")With optional footerfrompaseto.protocol.version2importencrypt,decryptmessage=b"foo"# your datakey=b"0"*32# encryption keyoptional_footer=b"sample_footer"# authenticated but not encrypted metadatatoken=encrypt(message,key,optional_footer)plain_text=decrypt(token,key,optional_footer)assertplain_text==messageprint(f"token={token}")print(f"plain_text={plain_text}")print(f"message={message}")Example use with Version4frompaseto.protocol.version4importcreate_symmetric_key,decrypt,encryptmessage=b"this is a secret message"# your datakey=create_symmetric_key()# encryption keytoken=encrypt(message,key)plain_text=decrypt(token,key)assertplain_text==messageprint(f"token={token}")print(f"plain_text={plain_text}")print(f"message={message}")Message signingfrompaseto.protocol.version4importcreate_asymmetric_key,sign,verifymessage=b"this is a public message"# your datapublic_key,secret_key=create_asymmetric_key()# signing / verifying keystoken=sign(message,secret_key)verified_message=verify(token,public_key)assertverified_message==messageprint(f"token={token}")print(f"verified_message={verified_message}")print(f"message={message}")High level APIIn the future a high level API will provide developer friendly access to low level API
and support easy integration into other projects.DevelopmentTypical dev workflow operations are automated inMakefile,
including testing, linting, code quality checks, benchmarks and dev environment setup.ContributingThis library is under active development and maintenance. For any feedback, questions,
comments or if you would like to request a feature, please raise an issue!
Package: python-passaporte-web
Sobre o Passaporte WebO Passaporte Web é um ecossistema de aplicações corporativas que disponibiliza uma série de funcionalidades para
simplificar a implementação, operação e comercialização de suas aplicações; com o objetivo de possibilitar que você
se preocupe somente com o desenvolmento das funções diretamente relacionadas aos objetivos de sua aplicação.Nosso objetivo é construir uma comunidade de desenvolvedores e aplicações de altíssima qualidade.O Passaporte Web oferece:Mecanismos de cadastro de usuários, autenticação e controle de acesso centralizado;Ferramentas para gestão de usuários, vendas, pagamentos, aplicações e controle de acesso aos sistemas e às APIs;Sistema de venda de acesso às aplicações, com suporte a múltiplos meios de pagamento e cobrança recorrente;Mecanismos para simplificar a integração entre aplicações do ecossistema;Ambientes de homologação (sandbox) para auxiliar o desenvolvimento e evolução de sua aplicação;Exemplo de utilizaçãofrompassaporte_web.mainimportApplicationmy_application=Application(host='https://sandbox.app.passaporteweb.com.br',token='qxRSNcIdeA',secret='1f0AVCZPJbRndF9FNSGMOWMfH9KMUFfF',)# Cadastrar um usuáriouser_data={'first_name':'José','last_name':'Ninguém','email':'jose.ninguem@example.test','password':'wmvgCW1WWa','password2':'wmvgCW1WWa','tos':True,}new_user=my_application.users.create(**user_data)# Ler e atualizar perfil do usuáriouser_profile=new_user.profileuser_profile.bio=u'Eu sou o usuário do exemplo de utilização.'user_profile.nickname='johndoe'user_profile=user_profile.save()# Criar uma conta para o usuário na aplicaçãoapp_account=new_user.accounts.create(name=u'Conta do usuário{0.email}'.format(new_user),plan_slug='test-plan',expiration=None,)# Listar as contas associadas a esta aplicaçãoforaccountinmy_application.accounts.all():print'Account{0.name}with uuid{0.uuid}e plano{0.plan_slug}'.format(account)
Package: python-passfd
This simple extension provides two functions to pass and receive file
descriptors across UNIX domain sockets, using the BSD-4.3+ sendmsg() and
recvmsg() interfaces.Direct bindings to sendmsg and recvmsg are not provided, as the API does
not map nicely into Python.Please note that this only supports BSD-4.3+ style file descriptor
passing, and was only tested on Linux. Patches are welcomed!For more information, see one of the R. Stevens’ books:Richard Stevens: Unix Network Programming, Prentice Hall, 1990;
chapter 6.10Richard Stevens: Advanced Programming in the UNIX Environment,
Addison-Wesley, 1993; chapter 15.3
Package: python-password-security
title: python-password-securityHelps you make sure your passwords followNSA's Network Infrastructure Security GuidanceNote: This project is by no way, shape, or form involved with the NSA. It just took inspiration from their guidance.Free software: MIT licenseDocumentation:https://python-password-security.readthedocs.io.FeaturesChecks if your password has been cracked before against a database of11.8 billion breached passwords.
Checks if your password includes capital letters, lowercase letters, numbers, and special characters.
Checks if your password is a keyboard walk (hint: they are highly insecure and not smart at all!)
Allows you to disable any of the security measures if you like to take risks!CreditsThis package was coded in it's entirety by Aria Bagheri. But you can always contribute if you want! Just fork the project, have your go at it, and then submit a pull request!
Special thanks to our heroes at the NSA, without their super comprehensive guidance, this library would not exist! Their recommendations are awesome, and I suggest following most of them!
Special thanks to folks at haveibeenpwned.com, the FBI, and the NCA. Without their amazing work, this project would lack a good database of pwned passwords to check against.
Also, thanks to Rich Kelley for providing the open source community with the keyboard walk algorithm. While it still is a proof of concept, it saved me a lot of time, and tears.