Saravanan666/pypi-org huggingface dataset:
Package: deqart
Deqart Python SDKUsageInterface with the Deqart serverInitializationimportdeqart# If you have run the line below once, subsequent initialization no longer# requires explicit API token, i.e. deqart.init() without an argument is# sufficient. This is because the token is automatically saved to# ~/.config/deqart/config.json.dq=deqart.init(YOUR_API_TOKEN)Estimating how long it takes to simulate a circuitimportdeqartdq=deqart.init()qc=qiskit.QuantumCircuit(2)qc.h(0)qc.x(1)result=dq.estimate_job_runtime(qc)print(result)# Output# {#   'device': 'qsim_simulator',#   'estimate_ms': 100,#   'num_qubits': 2,#   'qc': 'UUlTS0lUBQAVAgAAAAAAAAABcQAKaQAIAAAAAgAAAAAAAAAAAAAABAAAAAEAAAAAAAAAAmNpcmN1aXQtNzgAAAAAAAAAAG51bGxxAQAAAAIAAQFxAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASEdhdGVxAAAAAAAFAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhHYXRlcQAAAAEAAA==',#   'warning_message': 'This is just an estimate; the actual runtime may be less or more.'# }Submitting a simulation job and retrieving itimport deqart

dq = deqart.init()

