Saravanan666/pypi-org huggingface dataset:
Package: pypyr-scheduler-server
Schedulepypyrpipelines withapschedulerand control them via REST. The API interface is provided byconnexion.Documentation statusThis documentation is in a very early stage and many things could be missing or wrong. Please rely on the code for now.InstallMake a new venv, activate it, clone the repo, runpip install. No pypi release yet.
We recommend usingpipenv, which makes it easy to run commands inside a virtual env without the need to create or activate it:pip install --user pipenv  # only needed once per python install
pipenv install
pipenv run serverUsagepypyr-schedulerneeds a shared secret between the server and the client.
It reads it from the environment variablePYRSCHED_SECRET.
If the server does not see a secret it generates it and writes it to its
logfile for later use. If there is a secret set in the environment, it is used.A client needs the same shared secret.Development / TestingRunpipenv run server. Now you can connect to the server with a suitable client.
Currently available arepypyr-scheduler-cliandpypyr-scheduler-rpc-clientwith the first one depending on the latter.Production deploymentTBD.DocumentationDetailed documentaion is available onReadTheDocs.
It is generated from thedocs/sourcefolder in this repository. Feel free to send a PR is you find any typos.DevelopmentRun tests withpipen run tests.Quick linkshttps://travis-ci.org/pypyr-scheduler/pypyr-schedulerhttps://coveralls.io/github/pypyr-scheduler/pypyr-schedulerRelated projectspypyris the workhorse underlying pypyr-scheduler.
It runs pipelines defines as .yaml file and has many different pipeline steps included.
Check it out, if you need a simple task automation for one-shot execution.Flask-APSchedulerprovides
a similar way to run job within flask as server. It even provides a REST-API. Try this
if you don't need the functionality of pypyr.
Package: pypyrslack
pypyr slack plug-inSend messages toslackfrom pypyr. This is useful
for sending notifications on success or failure conditions in your automation
pipelines. Or for sending a message just because you can.You can send slack message notifications via the cli without writing any code.pypyris a cli & api to run pipelines
defined in yaml.All documentation for the pypyr slack plugin is here:https://pypyr.io/docs/plugins/slack/installation$pipinstall--upgradepypyrslackpypyrslack depends on the pypyr core. The abovepipwill install it
for you if you don't have it already.usageExample automation pipeline sending notifications to slack:steps:-name:pypyrslack.steps.sendin:slackToken:supersecurevaluegoeshereslackChannel:"#channelnamehere"slackText:"pypyrisbusydoingthings:construction:"Help!Don't Panic! Check thepypyrslack technical docsto begin.
For help, community & talk, checkpypyr twitter, or join the chat at thepypyr community discussion forum!contributedevelopersFor information on how to help with pypyr, run tests and coverage,
please do check out thepypyr contribution
guide.bugsWell, you know. No one's perfect. Feel free tocreate an
issue.Licensepypyr is free & open-source software distributed under the Apache 2.0 License.Please seeLICENSEin the root of the repo.Copyright 2017 the pypyr contributors.
Package: pypywhois
whoisA Python package for retrieving WHOIS information of domains.FeaturesPython wrapper for Linux "whois" command.Simple interface to access parsed WHOIS data for a given domain.Able to extract data for all the popular TLDs (com, org, net, biz, info, pl, jp, uk, nz,  ...).Query a WHOIS server directly instead of going through an intermediate web service like many others do.Works with Python 3.x.All dates as datetime objects.Possibility to cache results.Verbose output on stderr during debugging to see how the internal functions are doing their workraise a exception on Quota ecceeded type responsesraise a exception on PrivateRegistry tld's where we know the tld and know we don't know anythingallow for optional cleaning the whois response before extracting informationInternational domain name support & common Chinese domain name supportHelp WantedFork from:https://github.com/DannyCork/python-whois/labels/help%20wanted基于python-whois 项目增加了对常见中文域名的支持Usage exampleInstallpypywhoispackage from your distribution (e.g apt install pypywhois)$pip install pypywhois

>>> import pypywhois
>>> domain = pypywhois.query('google.com')

>>> print(domain.__dict__)
{
	'expiration_date': datetime.datetime(2020, 9, 14, 0, 0),
	'last_updated': datetime.datetime(2011, 7, 20, 0, 0),
	'registrar': 'MARKMONITOR INC.',
	'name': 'google.com',
	'creation_date': datetime.datetime(1997, 9, 15, 0, 0)
}

>>> print(domain.name)
google.com

