Saravanan666/pypi-org huggingface dataset:
Package: pyrage
pyragePython bindings for theRust implementation ofage.IndexInstallationUsageDevelopmentLicensingInstallationYou can installpyragewithpip:$python-mpipinstallpyragePEP 561-style type stubs are also available:$python-mpipinstallpyrage-stubsSee thedevelopment instructionsbelow for manual installations.UsageIdentity generation (x25519 only)frompyrageimportx25519ident=x25519.Identity.generate()# returns the public keyident.to_public()# returns the private keystr(ident)Identity-based encryption and decryptionfrompyrageimportencrypt,decrypt,ssh,x25519# load some identitiesalice=x25519.Identity.from_str("AGE-SECRET-KEY-...")bob=ssh.Identity.from_buffer(b"---BEGIN OPENSSH PRIVATE KEY----...")# load some recipientscarol=x25519.Recipient.from_str("age1z...")dave=ssh.Recipient.from_str("ssh-ed25519 ...")# encryptionencrypted=encrypt(b"bob can't be trusted",[carol,dave,alice.to_public()])# decryptiondecrypted=decrypt(encrypted,[alice,bob])Passphrase encryption and decryptionfrompyrageimportpassphraseencrypted=passphrase.encrypt(b"something secret","my extremely secure password")decrypted=passphrase.decrypt(encrypted,"my extremely secure password")Development$sourceenv/bin/activate$makedevelopLicensingpyrageis released and distributed under the terms of theMIT License.
Package: pyraider
PyRaiderUsing PyRaider You can scan installed dependencies known security vulnerabilities. It uses publicly known exploits, vulnerabilities database.DocumentationUsageTable of ContentsInstallationUsageScan DependenciesScan Dependencies by SeverityReportOutdated package checkCI/CDFixAutofixRelease NoteHelpDocumentationInstallpyraiderusingpiporpyenvpip install pyraiderpyenv install pyraiderTo check the list of options available.pyraider -hScan Vulnerabilities against the dependenciesUsing PyRaider you can scan the vulnerable packages.To run basic scan you can usepyraider gocommand.It will automatically detects the installed packages and scans against it and shows the report.pyraider goIf you want to scan you packages againstrequirements.txtorPipfile.lockfile.pyraider check -f /Users/raider/project/requirements.txtpyraider check -f /Users/raider/project/Pipfile.lockReportsPyRaider currently supportsJSON,HTMLandCSVformats.To Export as aJSONfile.pyraider go -e json result.jsonpyraider check -f /Users/raider/project/requirements.txt -e json result.jsonTo Export as aCSVfile.pyraider go -e csv result.csvpyraider check -f /Users/raider/project/requirements.txt -e csv result.csvTo Export as aHTMLfile.pyraider check -f go -e html result.htmlpyraider check -f /Users/raider/project/requirements.txt -e html result.htmlOut of Date PacakgesUsing PyRaider you can check the latest packages. Against installed packages.pyraider validate -p django==1.11.13pyraider validate -f /Users/raider/project/requirements.txtpyraider validate -f /Users/raider/project/Pipfile.lockAuto FixPyRaider also supportsfixfeature. Using this you can fix the vulnerable packages.Note:To updating the packages might affect your application.FixYou can fix vulnerable package.pyraider fixFix by Severitypyraider fix -s highAutofixYou can also autofix vulnerable packages.pyraider autofixAutofix by severitypyraider autofix -s highUpdate latest databaseNow you can update the resource database with latest updated vulnerabilitiespyraider updatedbDocker containerYou can also runpyraiderhas a docker container.Build docker container imagedocker build -t pyraider .Contact us:Discord :Click hereto join Discord, to be a part ofPyRaiderfamily.Follow us on Twitter :https://twitter.com/tilakthimmappaEmail :tilakthimmappa@gmail.comContributeWe welcome contributions to this project in the form of:Feature Requests, SuggestionsBugsHelp with writing testsAdd-on features, plugins, etcDocumentationAuthorTilak ThimmapppaTwitter
Package: py-raider-admin
py-raider-reporterRaider Admin Interface for Python. Simply manage payouts from Python. Used in pair withRaider, the Affiliates Tracker Page.Who uses it?SmartphonikerHow to installYou need to expose your raider database in order to use this lib. It is recommended that you create a special remote user for that purpose.Install with pip:$pipinstallpy-raider-adminHow to useraider-admincan be instantiated as such:TODOWhat is Raider?ℹ️Wondering what Raider is?Check outvaleriansaliou/raider.
Package: py-raider-reporter
py-raider-reporterRaider Reporter for Python. Used in pair withVigil, the Affiliates Tracker Page.Who uses it?SmartphonikerHow to installInstall with pip:$pipinstallpy-raider-reporterHow to useraider-reportercan be instantiated as such:TODOWhat is Raider?ℹ️Wondering what Vigil is?Check outvaleriansaliou/vigil.
Package: pyraii
PyRAIIDeclerative resource management library for pythonExamplesClosing Resources only on exception:from pyraii.context import closing_on_exception