dq.submit_job(qc)
result = dq.search_jobs()
print(result)
# Output
# {
#   'column_names': ['job_id', 'run_status', 'success', 'worker_runtime_ms', 'created_on'],
#   'data': [['4j2u9lb031YgfPpB', 'QUEUED', None, None, '2022-10-20T07:10:20.316Z']], 'total_count': 1
# }Circuit serializationYou can decode a quantum circuit of Braket/Cirq/Qiskit to/from JSON string.importdeqart.circuit_serializationascircuit_serialization# Example with Cirq circuitencoded_cirq=circuit_serialization.encode_circuit(qc_cirq)decoded_cirq=circuit_serialization.decode_circuit(encoded_cirq)
Package: deqr
deqrA python library for decoding QR codes. Implemented as a cython wrapper around
two different QR code decoding backends (quirc and qrdec).Installpip install deqrDocumentationChangelog[0.2.2] - 2023-06-17Addedpackaging: pre-built Python 3.11 wheels (7980904b)FixedAdaptpyproject.tomlto more recent poetry-core so that the source package should work again (58a8c77b)ChangedUpdate quirc to v1.2 (9918646d)Build dependencies: update cython to 3.0.0b3 and poetry-core to >=1.6.0,<1.7.0 (poetry-core is pinned to a narrow version range to hopefully avoid future breakage) (a625da32,58a8c77b)Don't package dependency source files into bdists (2bc4a61f)Linux binary packages are now built to the manylinux_2_28 standard due to the manylinux_2_24 container being deprecated (9b6e42e6)RemovedRemove use of poetry-dynamic-versioning from the build process. It's convenient, but too flaky. Maintaining the version information in two places is not an unbearable maintenance burden, and CI can check for this (5ea9a83e)[0.2.1] - 2022-01-22Addedpackaging: distribute Python 3.10 wheels (034f14b3)FixedFixed the sdist so that source-based installs work (note: this was later broken by a Poetry update) (b84b3716)[0.2.0] - 2021-06-28AddedDocumentation. Things are now more documented than ever before.ChangedQRdecDecoder now produces bounding box corners in clockwise order.[BREAKING] Both decoders try to convert decoded data to reasonable types by default.Fixedbinarize.binarze is now callable from Python code.Decoding codes from PIL and bytes objects now actually works.The sdist now contains the dependency code so it can be built.Quirc decoding failures are now actually handled (by skipping them).[0.1.2] - 2021-06-16Addedsupport more image sources, including PIL and bytes objects.Changedpackage: drop numpy dependency by trying to be cleverdecoders: add image binarization to improve decode rate.[0.1.1] - 2021-06-06Addeddecoder.qrdec: expose qr code mask typedecoder.qrdec: compute geometric center of qr codedecoder.quirc: compute geometric center of qr code[0.1.0] - 2021-06-04AddedBasic QR code decoding functionality
Package: deq-tools
Install with pip:pip install deq-toolsdeq_tools is a limited functionality Python library for accessing Oregon DEQ Air Quality data with a Python script.Usage:importdeq_toolsprint(deq_tools.get_station_names())# Dump a list of names of stations where data may be availableprint(deq_tools.get_station_data())# Dump all station info, including data available for each stationstation_id=2# Get this value from get_station_names()from_ts="2018/05/03T00:00"# ISO datetime format: YYYY/MM/DDTHH:MMto_ts="2018/05/10T23:59"print(deq_tools.get_data(station_id,from_ts,to_ts))# Get the dataIn addition to the required positional parameters shown above,get_deq_data()also takes these optional named parameters:resolution:Default = 60. 60 for hourly data, 1440 for daily values.  Higher resolutions don't work, sorry, but lower-resolutions, such as 120, 180, 480, 720 will.agg_method:Default = "Average". These willprobablyall work: Average, MinAverage, MaxAverage, RunningAverage, MinRunningAverage, MaxRunningAverage, RunningForword, MinRunningForword, MaxRunningForword.
Package: deque-one
deque-oneWork-in-progressdrop-in replacement for Python'scollection.dequewith O(1) item access and without sacrificing performance on other metrics.Getting StartedThe easiest way to get deque-one is to:$ pip install deque-oneAlternatively, you can build it from source:$ git clone https://github.com/styfenschaer/deque-one.git
$ cd deque-one
$ python setup.py installThe latter requires a C compiler compatible with your Python installation.Once installed, it behaves like the built-indequebut with O(1) instead of O(n) random item access:importcollectionsimportdeque_onecol_deque=collections.deque(range(1_000_000))one_deque=deque_one.deque(range(1_000_000))%timeitcol_deque[0]%timeitone_deque[0]# 33.6 ns ± 0.422 ns per loop (mean ± std. dev. of 7 runs, 10,000,000 loops each)# 33.3 ns ± 1.08 ns per loop (mean ± std. dev. of 7 runs, 10,000,000 loops each)%timeitcol_deque[500_000]%timeitone_deque[500_000]# 89.3 µs ± 1.93 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)# 38.2 ns ± 1.45 ns per loop (mean ± std. dev. of 7 runs, 10,000,000 loops each)Implemented Methods__init__(only first argument)appendappendleftpoppopleftextendextendleftclear__getitem____setitem____len____repr____str__Implemented Propertiesmaxlen(alwaysNone)
Package: dequindre
Dequindre Is Easy to SetupAnywhere Python goes, Dequindre can follow. Dequindre is written in pure
python and is OS independent. All you need is topip install dequindre.Dequindre Is Easy to RunDequindre makes it easy to run virtual environments. Dequindre supports
virtualenv, pipenv, and conda environments.Dequindre Is Easy to LearnYou can run your first Dequindre workflow in minutes. Dequindre is less
than 1000 lines of Python andfully documented. In contrast,Airflow
v1.10.2 has 444 pages of docs.Your First Dequindre ScheduleInstall dequindre from PyPIpip install dequindre. Then in the REPL,>>>fromdequindreimportTask,DAG,Dequindre>>>## define tasks and environments>>>boil_water=Task('./boil_water.py')>>>steep_tea=Task('./steep_tea.py')>>>drink_tea=Task('./drink_tea.py')>>>## define runtime dependencies>>>make_tea=DAG(dependencies={...steep_tea:boil_water,...drink_tea:steep_tea...})>>>## create schedules>>>dq=Dequindre(make_tea)>>>dq.get_schedules()defaultdict(<class'set'>, {1:{Task(./boil_water.py)},2:{Task(./steep_tea.py)},3:{Task(./drink_tea.py)}})>>>## run tasks if the files exist.>>>dq.run_tasks()RunningTask(./boil_water.py)Iamboilingwater...RunningTask(./steep_tea.py)Iamsteepingtea...RunningTask(./drink_tea.py)Iamdrinkingtea...You can run the tasks by copy-pasting the following python code into the
commented files.# pour_water.pyprint("I'm pouring water...")# boil_water.pyprint("I'm boiling water...")# steep_tea.pyprint("I'm steeping tea...")FeaturesAutomated workflow schedulingPure Python: Relies entirely on Python built-ins to reduce bugs and
complexityCross-Python compatible: Supports Python 2 and Python 3Cross-platform: Windows and Unix style OS environmentsRun your Python tasks in any pre-defined environmentsdequindre facilitatesvirtualenv,conda, andpipenvenvironmentsSupports dynamic workflow configurationalso seen in AirflowDocumentedexamples and configurationExtrasLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.ContributeIf you’re interested in contributing to Dequindre,raise an issue, make a
pull request todev, and reach out to the author, vogt4nick.Please readour contribution guidelinesfor details on our code of conduct,
and the process for submitting pull requests to us.AcknowledgementsThank you, Dynatrace, for facilitating the early development of Dequindre
during Innovation Day, February 2019.
Package: dequote-annotations
dequote-annotationsA pre-commit hook to automatically remove string literals as type hints from argument, return, and class variable type annotations. Will only make the replacement if your file containsfrom __future__ import annotations.Installationpip install dequote-annotationsAs a pre-commit hookSeepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/MarcoGorelli/dequote-annotationsrev:v0.2.3hooks:-id:dequote-annotationsCommand-line example$catmyfile.pymyvar: 'str'$dequote-annotationsmyfile.py$catmyfile.pymyvar: strSee alsoCheck outpyupgrade, which I learned a lot from when writing this.
Package: derby
derbysimple dice rolling libraryfromderbyimportrollstats=['str','int','wis','dex','con','cha']character={stat:roll('3d6').valueforstatinstats}# roll('4d6h3') if your GM is nice enoughexamplesroll('1d20+1')roll('2d20h1+1')# rolling with advantageroll('4d6h3+1')# same as roll('4d6+1h3')# also supports doing comparisonsroll('3d6=18')roll('1d20>14')
Package: der-die-das
DER DIE DAS CHECKER (WIP)You can use this package to check the articles for German nouns (Der, Die, Das).
I am very happy if the package makes your life as a non-native German speaker easier.Installationpython-mpipinstallder-die-dasGetting StartedDirectly after the installation you can use this package. You will need Python Release 3.7.0 or older.Open the python console and use the packagepython
>>>fromder_die_dasimportcheck
>>>check("Burger")searched:Burger
answer:DERBurger