>>> print(domain.expiration_date)
2020-09-14 00:00:00

>>> domain = pypywhois.get('meta.com')
>>> print(domain)

>>> domain = pypywhois.get('meta.中文网', internationalized=True)
>>> print(domain)ccTLD & TLD supportsee the file: ./whois/tld_regexpr.py
or call whois.validTlds()IssuesRaise an issuehttps://github.com/DannyCork/python-whois/issues/newChanges:2022-07-08: 新增支持的中文域名后缀手机信息中國新闻移动联通微博2022-07-06: 新增支持的中文域名后缀中文网在线中国娱乐机构组织机构公司集团网站网络政府游戏企业政务SupportPython 3.x is supported.Python 2.x IS NOT supported.
Package: pypz-core
DescriptionThis package contains all the necessary core components to realize the
functionalities ofpypz.Check thedocumentationfor
more details.InstallThe python artifact is hosted onhttps://pypi.org/, so you can install
it via pip:pipinstallpypz-coreIf you want to work on it locally, then you should install in editable mode:pipinstall-e./coreTestBefore you run the tests, you need to install the subproject in editable mode.
To run the tests locally, you need to execute the following command:python-munittestdiscover.\core\test\-p"*.py"BuildBefore you build, you will need to install the "build" package:pipinstallbuildThen from the subproject's root, you will need to execute the following command:python-mbuildIt will create the source distribution and the wheel file in the "dist" folder.
Package: pypz-io-sniffer
DescriptionThis package contains the experimental implementation of the IO Sniffer.
The Sniffer allows you to visualize the control plane of the IO ports of
the operators, so you can have a better understanding, what happens during
the execution of your pipeline.Check thedocumentationfor
more details.InstallThe python artifact is hosted onhttps://pypi.org/, so you can install
it via pip:pipinstallpypz-io-snifferIf you want to work on it locally, then you should install in editable mode:pipinstall-e./snifferTestBefore you run the tests, you need to install the subproject in editable mode.
To run the tests locally, you need to execute the following command:python-munittestdiscover.\sniffer\test\-p"*.py"BuildBefore you build, you will need to install the "build" package:pipinstallbuildThen from the subproject's root, you will need to execute the following command:python-mbuildIt will create the source distribution and the wheel file in the "dist" folder.
Package: pypz-k8s-deployer
DescriptionThis package contains the Kubernetes implementation of the deployer interface
ofpypz. It enables the deployment of the pipelines to a Kubernetes cluster.Check thedocumentationfor
more details.InstallThe python artifact is hosted onhttps://pypi.org/, so you can install
it via pip:pipinstallpypz-k8s-deployerIf you want to work on it locally, then you should install in editable mode:pipinstall-e./deployers/k8sTestYou can run tests against an existing Kubernetes cluster, however, it is
more convenient and safe to useKindfor this
purpose.Follow the instructions to install Kind. Note that Kind prepares the
required config file~/.kube/config. If you work with your own cluster,
make sure, you have this file already in place.Install the subproject in editable more.pipinstall-e./deployers/k8sStart the clusterkindcreateclusterBuild the test images (test/resources)dockerbuild-tpypz-test-image.Load the test image onto the Kind nodekindloaddocker-imagepypz-test-imageTo run the tests locally, you need to execute the following command:python-munittestdiscover.\deployers\k8s\test\-p"*.py"Delete clusterkinddeleteclusterBuildBefore you build, you will need to install the "build" package:pipinstallbuildThen from the subproject's root, you will need to execute the following command:python-mbuildIt will create the source distribution and the wheel file in the "dist" folder.
Package: pypz-kafka-io
DescriptionThis package contains the Kafka implementation of the Input-/OutputPortPlugin
interface ofpypz. It enables the operators to send and receive data records
in a real streaming fashion.Check thedocumentationfor
more details.InstallThe python artifact is hosted onhttps://pypi.org/, so you can install
it via pip:pipinstallpypz-kafka-ioIf you want to work on it locally, then you should install in editable mode:pipinstall-e./plugins/kafka_ioTestYou can run tests against an existing Kafka cluster, however, it is
more convenient and safe to use a local test cluster.Run theconfluent imageto start a local clusterdockerrun--namekafka-test-cluster-d--rm-p9092:9092confluentinc/confluent-localInstall the subproject in editable more.pipinstall-e./plugins/kafka_ioTo run the tests locally, you need to execute the following command:python-munittestdiscover.\plugins\kafka_io\test\-p"*.py"Delete clusterdockerstopkafka-test-clusterKnown issuesDue to the fact that the test execution is sometimes faster than the Kafka
cluster, there might be failed tests. Although there are already several
delays inserted into the test code, it still can happen. Try to rerun the
test and give a notification to the maintainer(s). Thank you.BuildBefore you build, you will need to install the "build" package:pipinstallbuildThen from the subproject's root, you will need to execute the following command:python-mbuildIt will create the source distribution and the wheel file in the "dist" folder.
Package: pyq
PyQ - Python for kdb+PyQbrings thePython programming languageto thekdb+ database.
Part of theFusion for kdb+interface collection.It allows developers to integrate Python and q codes seamlessly in one application.
This is achieved by bringing the Python and q interpreters into the same process so that code written in either of the languages operates on the same data.
In PyQ, Python and q objects live in the same memory space and share the same
data.Pleasereport issuesin this repository.InstallationpipinstallpyqSee detailedinstallation instructions.UsageFor Python programmers:$pyq>>>frompyqimportq>>>1+q.til(10)k('1 2 3 4 5 6 7 8 9 10')or run your Python script aspyq[pythonoptions]python-scriptFor q programmers:$qq)p)frommathimporthypot/ prefix python code with p)q)p)q.h=hypot/ import a python functionq)h34/ call the python function from q5fDocumentationDocumentation is available on thePyQ homepage.TestingUsetoxto run tests.cdpath/to/pyq/source
tox
Package: pyq3serverlist
pyq3serverlistSimple Python 🐍 library for querying Quake 3 based principal servers and their game servers. Very much based onjacklul's PHP implementation.Featuresretrieve a list of game servers from a Quake 3 principal ("master") serversupports both UDP (default) and TCP for server list retrievalretrieve status details and current players from game serversInstallationSimply install the package via pip.$pipinstallpyq3serverlistUsageThe following example retrieves and prints a game server list for Call of Duty 4: Modern Warfare directly from Activision via UDP.frompyq3serverlistimportPrincipalServerfrompyq3serverlist.exceptionsimportPyQ3SLError,PyQ3SLTimeoutErrorprincipal=PrincipalServer('cod4master.activision.com',20810)try:servers=principal.get_servers(6)print(servers)except(PyQ3SLError,PyQ3SLTimeoutError)ase:print(e)You can also directly initialize a game server object for a known server and query its status.frompyq3serverlistimportServerfrompyq3serverlist.exceptionsimportPyQ3SLError,PyQ3SLTimeoutErrorserver=Server('198.144.177.2',27963)try:info=server.get_status()print(info)except(PyQ3SLError,PyQ3SLTimeoutError)ase:print(e)Medal of Honor: Allied Assault, Medal of Honor: Allied Assault Spearhead, Medal of Honor: Allied Assault Breakthrough and Medal of Honor: Pacific Assault all use GameSpy for listing server and support the GameSpy1 query protocol. They do, however, also support a Quake3 protocol variant, which allows queries via the game port.You can query any known game server for the mentioned Medal of Honor games usingMedalOfHonorServerinstead ofServer.frompyq3serverlistimportMedalOfHonorServerfrompyq3serverlist.exceptionsimportPyQ3SLError,PyQ3SLTimeoutErrorserver=MedalOfHonorServer('217.247.241.12',12203)try:info=server.get_status()print(info)except(PyQ3SLError,PyQ3SLTimeoutError)ase:print(e)You can find a few more examples in theexamplesfolder.
Package: pyqa
pyqa makes it easier to write terminal based tools which ask the user a
bunch of questions and then generate some configuration file based on
the answers.UsageSee /demos for some working examples.pyqa provides single function, “ask”. It expects a set of questions
given in a specific format. The following description is in YAML but you
are free to use any other markup language as long as the output matches:---
id: project_name # id to use at the template
q: Could you please give the project name? # question shown to the user
---
id: license
q: Please pick a license for your project?
choices: # if choices field is used, the user will see these as numbered choice
    - BSD
    - GPL
    - MIT
