Saravanan666/pypi-org huggingface dataset:
Package: apc-switched-rack-pdu-control-panel
APC Switched Rack PDU Control PanelA Python/Flask based reimplementation ofdisisto's Control Panelto control multiple APC Switched Rack PDUs via SNMPv3. A single panel to switch (on, off, restart) the attached devices between different states.Checkhttps://github.com/disisto/apc-switched-rack-pdu-control-panel/wikifor details on how to configure the PDURequirementsAPC Switched Rack PDU(s) with enabled SNMPv3Tested with APC Switched Rack PDUAP7920andAP7921on EOL firmwarev3.9.2Tested with APC Switched Rack PDUAP7920Bon latest firmwarev6.5.6Quick InstallRun locallypip install apc_switched_rack_pdu_control_panel
curl -o config.py https://raw.githubusercontent.com/spike77453/apc-switched-rack-pdu-control-panel/python/instance/config.py.example
APC_PDU_SETTINGS=/absolute/path/to/config.py flask --app apc_switched_rack_pdu_control_panel runRun as WSGI apppip install apc_switched_rack_pdu_control_panel
curl -o config.py https://raw.githubusercontent.com/spike77453/apc-switched-rack-pdu-control-panel/python/instance/config.py.example
APC_PDU_SETTINGS=/absolute/path/to/config.py gunicorn 'apc_switched_rack_pdu_control_panel:app'Supplying configuration data via flask instance folderAlternatively, loading configuration settings from aflask instance folderis supported as well:mkdir -p $PREFIX/var/apc_switched_rack_pdu_control_panel-instance
cd $PREFIX/var/apc_switched_rack_pdu_control_panel-instance
curl -o config.py https://raw.githubusercontent.com/spike77453/apc-switched-rack-pdu-control-panel/python/instance/config.py.exampleIn an activatedvirtualenv$PREFIXis equivalent to$VIRTUAL_ENV.Configuration settings supplied via an instance folder always take precedence over configuration data supplied via theAPC_PDU_SETTINGSenvironment variable.This project is not affiliated withAPC by Schneider Electric.All mentioned trademarks are the property of their respective owners.
Package: apd
Analysis Production DataProgrammatic interface to the LHCb experiment Analysis Productions database,
which allows retrieving information about the samples produced.
It queries a REST endpoint provided by the web application, and caches the data locally.UsageTheapdPython package is available in thelb-condadefaultenvironment.From PythonThe Python module allows interacting from analysis scripts, doing e.g.In [8]: import apd

In [9]: datasets = apd.get_analysis_data("SL", "RDs")

In [10]: datasets(datatype="2012", polarity="magdown")
Out[10]:
['root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000002_1.bsntuple_mc.root',
 'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000005_1.bsntuple_mc.root',
 'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000003_1.bsntuple_mc.root',
 'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000001_1.bsntuple_mc.root',
 'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000004_1.bsntuple_mc.root']