>>>check("Kerzenleuchter")searched:Kerzenleuchter
answer:DERKerzenleuchter
Package: derevo
Derevo libraryThis is a standalone module which can be installed and used without plants backend and frontend.It contains methods to generate stable plants compotions.InstallationPrepare virtual environment withvenvif you needInstall withpython -m pip install .Wheel can be built the same way, by runningpython -m build .(you would need to installbuildpackage before that).
To install package from .wheel, usepython -m wheel install dist/derevo-0.1.0-py3-none-any.whl.Following packages are need to be installed on your system to successfully build the module:build virtualenvAll commands are presented in Makefile for reference.Running an exampleSet environment variables fromenvfile, you would need a database with plants, limitations and otherslaunchmake run-exampleor launch manually withpython -m examplePacking in docker for a backend serviceFor the backend docker image to build,derevomust be installed in it. As they are in different directories,
andderevois not on PyPi yet, it was decided to be a best way to store built wheel rosource in a dummy
container calledlocal/derevo. It should be built usingmake docker-buildbefore building backend image.DevelopmentFor development purposes it is better to useeditable installwithpython -m pip install -e .- so when you change
the content of the module, there is no need to perform reinstall.In some cases VS Code Pylance and other analyzer tools report missing module, then you need to either configure them
properly (in case of Pylance, add"python.analysis.extraPaths": ["<project_dir>/method"]to .vscode/settings.json) or make a strict installation:python -m pip install -e . --config-settings editable_mode=strict.
The second option is better, in case of adding new files a reinstallation will be needed
Package: deribitsimplebot
Реализация простого бота для криптобиржи Deribit.\Реализация для websockets JSON-RPC v.2
(Документация)ВозможностиВозможность работы с несколькими инструментами одновременноВозобновление работы после остановкиВозможность использвоать разные системы хранения ордеровАлгоримт работыРобот выставляет ордер #1 на покупку по ценеbuy price = current
price - gap / 2.(a)Если цена уменьшается доbuy price, то ордер #1, скорее
всего, будет исполнен. В этом случае перейти к пункту 3.\(b)Если цена увеличивается до такого значения, что становится
истинным условиеcurrent price > buy price + gap + gap ignore,
то робот должен отменить ордер #1. Далее, вернуться к пункту 1.Робот выставляет ордер #2 на продажу по ценеsell price = current
price + gap.(a)Если цена увеличивается до sell price, то ордер #2, скорее
всего, будет исполнен. В этом случае вернуться к пункту 1.\(b)Если цена уменьшается до такого значения, что становится
истинным условиеcurrent price < sell price - gap - gap ignore,
то робот должен отменить ордер #2. После этого следует вернуться к
пункту 3.Рабочий примерПример
приложение(описание к нему)
Package: deric
deric — DEclarative RIch CliMinimal library to build CLI apps with integrated TOML config file.GoalsMinimal and usefulSubcommand supportType checked argumentsIntegrated logging handlingReuse existing proved libraries: pydantic and richUse either CLI args, environment variables or TOML configuration (or a mix of them)Usagesimple_app.py:fromdericimportCommand,arg# define a simple appclassSimpleApp(Command):name="your_simple_app"description="Print a value and exit"Config={"string":arg(str,...,"value to print")"value":arg(int,4,"value to print")}defrun(self,config):print(config.string,config.value*2)SimpleApp().start()Run it with:pythonsimple_app.py--string"some string"--value21
Package: derico.article
derico.articleAn article content type for Plone. Behaves like a Document, is folderish and can cantain Images and Files.FeaturesCan be bullet pointsExamplesThis add-on can be seen in action at the following sites:
- Is there a page on the internet where everybody can see the features?DocumentationFull documentation for end users can be found in the “docs” folder, and is also available online athttp://docs.plone.org/foo/barTranslationsThis product has been translated intoKlingon (thanks, K’Plai)InstallationInstall derico.article by adding it to your buildout:[buildout]