def wait_for_authenticated_client_connection():
    my_socket = wait_for_client_connection(*args)
    with closing_on_exception(my_socket):
        username = authenticate_connection(my_socket)
        return my_socket, usernameNothrow closing:from pyraii.context import closing_nothrow

# If the file fails to close no exception will be thrown
with closing_nothrow(my_file):
    my_file.write(data)Resource owning classes:from pyraii.resource_owner import ResourceOwner

class Server(ResourceOwner):
    def __init__():
        self.socket_a = get_socket()
        self.socket_b = get_other_socket()
        self._log_file = open_log_file()
        self._data = "asdasd"
my_server = Server()
my_server.close() # will close all sockets and files which are members of the serverThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.Free software: MIT licenseHistory1.0.0 (2019-10-18)First release on PyPI.1.0.1 (2019-10-18)Add coverageFix documentation
Package: py-raildriver
Python interface to Train Simulator 2016. The aim of this project is to ease communication withraildriver.dllprovided with Train Simulator.py-raildriver’s only external dependency issixwhich should make this project compatible with both Python 2 and 3.Installationpip installpy-raildriverDocumentationSeeraildriver.RailDriverdocstrings.Usage exampleStart your Railworks.exe, get running, pause and try this in your Python console.>>> import raildriver
>>> rd = raildriver.RailDriver()
>>> rd.set_rail_driver_connected(True)  # start data exchange
>>> assert 'SpeedometerMPH' in dict(rd.get_controller_list()).values(), 'SpeedometerMPH is not available on this loco'
>>> rd.get_current_controller_value('SpeedometerMPH')
50.004728991072624922Bugs & ContributingPlease use Github to report bugs and feature requests:http://github.com/centralniak/py-raildriverCode contributions are of course more than welcome. Please remember about unit tests or your code might not be accepted.
You can run the test suite with::python setup.py testauthor:Piotr Kilczukdate:2015/11/14
Package: pyrailgun
This is a simple python crawler framework for humanyou can crawler website more easilyonly need a json file to descrip your crawleroptional module: webkitif you have PyQt4 And QtWebkit installed, you can specific to use webkit to crawler html after javascript renderedseehttps://github.com/princehaku/pyrailgun/tree/master/demofor some demosseehttps://github.com/princehaku/pyrailgunfor more infomation
Package: pyrainbird
Python module for interacting withWiFi LNKmodule of the Rain Bird Irrigation system. This project has no affiliation with Rain Bird.This module communicates directly towards the IP Address of the WiFi module. You can start/stop the irrigation, get the currently active zone, and other controller settings. This library currently only has very limited cloud support. Also there are a number of Rain Bird devices with very different command APIs.Seedocumentationfor full quickstart and API reference.
See thegithub project.QuickstartThis is an example usage to get the current irrigation state for all available
irrigation zones:import aiohttp
from pyrainbird import async_client

async with aiohttp.ClientSession() as client:
    controller: AsyncRainbirdController = async_client.CreateController(
        client,
        "192.168.1.1",
        "password"
    )
    zones = await controller.get_available_stations()
    states = await controller.get_zone_states()
    for zone in zones:
        if zone in states.active_set:
            print("Sprinkler zone {zone} is active")Seeexamplesfor additional details on how to use the APIs and an example command
