Saravanan666/pypi-org huggingface dataset:
Package: dycow
Dynamic Command WebServer (dycow)A tiny web-server app with a configuration file, NO NEED TO CODEIntroductionThis project is a small webserver that just have to get a port and a configuration file to perform preconfigurated commands.DisclaimerThis was a test-research project for a specific user-case on my raspberry-pi, therefore, i configurated only two methods (GET and POST)Why use dycowIt's fastSimple to configure, you just have to create a conf file to be ready to startIt's lightweight (The wheel is ~5Kb)RequirementsPython (3.x recommend)How to installYou just have to run :pipinstalldycowHow to use$dw-h[-]dycowv0.0.9.7.[-]Helpcenter![x]Run:dw<port><conf-file>[x]Documentationonlinehttps://github.com/sanix-darker/dycowYou have to create a file, for exampleconfand set actions, for example :- GET(or- POST) is the type of the request, just after it the endPoint (/save,/callme?name&content).cmdis the command line that will be executed on a request.res[NOT REQUIRED] is the response to the request.varis to specify POST variables. \Variables like#content#means, the content variable will be replace with the input value as parameter.Then run the server application:# dw <port> <configuration-file>dw3000confIt will start a small server on port3000and following rules you specified in the configuration file.You can accessAPI-DOC here.TestsTo run rest-api tests, i made a bash file in./testsdirectory.you just have to runbash ./tests/rest-api-test.sh$ bash ./tests/rest-api-test.sh 
[-] Running Endpoints tests on dycow.
[✓] GET / passed.
[✓] GET /list passed.
[✓] GET /callme?name=darker passed.
[✓] POST /save passed.
- - -
[-] Tests run :
[-] 4 tests succeed !
[-] 0 tests failed !
[-] Stopping tests Endpoints on dycow.Authord4rk3rLICENSEMIT
Package: dycw-pre-commit-hooks
pre-commit-hooksOverviewMypre-commithooks.InstallationInstallpre-commit.Add the following to your.pre-commit-config.yaml:repos:-repo:https://github.com/dycw/pre-commit-hooksrev:masterhooks:-id:run-bump2versionargs:[--setup-cfg]-id:run-dockfmt-id:run-hatch-version-id:run-ruff-format-id:run-uv-pip-compileargs:[--python-version=3.9]Update your.pre-commit-config.yaml:pre-commitautoupdate
Package: dyDNS
dyDNSdyDNS is a PyPI package for periodically activating dynamicDNS in freedns.afraid.org.Important information such as username, password and domain name should be encrypted
with free dynamic DNS providers.You need to have an account on freedns.afraid.org and choose dynamic domain names:https://freedns.afraid.org/You can have up to five domain names for free dynamic DNS.dyDNS does not need superuser privilege.How to prepare for dyDNSTo use this PyPI dyDNS, you need to prepare for .freedns directory and two files: crypted and key.The following is the procedure for creating two files, crypted and key, in the .freedns directory:
1.You must create .freedns directory in your home directory.
$ cd
$ mkdir .freedns
$ cd .freedns
2.In .freedns directory, you should create a plain authentication file in plain text: freedns.info.
freedns.info file has three lines (username, password, dynamic domain name).
$ cat freedns.info
USERNAME = "username_freedns.afraid.org"
PASSWORD = "password_freedns.afraid.org"
UPDATE_DOMAINS = ["your_domain_name", ] 
3. Create a plain file of encryption/decryption key for OpenSSL.
key file must contain a string or strings with any characters.
$ cat key
your_key 
4. Change to the key file permission that only you can read.
$ chmod 700 key
5. Encrypt freedns.info to crypted file.
$ openssl enc -e -aes256 -pbkdf2 -in freedns.info -out crypted -k `cat key` 
6. Delete freedns.info file for security.
$ rm freedns.info
7. ".freedns" directory has two files: crypted and key
$ ls
crypted keyHow to install dyDNS$ pip install dydnsHow to run dyDNS$ dydnsThere are two types of messages from freedns.afraid.org:b'ERROR: Address xxx.xxx.xxx.xxx has not changed.\n'b'Updated Address xxx.xxx.xxx.xxx has changed.\n'The first line indicates no update while the second line for updated.crontabYou should type the following command to set crontab schedule:$ crontab -eThe following shows an example in crontab scheduler to run dyDNS every 9 minutes.*/9 * * * * dydns >/dev/null
Package: dydx-v3-python
Python client for dYdX (v3 API).The library is currently tested against Python versions 2.7, 3.4, 3.5, 3.6, 3.9, and 3.11.InstallationThedydx-v3-pythonpackage is available onPyPI. Install withpip:pipinstalldydx-v3-pythonGetting StartedTheClientobject can be created with different levels of authentication depending on which features are needed. For more complete examples, see theexamplesdirectory, as well asthe integration tests.Public endpointsNo authentication information is required to access public endpoints.fromdydx3importClientfromweb3importWeb3## Access public API endpoints.#public_client=Client(host='http://localhost:8080',)public_client.public.get_markets()Private endpointsOne of the following is required:api_key_credentialseth_private_keyweb3web3_accountweb3_provider## Access private API endpoints, without providing a STARK private key.#private_client=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},)private_client.private.get_orders()private_client.private.create_order(# No STARK key, so signatures are required for orders and withdrawals.signature='...',# ...)## Access private API endpoints, with a STARK private key.#private_client_with_key=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},stark_private_key='...',)private_client.private.create_order(# Order will be signed using the provided STARK private key.# ...)Onboarding and API key management endpointsOne of the following is required:eth_private_keyweb3web3_accountweb3_provider## Onboard a new user or manage API keys, without providing private keys.#web3_client=Client(host='http://localhost:8080',web3_provider=Web3.HTTPProvider('http://localhost:8545'),)web3_client.onboarding.create_user(stark_public_key='...',ethereum_address='...',)web3_client.eth_private.create_api_key(ethereum_address='...',)## Onboard a new user or manage API keys, with private keys.#web3_client_with_keys=Client(host='http://localhost:8080',stark_private_key='...',eth_private_key='...',)web3_client_with_keys.onboarding.create_user()web3_client_with_keys.eth_private.create_api_key()Using the C++ Library for STARK SigningBy default, STARK curve operations such as signing and verification will use the Python native implementation. These operations occur whenever placing an order or requesting a withdrawal. To use the C++ implementation, initialize the client object withcrypto_c_exports_path:client=Client(crypto_c_exports_path='./libcrypto_c_exports.so',...)The path should point to a C++ shared library file, built from Starkware'scrypto-cpplibrary (CMake target) for the particular platform (e.g. Linux, etc.) that you are running your trading program on.Running testsIf you want to run tests when developing the library locally, clone the repo and run:pip install -r requirements.txt
docker-compose up # In a separate terminal
V3_API_HOST=<api-host> toxNOTE:api-hostshould behttps://api.stage.dydx.exchangeto test in staging.
Package: dydx-v3-python-gravitan
Python client for dYdX (v3 API).The library is currently tested against Python versions 2.7, 3.4, 3.5, 3.6, 3.9, and 3.11.InstallationThedydx-v3-pythonpackage is available onPyPI. Install withpip:pipinstalldydx-v3-pythonGetting StartedTheClientobject can be created with different levels of authentication depending on which features are needed. For more complete examples, see theexamplesdirectory, as well asthe integration tests.Public endpointsNo authentication information is required to access public endpoints.fromdydx3importClientfromweb3importWeb3## Access public API endpoints.#public_client=Client(host='http://localhost:8080',)public_client.public.get_markets()Private endpointsOne of the following is required:api_key_credentialseth_private_keyweb3web3_accountweb3_provider## Access private API endpoints, without providing a STARK private key.#private_client=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},)private_client.private.get_orders()private_client.private.create_order(# No STARK key, so signatures are required for orders and withdrawals.signature='...',# ...)## Access private API endpoints, with a STARK private key.#private_client_with_key=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},stark_private_key='...',)private_client.private.create_order(# Order will be signed using the provided STARK private key.# ...)Onboarding and API key management endpointsOne of the following is required:eth_private_keyweb3web3_accountweb3_provider## Onboard a new user or manage API keys, without providing private keys.#web3_client=Client(host='http://localhost:8080',web3_provider=Web3.HTTPProvider('http://localhost:8545'),)web3_client.onboarding.create_user(stark_public_key='...',ethereum_address='...',)web3_client.eth_private.create_api_key(ethereum_address='...',)## Onboard a new user or manage API keys, with private keys.#web3_client_with_keys=Client(host='http://localhost:8080',stark_private_key='...',eth_private_key='...',)web3_client_with_keys.onboarding.create_user()web3_client_with_keys.eth_private.create_api_key()Using the C++ Library for STARK SigningBy default, STARK curve operations such as signing and verification will use the Python native implementation. These operations occur whenever placing an order or requesting a withdrawal. To use the C++ implementation, initialize the client object withcrypto_c_exports_path:client=Client(crypto_c_exports_path='./libcrypto_c_exports.so',...)The path should point to a C++ shared library file, built from Starkware'scrypto-cpplibrary (CMake target) for the particular platform (e.g. Linux, etc.) that you are running your trading program on.Running testsIf you want to run tests when developing the library locally, clone the repo and run:pip install -r requirements.txt
docker-compose up # In a separate terminal
V3_API_HOST=<api-host> toxNOTE:api-hostshould behttps://api.stage.dydx.exchangeto test in staging.
Package: dydx-v3-python-pundix
Python client for dYdX (v3 API).The library is currently tested against Python versions 2.7, 3.4, 3.5, and 3.6InstallationThedydx-v3-pythonpackage is available onPyPI. Install withpip:pipinstalldydx-v3-pythonGetting StartedTheClientobject can be created with different levels of authentication depending on which features are needed. For more complete examples, see theexamplesdirectory, as well asthe integration tests.Public endpointsNo authentication information is required to access public endpoints.fromdydx3importClientfromweb3importWeb3## Access public API endpoints.#public_client=Client(host='http://localhost:8080',)public_client.public.get_markets()Private endpointsOne of the following is required:api_key_credentialseth_private_keyweb3web3_accountweb3_provider## Access private API endpoints, without providing a STARK private key.#private_client=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},)private_client.private.get_orders()private_client.private.create_order(# No STARK key, so signatures are required for orders and withdrawals.signature='...',# ...)## Access private API endpoints, with a STARK private key.#private_client_with_key=Client(host='http://localhost:8080',api_key_credentials={'key':'...',...},stark_private_key='...',)private_client.private.create_order(# Order will be signed using the provided STARK private key.# ...)Onboarding and API key management endpointsOne of the following is required:eth_private_keyweb3web3_accountweb3_provider## Onboard a new user or manage API keys, without providing private keys.#web3_client=Client(host='http://localhost:8080',web3_provider=Web3.HTTPProvider('http://localhost:8545'),)web3_client.onboarding.create_user(stark_public_key='...',ethereum_address='...',)web3_client.api_keys.create_api_key(ethereum_address='...',)## Onboard a new user or manage API keys, with private keys.#web3_client_with_keys=Client(host='http://localhost:8080',stark_private_key='...',eth_private_key='...',)web3_client_with_keys.onboarding.create_user()web3_client_with_keys.api_keys.create_api_key()
Package: dydx-v4-python
dYdX Chain Client for PythonPython client for dYdX (v4 API).The library is currently tested against Python versions 3.9, and 3.11.InstallationThev4-client-pypackage is available onPyPI. Install withpip:pipinstallv4-client-pyGetting StartedSample code is located in examples folderDevelopment Setup - VS CodeInstall Microsoft Python extensionsShift-Command-P: Create Python Environment
Select Venv
Select Python 3.9 as interpreter
Select requirements.txt as the dependencies to installInstall requirementspip install -r requirements.txtVS Code will automatically switch to .venv environment when running example code. Or you can manually switchsource ~/<project_dir>/.venv/bin/activateSet PYTHONPATHexport PYTHONPATH=~/<project_dir>/.venv/lib/<Python version>/site-packagesTroubleshootimgCython and Brownie must be installed before cytoolzIf there is any issue with cytoolz, uninstall cytoolz, Brownie and Cython, reinstall Cython, Brownie and cytoolz sequentially.VS Code may need to be restarted to have Cython functioning correctlyRunning examplesSelect the file to be debugged
Select the debug button on the left
Select "Python: Current File"Running testsIntegration tests uses testnet environment for testing. We use pytest.To install pytestpip install pytestFor read-only integration tests, run:pytest -vFor integration tests with transactions, a subaccount must exist for the specified address.
This subaccount may be reset when testnet environment is reset. To create the subaccount, runexamples/faucet_endpoint.pyWait for a few seconds for the faucet transaction to commit, then runpytest -v -c pytest_integration.ini
Package: dye
Lightweight module with ANSI control codes to dye python scripts.This package contains just one module,
it consist only on some declaration,
something like:RED = \x1b[31mThe module has the trivial task of extend the namespace of your application to include
terms you can use to color and format terminal output using ANSI control codes.Usagefromdyeimport*printfg.BLUE+"colorz"+fg.RESETprintfg.LBLUE+"colorz"+fg.RESETprintstyle.BOLD+fg.GREEN+bg.YELLOW+"colorz"+style.RESET_ALLThe strings contained in the colorz variables are ANSI control codes.In this set there are:the basic 8 colorsBLACKREDGREENYELLOWBLUEMAGENTACYANWHITEtheir high intensity versionsHBLACKHREDHGREENHYELLOWHBLUEHMAGENTAHCYANHWHITEThe following styles are supported:BOLDDIMUNDERLBLINKREVERSEHIDDENreset sequencesRESET_ALLRESET_BOLDRESET_DIMRESET_UNDERLRESET_BLINKRESET_REVERSERESET_HIDDENYou can set text color usingfgcodes:fg.REDYou can set background color usingbgcodes:bg.REDYou can set styles usingstylecodes:style.BOLD
Package: dye-score
Utilities to build the dye-score metric fromOpenWPMjavascript call data.GitHub repo:https://github.com/mozilla/dye-score/Documentation:https://dyescore.readthedocs.io/Free software: Mozilla Public LicenseQuickstartInstall dye score:conda installdye-score-cconda-forgeorpip installdye-scoreReview usage notebook:https://github.com/mozilla/dye-score/blob/master/docs/usage.ipynb
Package: dyff
dyff packageMeta-package to install the local SDK for the Dyff AI auditing platform.Do not use this software unless you are an active collaborator on the
associated research project.This project is an output of an ongoing, active research project. It is
published without warranty, is subject to change at any time, and has not been
certified, tested, assessed, or otherwise assured of safety by any person or
organization. Use at your own risk.Installationdyffrequires Python 3.9+ and can be installed viapip:python3-mpipinstalldyffLicenseCopyright 2024 UL Research Institutes.Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
Package: dyff-audit
dyff-auditAudit tools for the Dyff AI audit platform.Do not use this software unless you are an active collaborator on the
associated research project.This project is an output of an ongoing, active research project. It is
published without warranty, is subject to change at any time, and has not been
certified, tested, assessed, or otherwise assured of safety by any person or
organization. Use at your own risk.Installationdyff-auditrequires Python 3.9+ and can be installed viapip:python3-mpipinstalldyff-auditLicenseCopyright 2024 UL Research Institutes.Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
Package: dyff-client
dyff-clientPython client for the Dyff AI auditing platform.Do not use this software unless you are an active collaborator on the
associated research project.This project is an output of an ongoing, active research project. It is
published without warranty, is subject to change at any time, and has not been
certified, tested, assessed, or otherwise assured of safety by any person or
organization. Use at your own risk.Installationdyff-clientrequires Python 3.9+ and can be installed viapip:python3-mpipinstalldyff-clientConfigurationfromdyff.clientimportClientclient=Client(api_key="XXXXXX")The API key must be provisioned by a Dyff administrator.Usagedataset=client.datasets.create_arrow_dataset("/my/data",account="XXX",name="mydata")For more examples, see theclient
examples.For the full API, see theclient API
reference.LicenseCopyright 2024 UL Research Institutes.Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
Package: dyff-schema
dyff-schemaData models for the Dyff AI auditing platform.Do not use this software unless you are an active collaborator on the
associated research project.This project is an output of an ongoing, active research project. It is
published without warranty, is subject to change at any time, and has not been
certified, tested, assessed, or otherwise assured of safety by any person or
organization. Use at your own risk.InstallationPython 3.9+ is required. Installdyff-schemaviapip:python3-mpipinstalldyff-schemaLicenseCopyright 2024 UL Research Institutes.Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
Package: dyff-storage
dyff-storagePython storage API for the Dyff AI auditing platform.Do not use this software unless you are an active collaborator on the
associated research project.This project is an output of an ongoing, active research project. It is
published without warranty, is subject to change at any time, and has not been
certified, tested, assessed, or otherwise assured of safety by any person or
organization. Use at your own risk.InstallationPython 3.9+ is required. Installdyff-storageviapip:python3-mpipinstalldyff-storageLicenseCopyright 2024 UL Research Institutes.Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
Package: dy.fi
dy.fi package provides script to keep dynamic IP address fresh for DNS servicehttps://www.dy.fiprovides.Two commandsTwo commands will be added to buildout../bin/dyfi./bin/dyfi-last-updatedExample of dyfi command:./bin/dyfi -u USERACCOUNT -p PASSWORD hostname.com hostname.orgUSERACCOUNTandPASSWORDare same as what you use forhttps://www.dy.fi/site log in.You can pass multiple host names separated with a space,
here they arehostname.comandhostname.org.You can check the last updated time of IP address:./bin/dyfi-last-updatedChangelog0.2 (2014-09-18)Use ipgetter to get your server global IP rather than from one server. [taito]0.1 (2012-09-15)Initial release. [taito]
Package: dygo
dygo- Dynamic GooeyTable of ContentsAboutInstallationUsageLimitationsLicenseAboutDynamic Gooey (dygo) ...Parses config files (json or yaml)Extracts values which have to be defined by the userRenders a GUI viaGooeyLet the user insert the values for the dynamic parametersInserts the received entries into the configReturns the configInstallationpip install dygoUsagefromdygoimportrendermy_cfg=render("path/to/jsonORyaml")The dynamic key needs to be inserted as a dict into the config file. The following two examples do the exact same.yamlmy_dynamic_param:dygo:'dygo'dest:'param1'json"my_dynamic_param":{"dygo":"dygo","dest":"param1"},The rendered GUI looks like this:The dict will be replaced with the value received from the user. Assuming the user enteredabcforparam1, the dict afterwards looks like{"my_dynamic_param": "abc"}.Currently the keydygoserves as a flag for Dynamic Gooey to detect dynamic parameters (the value is ignored). All other key-value pairs in thedygodict are treated as args forGooeyParser.add_argument(seeGooeyfor further documentation). Most important is thedestarg whose value will be displayed as a name of the parameter for the user.LimitationsCurrentlydygoonly descents into dicts, other iterables like lists are yet not supported. This means if adygoparameter has a list in its map path, it is ignored.Licensedygois distributed under the terms of theMITlicense.
Package: dylunatj
DylunaA very simple wsgi based python web frameworkExample:app=Dyluna()@app.routedefhello(environ):ifenviron.get("REQUEST_METHOD")=="POST":name=environ["POST"].get("name")returnrender_template("index.html",{"name":name})returnrender_template("hello.html")app.urls.append(["/hello",hello])@app.routedefhello(environ,name):context={"name":name}returnrender_template("hello2.html",context)app.urls.append(["/hello/<name>",hello])app.run()hello.html<html><head><title>Hello</title></head><body>{% if name %}<h1>Hello, {{name}}</h1>{% else %}<formmethod="POST">name:<inputname="name"><br><buttontype="submit">Submit</button></form>{% endif %}</body></html>hello2.html<html><head><title>Hello</title></head><body><h1>Hello, {{name}}</h1></body></html>Run the code and visithttp://127.0.0.1:8080/