---
id: use_fizzler
q: Are you sure you want to use fizzler?
type: boolean -- this will accept either true or false answer and emits True/FalseNote that keywords “Yes” and “No” seem to be converted to booleans by
YAML. If you need to use those within choices, remember to use explicit
form (ie. “Yes” instead of Yes).After the user has finished answering “ask” will return the results in a
format like this:{'project_name': 'myproject', 'license': 'BSD', 'use_fizzler': True}This format happens to be compatible withpystache(Python version ofmustache) and no doubt with many other
template engines. Just pass that data to your favorite engine, render
and output the file somewhere. Voilá!Licensepyqa is available under MIT license. See LICENSE for more details.
Package: pyqanat
QanatQanat: Create simple event-driven, distributed data pipelines in Python.Qanat is a lightweight tool for setting up event-driven, distributed data pipelines with
ease. It lets you link together components into a type-checked, decoupled pipeline, with
inter-process communication handled automatically through MQTT (in the future RabbitMQ?)
and serialization handled through JSON.Usage ExamplefromqanatimportQanatPipelinefromdataclassesimportdataclassfromtypingimportList@dataclassclassFrame:image:bytestimestamp:str@dataclassclassDetection:type:strconfidence:float@dataclassclassDetectionResults:objects:List[Detection]frame_timestamp:str# Initialize the pipeline with the MQTT broker connectionpipeline=QanatPipeline(broker="mqtt://broker.hivemq.com:1883")@pipeline.component(output="qanat-demo/frames/raw")defframe_producer()->Frame:"""Simulates producing a frame and its metadata."""image_data=b'some_image_data'# Replace with actual image datareturnFrame(image=image_data,timestamp="2021-07-01T00:00:00Z")@pipeline.component(input="qanat-demo/frames/raw",output="qanat-demo/detections/results")defdetector(frame:Frame)->DetectionResults:"""Processes a frame and detects objects, outputting detection results."""detected_objects=[Detection(type="smoke",confidence=0.98)]returnDetectionResults(objects=detected_objects,frame_timestamp=frame.timestamp)@pipeline.component(input="qanat-demo/detections/results")defresult_publisher(detection_results:DetectionResults):"""Publishes the detection results."""print(f"Publishing results:{detection_results}")# Start the event loop for testing and demonstrationif__name__=="__main__":# For demo or testing purposes, this runs all components in the pipelinepipeline.start_event_loop()# Blocks until the event loop terminates# In real-world distributed usage, you would start three separate processes,# one for each component, e.g.:# frame_producer.start() # Blocks until this specific component terminates
Package: pyqa-y8l
pyqaPython console appliction that searches the internet for asnwers to coding problemsFree software: Apache Software License 2.0Documentation:https://pyqa.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.=======
History0.1.0 (2022-11-07)First release on PyPI.
Package: pyqbench
https://arxiv.org/abs/2304.00045PyQBenchis a package for benchmarking gate-based quantum computers by estimating how well they can discriminate between two von Neumann measurements.PyQBenchis built around the Qiskit ecosystem and its configuration is driven by YAML files describing the experiment scenarios and backends to be used.InstallationPyQBench can be installed from PyPI usingpip:pipinstallpyqbenchQuickstartThe most basic way to use PyQBench is by using its CLI. For more advanced usages seePyQBench's docs.PyQBench's CLI can only run experiments using the parametrizedFourier family of measurements. Here's a basic example of how it works:Step 1: preparing configuration filesThe first YAML configuration file describes the experiment scenario to be executed:type: discrimination-fourier
qubits:
    - target: 1
      ancilla: 2