line tool for querying the device.CompatibilityThis library has been tested with the following devices:ESP-TM2You are welcome to file an issue for improved compatibility with your device especially if you
include debug logs that capture the API responses form the device.SeeCONTRIBUTINGfor details on developing in the library itself, such as
running the tests and other tooling used in development.
Package: pyrainboweffect
pyrainboweffect中文指南Documentación en españolDocumentation en françaisIntroductionTake an image like this:And transform it to this:Quick StartInstall the package:pip install pyrainboweffectPython APIIn a Python console, import the package:>>>importpyrainboweffectApply the effect to an image file and save the result as a gif:>>>pyrainboweffect.psychedelic_gif('input.png','output.gif')Apply the effect to an image file and save the result as an mp4:>>>pyrainboweffect.psychedelic_mp4('input.png','output.gif')CLITo use the CLI:$python-mpyrainboweffectinput.pngoutput.gifAPI DocumentationFor the complete API documentation,click here.Theory of OperationThis effect can be generated as follows:Convert the image to greyscale.Partition the intensity space into the same number of partitions as colors
in the color scheme.Set the intensity regions to their corresponding colorsIncrease the intensity of all pixels in the original image (restarting at 0
intensity if overflow occurs).Go to step 2 and repeat until there are enough sequential frames to make an
animation.DependenciesOnly Python version 3.6 and greater are supported.  This package should run on
any POSIX system as well as Windows 7 and greater.The following Pypi packages are required:moviepynumpyopencv-pythonContributingSuggestions and pull requests are welcome.  If you find a bug and don't have
time to fix it yourself, feel free to open an issue.Future TasksTODO: Apply the psychedelic effect to an animated image or video.
Package: pyraingen
pyraingenA package for stochastically generating daily and subdaily rainfall in Australia with ifd constraining.Installation$pipinstallpyraingenUsagepyraingencan be used to stochastically generate regionalised daily rainfall, disaggregate daily rainfall to subdaily fragments and constrain generated rainfall to observed or predicted Intensity Frequency Duration (IFD) relationships.
The three main functions are:frompyraingen.regionaliseddailysimimportregionaliseddailysimfrompyraingen.regionalisedsubdailysimimportregionalisedsubdailysimfrompyraingen.ifdcondimportifdcondGo topyraingen.readthedocs.iofor further documentationContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepyraingenwas created by Caleb Dykman. Caleb Dykman retains all rights to the source and it may not be reproduced, distributed, or used to create derivative works.Creditspyraingenwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pyraknet
pyraknet allows you to concentrate on your game or application rather
then writing a your own networking code. It is straightforward to implement
and you only need a small amount of UDP networking knowledge.Easy to implementCross platformHigh performanceLow bandwidth overheadAutomatic peer management. Each client is assigned an identifier.Optonally specify packets to be reliable – packets will automatically
resend themselves if dropped.Optonally specify packets to arrive in the right order, or to be discarded
if it receives an old packet.
Package: pyrallel
# Pyrallel - Parallel Data Analytics in PythonOverview: experimental project to investigate distributed computation
patterns for machine learning and other semi-interactive data analytics
tasks.Scope:focus on small to medium dataset that fits in memory on a small
(10+ nodes) to medium cluster (100+ nodes).focus on small to medium data (with data locality when possible).focus on CPU bound tasks (e.g. training Random Forests) while trying to
limit disk / network access to a minimum.do not focus on HA / Fault Tolerance (yet).do not try to invent new set of high level programming abstractions
(yet): use a low level programming model (IPython.parallel) to finely
control the cluster elements and messages transfered and help identify
what are the practical underlying constraints in distributed machine
learning setting.Disclaimer: the public API of this library will probably not be
stable soon as the current goal of this project is to experiment.## DependenciesThe usual suspects: Python 2.7, NumPy, SciPy.Fetch the development version (master branch) from:https://github.com/ipython/ipythonhttps://github.com/scikit-learn/scikit-learnStarClusterdevelopbranch and itsIPClusterplugin is also required
to easily startup a bunch of nodes with IPython.parallel setup.## Patterns currently under investigationAsynchronous & randomized hyper-parameters search (a.k.a. Randomized Grid
Search) for machine learning modelsShare numerical arrays efficiently over the nodes and make them
available to concurrently running Python processes without making
copies in memory using memory-mapped files.Distributed Random Forests fitting.Ensembling heterogeneous library models.Parallel implementation of online averaged models using a MPI AllReduce, for
instance using MiniBatchKMeans on partitioned data.See the content of theexamples/folder for more details.## LicenseSimplified BSD.## HistoryThis project started at the [PyCon 2012 PyData
sprint](http://wiki.ipython.org/PyCon12Sprint)
as a set of proof of concept [IPython.parallel
scripts](https://github.com/ogrisel/pycon-pydata-sprint).
Package: pyrally
Access the Rally API using python.Currently it provides read and write access to some of the API provided by
Rally.At the top level, the client can be used to:get all the entities in Rallyget all stories/defects in a kanban state in rallyget a story/task by nameOr, by importing the model objects, it is possible to:get all stories/tasks/defects/iterations/user in Rallyget a story/task/defect/iteration/user by nameupdate a story/task/defect/iteration/user attributes in Rallydelete a story/task/defect/iteration/user from Rallycreate a new story/task/defect/iteration/user in Rally.Full documentation can be found here:http://readthedocs.org/docs/pyrally/en/latest/
Package: py-rally-sdk
PyRallyWelcome to theRally Protocol Python SDK!This SDK provides an easy way to interact with
the Rally Protocol gas station network.
With this SDK, you can easily submit gasless transactions to the Rally GSN API. For more information about
gasless transactions and the Rally Protocol, visitRally ProtocolInstallationpipinstallpy-rally-sdkUsageNavigate toRally Appto generate API Keys for polygon mumbai and polygon pos.Getting started with the RallyNetworkClientThe network client allows you to send transactions to the relayer and also transfer supported tokens from one address to another.
The SDK provides both mumbai and polygon POS network clients.frompy_rallyimportNetworkClientBuilderfrompy_rally.custom_typesimportAccount,MetaTxMethod# Create an Account Objectaccount=Account('<PRIVATE_KEY>','<ADDRESS>')# Get polygon mumbai testnet clientmumbai_network_client=NetworkClientBuilder.get_rally_mumbai_client()mumbai_network_client.set_api_key('<RALLY MUMBAI API KEY>')# Get polygon mainnet clientpolygon_network_client=NetworkClientBuilder.get_rally_polygon_client()polygon_network_client.set_api_key('<RALLY MAINNET API KEY>')# Claim Rally into account on testnetmumbai_network_client.claim_rally(account)# Transfer rally to another account on testnetmumbai_network_client.token_transfer(account,'<TO ADDRESS>',1,'<RALLY TESTNET TOKEN ADDRESS>',MetaTxMethod.ExecuteMetaTransaction)# Rally Token supports execute meta transaction.Calling contracts not supported by the SDKThe SDK allows sending transactions to the relayer API for contracts not supported by the SDK.
The contract has to be a supported contract on Rally Protocol. Rally Protocol supportsERC2771 compatible contracts. For more
information about this, visitRally documentationfrompy_rallyimportNetworkClientBuilderfrompy_rally.custom_typesimportAccountclient=NetworkClientBuilder.get_rally_polygon_client()client.set_api_key('<API KEY>')# Build raw transaction using web3.pysigner=Account('<PRIVATE_KEY>','<ADDRESS>')ABI=['CONTRACT ABI']contract_address=client.web3.to_checksum_address('<Address>')contract=client.web3.eth.contract(contract_address,abi=ABI)tx=contract.functions.claim().build_transaction({'from':signer.address})gsn_txn={'from_address':tx['from'],'to':tx['to'],'data':tx['data'],'max_fee_per_gas':hex(tx['maxFeePerGas']),'max_priority_fee_per_gas':hex(tx['maxPriorityFeePerGas']),'gas':hex(tx['gas']),'value':tx['value'],'paymaster_data':'0x','client_id':1,}tx_hash=client.relay_transaction(signer,gsn_txn)Built with ❤️ by teepy🇳🇬
Package: pyramaterised
About:pyramaterisedis a framework for creating and measuring Parameterised Quantum Circuits (PQCs)
in Python, by acting as a wrapper around theQuTIPlibrary. A series of PQCs from the
literature have been implemented using the framework alongside various collated capacity
measures.Usage:Simply run in your current (virtual) environment:pip install pyramaterisedCheck outexample.pyortests.pyfor examples of the framework in action.Circuits:A diagram of some of the circuits available in the library (custom circuits can be easily constructed). NPQC diagram from[1], XXZ and TFIM circuits adapted from[2]and fermionic circuit diagram from[3].Capacity measures:Capacity measures tell you how well an aspect of a PQC is performing,e.g,entanglement measures the amount of entanglement generated by the circuit, expressibility describes how well anNqubit circuit explores theNqubit Hilbert space.EntanglementExpressibilityQFIMEffective Quantum DimensionRényi Entropy of MagicGKP MagicEffective Hilbert Space - new measure based on finding the subspace that minimises a circuit's expressibility.Technical decisions:Python: de-facto scientific programming language, interoperability with QuTIP important.Object oriented: circuits being comprised of layers of gates with similar shared behaviours seemed a good fit.Designed to allow users to create PQCs more easily than writing every gate by hand in QuTIP or similar program.AcknowledgementsThanks to thenumpy,scipy,matplotlibandQuTIPlibraries.
Thanks to F. Roberts and T. Haug for their help.
Package: pyramco
pyramcoA complete Python wrapper class for the RAMCO APIversion 0.9.70
10-3-2020Notes for 0.9.70 release:Attributes and Attribute Values arguments now accept lists and dicts, respectively, and no longer accept formatted strings. THIS IS A BREAKING CHANGE. Use version <= 0.9.69 for backward compatibility.Strings passed to Attributes and Attribute Values arguments are now sanitized of literal "#" characters, which are detected and base64 encoded properly for CRM. (You may still override the default string delimiter in the usual manner)API key will be detected as an environment variable OR in a config file, OR can be passed as an argument 'ramco_api_key'.Added a new error message/code for missing API key.RAMCO API Documentation permalink:https://api.ramcoams.com/api/v2/ramco_api_v2_doc.pdfRequires therequestsmodule:https://pypi.org/project/requests/The contributors to Pyramco are not affiliated, associated, authorized, endorsed by, or in any way officially connected with RAMCO, The NATIONAL ASSOCIATION OF REALTORS®, or any of their subsidiaries or affiliates. The official RAMCO website can be found athttps://ramcoams.comThe name RAMCO, as well as related names, marks, emblems and images are registered trademarks of their respective owners.
Package: pyrameter
pyrameterpyrameteris a library for designing hierarchical parameter searches with
continuous and discrete domains, and then search those spaces.InstallationDependenciesA Short ExampleInstallationpip install pyrameterDependenciesnumpyscipyscikit-learnpymongodillsixA Short Exampleimportmathimportpyrameter# Minimize the sin functiondefobjective(params):returnmath.sin(params['x'])# Uniformly sample values over [0, pi]space={'x':pyrameter.uniform(0,math.pi),}# Set up the search with an experiment key, the domains to search, and# random search to generate values.opt=pyrameter.FMin('sin_exp',space,'random')# Try 1000 values of x and store the result.foriinrange(1000):trial=opt.generate()trial.objective=objective(trial.hyperparameters)# Print the x that minimized sinprint(opt.optimum)
Package: pyrameters
PyrametersPyrameters is a package for programmatically interacting with hierarchical parameter inputs for scientific software. It is currently targeted at theDeal.II PRM format.UsageThis package can be installed from the PyPi package managerpip install pyrametersUsing it is a matter of importing thepyrametersmodule, and creating aPRMobject.from pyrameters import PRM

with open('input.prm','r') as input:
    prm = PRM(input.read())

if prm['Dimension'] == 2:
    prm.set('/Model geometry/Hypercube/Length', 100)
else:
    prm.get('/Model geometry/Hypercube/Length', 10)

print(prm)An emptyPRMobject can also be created without providing an input file.from pyrameters import PRM

prm = PRM()

prm['Dimension'] = 3
prm['Output directory'] = 'results'
prm.add_subsection('Postprocess')
prm['Postprocess']['Output frequency'] = 10
prm.set('/Postprocess/Visualization/Format','vtu')

print(prm)Which would output parameters to the terminal in validPRMformat:set Dimension = 3set Output directory = resultssubsection Postprocessset Output frequency = 10subsection Visuzliationset Format = vtuendend