...

eggs =
    derico.articleand then runningbin/buildoutAuthorsProvided by awesome people ;)ContributorsPut your name here, you deserve it!?ContributeIssue Tracker:https://github.com/collective/derico.article/issuesSource Code:https://github.com/collective/derico.articleDocumentation:https://docs.plone.org/foo/barSupportIf you are having issues, please let us know.
We have a mailing list located at:project@example.comLicenseThe project is licensed under the GPLv2.ContributorsMaik Derstappen,md@derico.deChangelog1.0a2 (2023-06-22)Fix view name1.0a1 (2023-06-22)Initial release.
[MrTango]
Package: de-risikogebiete
risikogebieteAktuelle Corona Risikogebietsinformationen als APIThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 0.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[risikogebiete]poetry installpoetryadddeutschland-ErisikogebieteSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportrisikogebieteGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportrisikogebietefrompprintimportpprintfromdeutschland.risikogebiete.apiimportdefault_apifromdeutschland.risikogebiete.model.risk_countriesimportRiskCountries# Defining the host is optional and defaults to https://api.einreiseanmeldung.de/reisendenportal# See configuration.py for a list of all supported configuration parameters.configuration=risikogebiete.Configuration(host="https://api.einreiseanmeldung.de/reisendenportal")# Enter a context with an instance of the API clientwithrisikogebiete.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=default_api.DefaultApi(api_client)try:# Liste der Länderapi_response=api_instance.risikogebiete_get()pprint(api_response)exceptrisikogebiete.ApiExceptionase:print("Exception when calling DefaultApi->risikogebiete_get:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api.einreiseanmeldung.de/reisendenportalClassMethodHTTP requestDescriptionDefaultApirisikogebiete_getGET/risikogebieteListe der LänderDocumentation For ModelsRiskCountriesDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in risikogebiete.apis and risikogebiete.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:Solution 1:
Use specific imports for apis and models like:from deutschland.risikogebiete.api.default_api import DefaultApifrom deutschland.risikogebiete.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
from deutschland import risikogebiete
from deutschland.risikogebiete.apis import *
from deutschland.risikogebiete.models import *
Package: derivatecustomer
AgriConnectinternal tool to make a derivation of PlantingHouse for customer.UsageFork the PlantingHouse repo.Go to “Settings > General > Change path”, change to customer codename.Run the command, passing forked repo URL. Example:python3-mderivatecustomer-ggit@gitlab.com:quan/phuc-daothanh.git-n"Phúc Đạo Thạnh"-sfaTo learn about this tool’s options, run with--help:python3-mderivatecustomer--help
Package: derivationtree
DerivationTree: An Efficient, Trie-Based Derivation Tree ImplementationTODOBuild, Run, InstallDerivationTree requiresPython 3.10.InstallUsually, a simplepip install derivationtreeshould suffice.
We recommend installing DerivationTree inside a virtual environment (virtualenv):python3.10-mvenvvenvsourcevenv/bin/activate
pipinstall--upgradepip
pipinstallderivationtreeBuildDerivationTree is built locally as follows:gitclonehttps://github.com/rindPHI/derivationtree.gitcdderivationtree/

python3.10-mvenvvenvsourcevenv/bin/activate

pipinstall--upgradepip
pipinstall--upgradebuild
python3-mbuildThen, you will find the built wheel (*.whl) in thedist/directory.Testing & DevelopmentFor development, we recommend using DerivationTree inside a virtual environment (
virtualenv). By thing the following steps in a standard shell (bash), one can run the
ISLa tests:gitclonehttps://github.com/rindPHI/derivationtree.gitcdderivationtree/

python3.10-mvenvvenvsourcevenv/bin/activate