angles:
    start: 0
    stop: 2 * pi
    num_steps: 3
gateset: ibmq
method: direct_sum
num_shots: 100The second file describes the backend. The precise format of this file depends on the type of the backend, here's an example for Qiskit's IBMQ backend:name: ibmq_quito
asynchronous: true
provider:
    hub: ibm-q
    group: open
    project: mainIBMQ backends typically require an access token to IBM Quantum Experience. Since it would be unsafe
to store it in plain text, the token has to be configured separately inIBMQ_TOKENenvironmental variable.Step 2: running the experimentAfter preparing YAML files defining experiment and backend, running the benchmark can be launched by using the following command line invocation:qbenchdisc-fourierbenchmarkexperiment_file.ymlbackend_file.yml--outputasync_results.ymlThebenchmarkcommand will submit several batch jobs that will run asynchronously. It is non blocking, meaning that it won't wait for the jobs to finish.You can check the status of the submitted jobs by running:qbenchdisc-fourierstatusasync_results.ymlStep 3: resolving asynchronous jobsTo get the actual results from the submitted asynchronous jobs, you can useresolvecommand.qbenchdisc-fourierresolveasync-results.ymlresolved.ymlThis operation is blocking and will wait for all the results to be available.Step 4: tabulate resultsFinally, the obtained results can be summarized into a table.qbenchdisc-fouriertabulateresults.ymlresults.csvHere's what the result looks like:targetancillaphiideal_probdisc_probmit_disc_prob1200.50.570.57123.1410.880.94126.280.50.550.56What else can PyQBench do?The above quickstart guide does not cover:Running the experiments in synchronous (blocking mode)Using error mitigation viaM3Mitigation suiteUsing user-defined measurements instead of the default FourierRefer toPyQBench's documentationfor further reading.Authors and CitationPyQBench is the work of Konrad Jałowiecki, Paulina Lewandowska and Łukasz Pawela.
Support email for questionsdexter2206@gmail.com.
If you use PyQBench, please cite as per the includedBibTeX file.
Package: pyqchem
PyQchemPython wrapper for Q-Chem (https://www.q-chem.com)Online manual:https://pyqchem.readthedocs.io/Main featuresEasy to use clean python interface for Q-ChemNo special q-chem installation needed (reads Q-Chem environment)Output parsers for different type of calculationsCustom basis set and guess support using high level interfaceCalculation Cache system powered by SQLite databasepython 2.7.x/3.5+ compatibilityInstallation instructionsRequirementsnumpyscipymatplolibrequestslxmlwfnsympy (optional)paramiko (optional)pymatgen (optional)2a. From pypi repository (recommended)pipinstallpyqchem--user2b. Installation from sourcepythonsetup.pyinstall--userExamplesSimple pythonic API to define your inputfrompyqchemimportStructure,QchemInput,get_output_from_qchemfrompyqchem.parsers.basicimportbasic_parser_qchemmolecule=Structure(coordinates=[[0.0,0.0,0.0],[0.0,0.0,0.9]],symbols=['H','H'],charge=0,multiplicity=1)qc_input=QchemInput(molecule,jobtype='sp',exchange='hf',basis='6-31G')data=get_output_from_qchem(qc_input,processors=4,parser=basic_parser_qchem)# obtain a python dictionaryprint('Energy: ',data['scf_energy'])Link calculations in powerful workflowsfrompyqchemimportQchemInput,get_output_from_qchemfrompyqchem.parsers.parser_optimizationimportbasic_optimizationfrompyqchem.parsers.parser_frequenciesimportbasic_frequenciesfrompyqchem.toolsimportget_geometry_from_pubchemmolecule=get_geometry_from_pubchem('aspirin')qc_input=QchemInput(molecule,jobtype='opt',exchange='hf',basis='sto-3g',geom_opt_tol_gradient=300,geom_opt_tol_energy=100,geom_opt_tol_displacement=1200)parsed_data,electronic_structure=get_output_from_qchem(qc_input,processors=4,parser=basic_optimization,read_fchk=True)qc_input=QchemInput(parsed_data['optimized_molecule'],jobtype='freq',exchange='hf',basis='sto-3g',scf_guess=electronic_structure['coefficients'])parsed_data=get_output_from_qchem(qc_input,processors=4,parser=basic_frequencies)fori,modeinenumerate(parsed_data['modes']):print('mode:{}'.format(i+1))print('frequency (cm-1):{:10.2f}'.format(mode['frequency']))print('force constant (mdyne/A):{:10.5f}\n'.format(mode['force_constant']))Custom basis supportfrompyqchemimportQchemInput,Structurefrompyqchem.basisimportget_basis_from_BSEmolecule=Structure(coordinates=[[0.0,0.0,0.0000],[0.0,0.0,1.5811]],symbols=['Se','H'],charge=-1,multiplicity=1)basis_custom=get_basis_from_BSE(molecule,'cc-pVTZ')qc_input=QchemInput(molecule,jobtype='sp',exchange='hf',basis=basis_custom)Handle qchem errorsfrompyqchemimportget_output_from_qchemfrompyqchem.errorsimportOutputError,ParserErrorfrompyqchem.parsers.parser_rasciimportparser_rascitry:parsed_data=get_output_from_qchem(qc_input,processors=4,parser=parser_rasci,)exceptOutputErrorase:print('Calculation ended with errors. Error lines:')print(e.error_lines)# Try to parse your output anywaytry:parsed_data=parser_rasci(e.full_output)exceptParserError:print('Failed parsing')exit()print('Energy: ',parsed_data['scf_energy'])Additional example scripts are found at theexamples folderContact infoAbel Carrerasabelcarreras83@gmail.comDonostia International Physics Center (DIPC)Donostia-San Sebastian (Spain)