In [11]:Command line$ apd-list-pfns SL RDs --datatype=2011 --datatype=2016 --polarity=magdown
root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000002_1.bsntuple_mc.root'
root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000005_1.bsntuple_mc.root'
root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000003_1.bsntuple_mc.root'
root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000001_1.bsntuple_mc.root'
root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000004_1.bsntuple_mc.root'Theapd-cachecommand allows caching the Analysis metadata to a
specific location.DesignAnalysis Production information endpointThis module allows downloading and using Analysis Productions information
from the endpointhttps://lbap.app.cern.ch/Details about the endpoint can be found athttps://lbap.app.cern.ch/docs#/stable.Further informationSee:https://lhcb-ap.docs.cern.ch/user_guide/accessing_output.html
Package: apdaemon
apdaemon: Python Process Daemon Tool.====================================Install-------via pip ::pip3 install apdaemonexample::from apdaemon.daemon import daemon@daemon(service="maind")def main():import timewhile True:print("hello world")time.sleep(3)if __name__ == '__main__':main()run command: python3 daemon.py [start[default]|status|stop|restart]
Package: apdaily
APDailyThis package allows you to watch AP Classroom Videos automatically.Authors@SarangaRInstallationInstall the apdaily package with pippipinstallapdailyThen copy thesrc/scriptsfolder from this repository and run the install scriptLinuxsudo./scripts/apdaily-setup.shWindowsIn an administrator command prompt:scripts/apdaily-setup.batSettingsUse the mouse_util script to set the mouse positions in the config fileimportapdaily_methods.mouse_utilasmouse_utilmouse_util.run()Update the other portions of the config.toml file included in thesrc/scriptsfolder of this repo (same place as the install script)Then re-run the install script
Package: apd-crs
apd-crs is a Python package for survival analysis with cure rate. I.e. time-to-event analysis using a dataset for which outcomes of a fraction of the dataset are unknown (censored), and for which some individuals never experience the event. This package can also be used for PU learning. I.e. binary classification with positive and unlabeled dataThis package is based on original research work publishedhere.
apd-crs is a work in progress and maintained by a team of researchers and developers fromAimpoint Digital, LP.Source code for the package can be obtainedhere.Additional documentation can be obtainedhere.
Package: apdft
APDFT is a software to allow quantum-chemistry calculations of many isoelectronic molecules at once rather than evaluating them one-by-one. This is achieved through Alchemical Perturbation Density Functional Theory (https://arxiv.org/abs/1809.01647) where the change in external potential between molecules is treated as perturbation. This concept works just as fine for post-HF methods.All gaussian basis sets from the EMSL Basis Set Exchange and a variety of methods (HF, LDA, PBE, PBE0, CCSD) are supported. APDFT does not reinvent the wheel but leverages other QM software in the background.
Package: ap-dotfiles
# Project name<!— These are examples. Seehttps://shields.iofor others or to customize this set of shields. You might want to include dependencies, project status and licence info here —>![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/dotfiles)
![GitHub contributors](https://img.shields.io/github/contributors/alexpdev/dotfiles)
![GitHub stars](https://img.shields.io/github/stars/alexpdev/dotfiles?style=social)
![GitHub forks](https://img.shields.io/github/forks/alexpdev/dotfiles?style=social)
![Twitter Follow](https://img.shields.io/badge/dotfiles-.files-green)Project name is a<utility/tool/feature>that allows<insert_target_audience>to do<action/task_it_does>.Additional line of information text about what the project does. Your introduction should be around 2 or 3 sentences. Don’t go overboard, people won’t read it.## PrerequisitesBefore you begin, ensure you have met the following requirements:<!— These are just example requirements. Add, duplicate or remove as required —>You have installed the latest version of<coding_language/dependency/requirement>You have a<Windows/Linux/Mac>machine. State which OS is supported/which is not.You have read<guide/link/documentation_related_to_project>.## Installing <project_name>To install <project_name>, follow these steps:Linux and macOS:`bash echo <install_command> `Windows:`bash echo <install_command> `## Using <project_name>To use <project_name>, follow these steps:`bash echo <usage_example> `Add run commands and examples you think users will find useful. Provide an options reference for bonus points!## Contributing to <project_name>
<!— If your README is long or you have some specific process or steps you want contributors to follow, consider creating a separate CONTRIBUTING.md file—>
To contribute to <project_name>, follow these steps:Fork this repository.Create a branch:git checkout -b <branch_name>.Make your changes and commit them:git commit -m ‘<commit_message>’Push to the original branch:git push origin <project_name>/<location>Create the pull request.Alternatively see the GitHub documentation on [creating a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).## ContributorsThanks to the following people who have contributed to this project:[@me](https://github.com/alexpdev) 🐛You might want to consider using something like the [All Contributors](https://github.com/all-contributors/all-contributors) specification and its [emoji key](https://allcontributors.org/docs/en/emoji-key).## ContactIf you want to contact me you can reach me at <your_email@address.com>.## License<!— If you’re not sure which open license to use seehttps://choosealicense.com/—>This project uses the following license: [<license_name>](<link>).
Package: apds9960
# Python (and MicroPython) APDS-9960 LibraryPython library for the APDS-9960 gesture sensor developed while I was looking to get the APDS-9960 to work with a _Raspberry Pi_ to build a user interface feeling like in _Minority Report_.This library is a port of the [APDS-9960 Raspberry Pi Library](https://bitbucket.org/justin_woodman/apds-9960-raspberry-pi-library) of [Justin Woodman](https://justinwoodman.wordpress.com/2014/11/15/using-the-apds-9960-rgb-proximity-and-gesture-sensor-with-the-raspberry-pi-2/). Sadly his library is coded in C++ and seems not to be maintained any more.This library has been tested with [SparkFun RGB and Gesture Sensor - APDS-9960](https://www.sparkfun.com/products/12787) but should work with any other APDS-9960 based I²C device, too.Features:- operational voltage: 3.3V- ambient light & RGB color sensing- proximity sensing- gesture detection- operating range: 10 - 20cm- I²C interface (hard wired I²C address: 0x39)Documentation:- [RPi](RPi.md) - connect and configure the APDS-9960 on Raspberry Pi- Example scripts:- simple ambient light level demo: [rpi](rpi/test_ambient.py), [micropython](micropython/test_ambient.py)- simple gesture detection demo: [rpi](rpi/test_gesture.py), [micropython](micropython/test_gesture.py)- simple proximity level demo: [rpi](rpi/test_prox.py), [micropython](micropython/test_prox.py)
Package: apdt
Air Pollution Data Toolboxapdt is air pollution research toolkit that helps you:Deal with different data source, e.g., national monitoring station, mobile sensory system, meteorological observations, etc;Common data process, e.g., spatio-temporal interpolation, filtering, high-dimensional signal processing, etc;Common data analysis, e.g., causal analysis, event analysis, pattern mining, etc;Rich visualization charts, e.g., curves, maps, dynamic evolution, etc;Deep learning interface, e.g., data set division, common model building, training process processing, etc;We are committed to the following goals:The consistence of data structure;The high reusability;It covers common needs of data analysis and academic research under the topic of air pollution;High efficiency, parallel support for large-scale data processing;apdt是一个用于空气污染数据研究的工具包，使用它可以方便地：处理不同格式的数据源，例如国控站、移动监测系统、气象观测等；进行常见的数据处理，例如时空插值、滤波、高维信号处理等；进行常见的数据分析，例如因果相关性、事件分析、模式挖掘等；丰富的可视化图表，例如曲线、地图、动态演变等；优雅调参深度学习，帮你完成数据集划分、常见模型的搭建、训练过程的处理等；我们致力于实现以下目标：数据结构的统一性；方法的高度可复用性；广泛性，在空气污染话题下覆盖数据分析和学术研究的需求；高效率，并行支持大规模数据处理；
Package: apduboy
apduboyAPDUs for Humans ™️apduboy provides a collection of Pythonic stubs that generate APDUs to
communicate with the Ledger Nano S/X hardware wallet.InstallingpipinstallapduboyExamplesRetrieve Ethereum addressesfromledgerwallet.clientimportLedgerClientfromledgerwallet.transportimportenumerate_devicesfromapduboy.ethereumimportGetEthPublicAddressOpts,get_eth_public_addressfromapduboy.lib.bip32importh,mclient=LedgerClient(enumerate_devices()[0])opts=GetEthPublicAddressOpts(display_address=False,return_chain_code=False)forindexinrange(5):path=m/h(44)/h(60)/h(index)/0/0cmd=get_eth_public_address(path=path,opts=opts)response=cmd(client)print(f"Address at path{path}=> 0x{response.address}")Retrieve Bitcoin addressesfromledgerwallet.clientimportLedgerClientfromledgerwallet.transportimportenumerate_devicesfromapduboy.bitcoinimportGetWalletPublicKeyOpts,get_wallet_public_keyfromapduboy.lib.bip32importh,mclient=LedgerClient(enumerate_devices()[0])path=m/h(84)/h(1)/h(7)/0/1234opts=GetWalletPublicKeyOpts(display_address=False,scheme=None)cmd=get_wallet_public_key(path=path,opts=opts)response=cmd(client)print(f"Address at path{path}=>{response.address}")Generate a cryptographically secure random numberfromledgerwallet.clientimportLedgerClientfromledgerwallet.transportimportenumerate_devicesfromapduboy.bitcoinimportget_randomclient=LedgerClient(enumerate_devices()[0])cmd=get_random()response=cmd(client)print(f"True Random Number (hex):{response.hex()}")Sign Ethereum Transactionfromapduboy.ethereumimportEther,GWei,Transaction,sign_transactionfromapduboy.lib.bip32importh,mpath=m/h(44)/h(60)/h(777)/0/0tx=Transaction(nonce=0,gas_price=50*GWei,gas=21000,data=b"",to=bytes.fromhex("004ec07d2329997267ec62b4166639513386f32e"),value=32*Ether,)cmd=sign_transaction(path=path,tx=tx)response=cmd(device)# device can be anything that provides an APDU exchange.apduboy is currently in alpha. Please do NOT use this for signing real transactions.
Package: ape
apeis a make/rake/ant/fab-like system with support for FOSD.apeis short for “A Productive Environment”. It provides a way to organize tasks in feature modules.
Feature modules can introduce new tasks and refine tasks that have been introduced by other features.Tasks are defined as simple python functions.apemakes these task functions available from the command line
and provides usage information by extracting the functions’ docstrings.apecan be used to manage software product lines(SPL). SPLs are placed in containers that contain their features and products.Documentation:http://ape.readthedocs.org/License: MIT
Package: ape-accounts
Ape Accounts PluginPlugin forApe Ethereum Frameworkfor working with local accountsDependenciespython3version 3.6 or greater, python3-devInstallationviapipYou can install the latest release viapip:pipinstallape-accountsviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-accounts.gitcdape-accounts
python3setup.pyinstallQuick UsageTODO: Describe library overview in codeDevelopmentThis project is in early development and should be considered an alpha.
Things might not work, breaking changes are likely.
Comments, questions, criticisms and pull requests are welcomed.LicenseThis project is licensed under theApache 2.0.
Package: ape-addressbook
Quick StartApe plugin that allows tracking addresses and contracts in projects and globally.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-addressbookviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-addressbook.gitcdape-addressbook
python3setup.pyinstallQuick UsageTo use the addressbook in a project, add common addresses to yourape-config.yamlfile like this:addressbook:shared_account:"0x2192f6112a026bce4047CeD2A16553Fd31E798B6"Then, to use the address, import the addressbook and access it via the alias set in the config:fromape_addressbookimportaddressbookaddress=addressbook["shared_account"]
Package: ape-ai
ape-ai: a Python framework for AIWhat is it?ape-aiis a Python package that provides implementations of common algorithms in artificial intelligence. This package is a personal project, aimed at providing a simple and easy-to-use library for AI enthusiasts, students, and researchers to explore and experiment with various AI techniques. Additionally, this project serves as a learning platform for the developer to study object-oriented programming patterns and testing libraries.InstallationTo installape-ai, it's not possible to use pip yet.Usageape-aicurrently supports the following algorithms:Evolution Strategy (ES)Here's an example of how to use the ES algorithm to optimize a simple function:importnumpyasnpfromape.optimizationimportNaiveEvolutionStrategy# Cost functionquadratic=lambdax:x[0]**2+x[1]**2# Parametersμ=12λ=μ//2iterations=100# Algorithmes=NaiveEvolutionStrategy(μ,λ,n=2)es.optimize(func=quadratic,iterations=iterations)mean,_=es.estimate()print('estimated minimum:',mean,flush=True)ContributingContributions are welcome! If you want to contribute toape-ai, please fork the repository and submit a pull request. Make sure to follow the contributing guidelines.
Package: ape-alchemy
Quick StartUse theAlchemyprovider plugin to interact with blockchains via APIs.
Theape-alchemyplugin supports the following ecosystems:EthereumArbitrumBaseOptimismPolygonDependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-alchemyviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-alchemy.gitcdape-alchemy
python3setup.pyinstallQuick UsageFirst, make sure you have one of the following environment variables set (it doesn't matter which one):WEB3_ALCHEMY_PROJECT_IDWEB3_ALCHEMY_API_KEYWEB3_<ecosystem>_<network>_ALCHEMY_PROJECT_IDWEB3_<ecosystem>_<network>_ALCHEMY_PROJECT_IDFor example, to use both Arbitrum and Ethereum in the same session, you could set bothWEB3_ARBITRUM_MAINNET_ALCHEMY_PROJECT_IDandWEB3_ETHEREUM_MAINNET_ALCHEMY_PROJECT_ID.NOTE: If using non-Ethereum networks, take care to install the correct plugins, such asape-arbitrum,ape-optimism, etc:apepluginsinstallarbitrumThen, either in your current terminal session or in your root RC file (e.g..bashrc), add the following:exportWEB3_ALCHEMY_PROJECT_ID=MY_API_TOKEN=<value-of-secret-key>To use the Alchemy provider plugin in most commands, set it via the--networkoption:apeconsole--networkethereum:goerli:alchemyTo connect to Alchemy from a Python script, use thenetworkstop-level manager:fromapeimportnetworkswithnetworks.parse_network_choice("ethereum:mainnet:alchemy")asprovider:...Transaction TracesIf you are using a paid tier of Alchemy, you have access to both Geth and Parity style traces.
Parity traces are faster and thus are the ones uses in Ethereum receipts'show_trace()method:fromapeimportnetworksalchemy=networks.provider# Assuming connected to Alchemytxn_hash="0x053cba5c12172654d894f66d5670bab6215517a94189a9ffc09bc40a589ec04d"receipt=alchemy.get_transaction(txn_hash)receipt.show_trace()# Prints the Transaction traceTo access the rawCallTree, do:fromapeimportnetworksalchemy=networks.provider# Assuming connected to Alchemytxn_hash="0x053cba5c12172654d894f66d5670bab6215517a94189a9ffc09bc40a589ec04d"call_tree=alchemy.get_call_tree(txn_hash)To learn more about transaction traces, viewApe's transaction guide.
Package: ape-apeman
ape-apemanAn opinionated alternative api for the most excellent eth-ape project.12-factor compliantembeddable in a serviceindependent of user interactionmanager module facilitating use of eth-ape functionsFree software: MIT licenseDocumentation:https://ape-apeman.readthedocs.io.CreditsThis is a merely a wrapper aroundApeWorX eth-apeThis package was created with Cookiecutter andrstms/cookiecutter-python-cli, a fork of theaudreyr/cookiecutter-pypackageproject template.audreyr/cookiecutteraudreyr/cookiecutter-pypackagerstms/cookiecutter-python-cliUsage: apeman [OPTIONS] COMMAND [ARGS]...

Options:
  --version               Show the version and exit.
  -e, --ecosystem TEXT    [env var: APE_ECOSYSTEM; required]
  -n, --network TEXT      [env var: APE_NETWORK; required]
  -p, --provider TEXT     [env var: APE_PROVIDER; required]
  -d, --debug             debug mode
  -j, --json / -r, --raw  select output format
  -c, --compact           output compact json
  -h, --humanize          human-friendly (but lossy) output
  --help                  Show this message and exit.

Commands:
  balance  output account balance
  eth      expose web3.eth methods
  txn      output transaction receipt
Package: ape-arbitrum
Quick StartEcosystem Plugin for Arbitrum support in Ape.Dependenciespython3version 3.8 up to 3.11.InstallationviaapeYou can install this plugin usingape:apepluginsinstallarbitrumor via config file:# ape-config.yamlplugins:-name:arbitrumviapipYou can install the latest release viapip:pipinstallape-arbitrumviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-arbitrum.gitcdape-arbitrum
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Arbitrum ecosystem:apeconsole--networkarbitrum:mainnetDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-aurora
Ape Aurora Ecosystem PluginEcosystem Plugin for Aurora support in ApeDependenciespython3version 3.7 or greater, python3-devInstallationviaapeYou can install this plugin usingape:apepluginsinstallauroraor via config file:# ape-config.yamlplugins:-name:auroraviapipYou can install the latest release viapip:pipinstallape-auroraviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/albertocevallos/ape-aurora.gitcdape-aurora
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Aurora ecosystem:apeconsole--networkaurora:mainnetDevelopmentComments, questions, criticisms and pull requests are welcomed.LicenseThis project is licensed under theApache 2.0.
Package: ape-avalanche
Quick StartEcosystem Plugin for Avalanche (C-Chain) support in ApeDependenciespython3version 3.8 up to 3.11.InstallationviaapeYou can install this plugin usingape:apepluginsinstallavalancheor via config file:# ape-config.yamlplugins:-name:avalancheviapipYou can install the latest release viapip:pipinstallape-avalancheviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-avalanche.gitcdape-avalanche
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Avalanche ecosystem:apeconsole--networkavalanche:mainnetDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-base
Quick StartEcosystem Plugin forBasesupport in Ape.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-baseviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-base.gitcdape-base
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Base ecosystem:ape console --network base:goerliDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.