pipinstall--upgradepip
pipinstall-rrequirements_test.txt# Run testspipinstall-e.[dev,test]python3-mpytesttestsChangelogSeeCHANGELOG.md.Copyright, Authors and LicenseCopyright © 2022CISPA Helmholtz Center for Information Security.The DerivationTree code and documentation was, unless otherwise indicated, authored byDominic Steinhöfel.DerivationTree is released under the GNU General Public License v3.0 (
seeCOPYING).
Package: derivative-lib
Derivative LibraryThis code is a library for calculating derived functions.InstallationTo install the library, use pip:pip install derivative_libUsageTo use the library, import theDerivativeclass from the library:from derivative_lib import DerivativeThen you can create an instance of theDerivativeclass by passing the function you want to differentiate as an argument:python def func(x):
return x**2
derivative = Derivative(func)Methodstailor_appCalculates the derivative of the function at the pointx0using the Taylor method.Usage example:result = derivative.tailor_app(2)polinom_appCalculates the derivative of the function at the pointx0using the polynomial method.Usage example:result = derivative.polinom_app(2)second_derivativeCalculates the second derivative of the function at the pointx0.Usage example:result = derivative.second_derivative(2)threepoint_pattern(x0, second_deriv=False)Calculates the first or second derivative of a function at the pointx0using the three-point method.Usage example:result = derivative.threepoint_pattern(2, second_deriv=True)Exception handlingIf the function was set using a grid, the methodstailor_app,polinom_appandthreepoint_patternwill throw an exception. If an error occurred while using the function, the methods will also throw an exception.LicenseThis library is available under the MIT license.
Package: derivative-mode
Derivative LibraryThis code is a library for calculating derived functions.InstallationTo install the library, use pip:pip install derivative_modeUsageTo use the library, import theDerivativeclass from the library:from derivative_mode import DerivativeThen you can create an instance of theDerivativeclass by passing the function you want to differentiate as an argument:python def func(x):
return x**2
derivative = Derivative(func)Methodstailor_appCalculates the derivative of the function at the pointx0using the Taylor method.Usage example:result = derivative.tailor_app(2)polinom_appCalculates the derivative of the function at the pointx0using the polynomial method.Usage example:result = derivative.polinom_app(2)second_derivativeCalculates the second derivative of the function at the pointx0.Usage example:result = derivative.second_derivative(2)threepoint_pattern(x0, second_deriv=False)Calculates the first or second derivative of a function at the pointx0using the three-point method.Usage example:result = derivative.threepoint_pattern(2, second_deriv=True)Exception handlingIf the function was set using a grid, the methodstailor_app,polinom_appandthreepoint_patternwill throw an exception. If an error occurred while using the function, the methods will also throw an exception.LicenseThis library is available under the MIT license.
Package: derive-event-pm4py
Derive Events using rulesGiven an log path and, set of rules, they are channelised to event derivation algorithm. Event derivation algorithm is responsible for building the transformed log. Evaluation metrics and log statistics for both, original log and transformed log are caomputed and returned.Call apply_trans(logpath, activities, attributes, predicates, thresholds, location, new_activities, window, order_flag, visual_flag)
It takes as input1. logpath (str): Path of event log
    2. activities (List of str): List of activities in rule
    3. attributes (List of str): List of attributes in rule
    4. predicates (List of str): List of predicates in rule
    5. thresholds (List of float or str): List of thresholds in rule
    6. location (List of str): List of locations for derived events in rule
    7. new_activities (List of str): List of derived event's identifiers
    8. window (List of int): List of time windows in rule
    9. order_flag (bool): Flag to denote if order of events in log is considered
    10.visual_flag (bool): Flag to denote if activities in rule should be retainedThe resulting transformed event log can be found in the same location as that of original log with same name suffixed with "modified" keyword.Installationpip install derive_event_pm4pyHow to use it?Install derive_event_pm4py package. Following, from derive_event import apply_trans.Example: 
    path = "<path>\<file>.xes"
    act = [["E", "F"], ["E", "G"], ["E", "H"]]
    attr = [["additional", "additional"], ["additional", "additional"], ["additional", "additional"]]
    pred = [["LT", "LT"], ["LT", "GT"], ["LT", "GT"]]
    thres = [[100, 50], [100, 40], [100, 50]]
    loc = ["end", "end", "end"]
    new_act = ["EF", "EG", "EH"]
    window = [432000, 432000, 432000]
    order = [False, False, False]
    visual = False
    apply_trans(path, act, attr, pred, thres, loc, new_act, window, order, visual)LicenseCopyright (c) 2020 Ajay PandiThis repository is licensed under the MIT license. See LICENSE for details.