Saravanan666/pypi-org huggingface dataset:
Package: python-ace
DescriptionThis repository containspacemaker- a tool for fitting of interatomic potentials in a general nonlinear Atomic Cluster Expansion (ACE) form.
It is based on thepyace(this repo) andtensorpotential(another repo) Python packages.InstallationPlease followtheseinstructions.DocumentationPlease see thedocsfolder for documentation or checkonline documentationCitationPlease cite following papers:Bochkarev, A., Lysogorskiy, Y., Menon, S., Qamar, M., Mrovec, M. and Drautz, R. Efficient parametrization of the atomic cluster expansion. Physical Review Materials 6(1) 013804 (2022)Lysogorskiy, Y., Oord, C. v. d., Bochkarev, A., Menon, S., Rinaldi, M., Hammerschmidt, T., Mrovec, M., Thompson, A., Csányi, G., Ortner, C. and  Drautz, R. Performant implementation of the atomic cluster expansion (PACE) and application to copper and silicon. npj Computational Materials 7(1), 1-12 (2021)Drautz, R. Atomic cluster expansion for accurate and transferable interatomic potentials. Physical Review B, 99(1), 014104 (2019)BibTeX:@article{bochkarev2022efficient,title={Efficient parametrization of the atomic cluster expansion},author={Bochkarev, Anton and Lysogorskiy, Yury and Menon, Sarath and Qamar, Minaam and Mrovec, Matous and Drautz, Ralf},journal={Physical Review Materials},volume={6},number={1},pages={013804},year={2022},publisher={APS}}@article{lysogorskiy2021performant,title={Performant implementation of the atomic cluster expansion (PACE) and application to copper and silicon},author={Lysogorskiy, Yury and Oord, Cas van der and Bochkarev, Anton and Menon, Sarath and Rinaldi, Matteo and Hammerschmidt, Thomas and Mrovec, Matous and Thompson, Aidan and Cs{\'a}nyi, G{\'a}bor and Ortner, Christoph and others},journal={npj Computational Materials},volume={7},number={1},pages={1--12},year={2021},publisher={Nature Publishing Group}}@article{drautz2019atomic,title={Atomic cluster expansion for accurate and transferable interatomic potentials},author={Drautz, Ralf},journal={Physical Review B},volume={99},number={1},pages={014104},year={2019},publisher={APS}}
Package: python-acrcloud
acrcloudThis project has been created to detects the songs from an audio.DisclaimerThis project is licensed underCC BY-NC-SA 4.0OS SupportedImportantFor get the access key, access secret and host watch (https://www.acrcloud.com/docs/acrcloud/)Installationpip3 install acrcloudIdentify a songIdentify a song by an audioimportacrcloudconfig={"key":YOURACCESSKEY,"secret":YOURACCESSSECRET,"host":YOURHOST}audio="audio.mp3"acr=acrcloud.ACRcloud(config)audio=acr.recognizer(audio)
Package: python-active-directory
This is Python-AD, an Active Directory client library for Python on UNIX/Linux systems.Note- version 1.0 added support for Python >= 3.6 and version 2.0 will drop support for Python 2Install$pipinstall-egit+git@github.com:theatlantic/python-active-directory.git@v1.0.0+atl.2.0#egg=python-active-directoryDevelopmentGet the code$gitclonegit@github.com:theatlantic/python-active-directory.git$cdpython-active-directoryCreate virtual environment$python-mvenvvenv$.venv/bin/activate$pipinstall-e.TestingVersion 1.0 switched to using pytest instead of nose, and added tox configuration
for supporting testing across various supported Python versions.$pipinstalltox$toxSpecial environment variables:PYAD_TEST_CONFIG- Override the default test configuration file (formerlyFREEADI_TEST_CONFIG)PYAD_READONLY_CONFIG- Enable readonly tests, must be in the form ofusername:password@domain.tld
Package: python-active-versions
python active versionsGather active python versions and, optionally, also docker images.Documentation:https://gpongelli.github.io/python-active-versionsGitHub:https://github.com/gpongelli/python-active-versionsPyPI:https://pypi.org/project/python-active-versions/Free software: MITFeaturesScrape official python website to get active versionsScrape dockerhub website to add optional python's available imagesCreditsThis package was created withCookiecutterand thegpongelli/cookiecutter-pypackageproject template.
Package: python-ada
Adapy libraryThe library now supports create address, push and get transactions for both python 2.7 and 3.xInstallationLinux# create virtual environmentmkdir-p~/envs/adaspy
virtualenv~/envs/adapy# activate the environmentsource~/envs/eospy/bin/activate# install from github# look [here](https://github.com/khanhct/adapy/releases) for the latest release.pipinstallgit+https://github.com/khanhct/adapy.git@<release># install the library from pippipinstalladapyDocker Containerdocker-composeupAPI EndpointsFor a more complete list of API endpoints check out:https://cardanodocs.com/technical/wallet/api/ExampleCreate Addressfromadapy.nodeadaimportNodeAda
fromadapy.walletimportWallet
importhashlibno=NodeAda(url='https://localhost:8090/api',version='v1')wl=Wallet(url='https://localhost:8090/api',version='v1')print(no.create_address(2520553453,"46734b4a5a6454556c6137356c616171797573793549676864445a6741756c55","2cWKMJemoBakEUmdoCBWmG3b1ya6aa9hcmGF5UY6eqZbXcpzkcwNuEoXMrGvcRW1mDxjA"))Get transactionsfromadapy.nodeadaimportNodeAda
fromadapy.walletimportWallet
importhashlibno=NodeAda(url='https://localhost:8090/api',version='v1')wl=Wallet(url='https://localhost:8090/api',version='v1')params={'wallet_id':'2cWKMJemoBakEUmdoCBWmG3b1ya6aa9hcmGF5UY6eqZbXcpzkcwNuEoXMrGvcRW1mDxjA','account_index':2520553453,'created_at':'RANGE[2019-12-24T07:25:18.788036, 2019-12-24T07:25:18.788036]','page':1,'sort_by':'DES','per_page':20}print(no.get_trxs(params))Push transactionfromadapy.nodeadaimportNodeAda
fromadapy.walletimportWallet
importhashlibno=NodeAda(url='https://localhost:8090/api',version='v1')wl=Wallet(url='https://localhost:8090/api',version='v1')trx={"destinations":[{"address":"37btjrVyb4KDhZhhAQ2yK2RoJ1k4fQAxoFZJ78sgPhsZiQWV2KwgDhqRsjhA2JsiKs6N74V98GPVwSGdjopFv22ksggjCc5xVyW3pGQ954okXPQ5Yj","amount":500*1000000}],"groupingPolicy":"OptimizeForHighThroughput","source":{"accountIndex":2520553453,"walletId":"2cWKMJemoBakEUmdoCBWmG3b1ya6aa9hcmGF5UY6eqZbXcpzkcwNuEoXMrGvcRW1mDxjA"},"spendingPassword":"46734b4a5a6454556c6137356c616171797573793549676864445a6741756c55"}try:result=no.send_trx(trx_data=trx)print(result)exceptExceptionasex:print(ex)
Package: python-adb-utils
Python-ADB-ToolsInstallationYou can install this package via pippip install python_adb_utilsorpip3 install python_adb_utilsUsage:To use these tools you only need to import and create an instance of AdbUtils()from adb_utils import adb_utils as adbadb.get_connected_devices()Available Methodsget_connected_devices()This method will return you a list of tuples having the device name and Android version for that specific version.install_app(device=device_name, apk=path_to_apk)Installs an app to the chosen device.unistall_app(device=device_name, package=package_name)Uninstalls an appis_device_connected(device=device)Returns True if a device is connected.is_app_installed(device=device_name, package=package_name)Check if an app is installed on a specific device.unlock_device(device=device_name, password=password)Unlocks a device with the correct password.
Package: python-adc-eval
python-adc-evalA python-based ADC evaluation tool, suitable for standalone or library-based usageDetailsPackage based onesynr3z/adc-evalTiny tools collection (PythonNumPy+Matplotlibbased) to do spectral analysis and calculate the key performance
parameters of an ADC. Just collect some data from the ADC, specify basic
ADC parameters and run analysis. Seeexample.ipynb(you will needJupyter Notebookto be
installed).analyserReferences: -Analog Devices MT-003 TUTORIAL “Understand SINAD, ENOB,
SNR, THD, THD + N, and SFDR so You Don’t Get Lost in the Noise
Floor”-National Instruments Application Note 041 “The Fundamentals of
FFT-Based Signal Analysis and
Measurement”Inspired by Linear Technology (now Analog Devices)PScopetool.USAGETo load the library in a module:importadc_evalGiven an array of values representing the output of an ADC, the spectrum can be analyzed with the following:importadc_evaladc_eval.spectrum.analyze(<adclist>,<adc_bits>,<adcvref>,<adcfsamp>,window='hanning',no_plot=<True/False>)Image source:Creating an ADC Using FPGA Resources WP -
Lattice
Package: python-adjutant
Adjutant is a service that sits along Keystone and allows the
automation and approval of tasks normally requiring a user with an
admin role. Adjutant allows defining of such tasks as part of a
workflow which can either be entirely automatic, or require admin
approval. The goal is to automate business logic, and augment the
functionality of Keystone and other OpenStack services without getting
in the way of future OpenStack features or duplicating development
effort.Quick Dev DeploymentTo quickly deploy the service for testing you can install via pip,
setup a default config file, and then run the test Django server.pip install adjutantThen running the service will look for a config in either/etc/adjutant/conf.yamlor it will default toconf/conf.yamlfrom the directory you run the command in.adjutant migrate
adjutant runserver <port>For now you will have to source the default conf from the github repo
or the library install location itself, but we hope to add an
additional commandline function which will copy and setup a basic
default config in/etc/adjutant/conf.yaml.
Package: python-adjutantclient
AdjutantClient is a command-line and python client for Adjutant.Getting StartedAdjutant Client can be installed from PyPI using pip:pip install python-openstackclient python-adjutantclientThe command line client is installed as a plugin for the OpenStack client.Python APIYou can use the API with a keystone session:>>> from keystoneauth1 import session
>>> from keystoneauth1.identity import v3
>>> from adjutantclient.client import Client
>>> auth = v3.Password(auth_url='http://keystone.host/v3',
                       username='user',
                       password='password',
                       project_name='demo',
                       user_domain_name='default',
                       project_domain_name='default')>>> sess = session.Session(auth=auth)
>>> adjutant = Client('1', session=sess)If you use a clouds.yaml file os_client_config can also be used:>>> import os_client_config
>>> sess = os_client_config.make_rest_client('admin-logic')
>>> adjutant = Client('1', session=sess)A few of the endpoints (users.password_forgot(), token.submit(), signup, token.get()) don’t require authentication.
In this case you can instead just pass an endpoint override to the adjutant client constructor.>>> from adjutantclient.client import Client
>>> adjutant = Client('1', endpoint='http://adjutant.host/v1')
Package: python-admob
You can view all examples on using the module at: https://github.com/mlagace/python-admob**Examples on how to use the python-admob module:**from admob import Admob"""Before starting to use the API you need to generate an AdMob API Token."""admob = Admob('API KEY')token = admob.login(email='Email', password='API Password')"""Get and Set Token"""if len(token['errors']) == 0:admob.token = token['data']['token']else:print token['errors']"""Get all sites and stats"""sites = admob.search('site')if len(sites['errors']) == 0:print sites['data']else:print sites['errors']stats = admob.getstats(sites['data'][0]['id'], 'site', {'start_date':'2011-12-11','object_dimension':'site', 'time_dimension':'day', 'order_by[impressions]':'desc'})if len(stats['errors']) == 0:print stats['data']else:print stats['errors']
Package: python-advanced-logger
PythonAdvanceLoggerPython Advance logger capable to log every event with django default logger, elasticsearch, and file log
This package use as a python standard logger as a base logger and add extra features for better log handling
by lesser actions in python and djangoThis package aims to create log like asp.net logger which capable to distribute log over elasticsearch, file, and other
extra loggersThis package contains 4 main modules:Python default loggerElasticsearch logger (Using http requests)file loggerInstall package by:How to setup package in django:After installation advanceLogging package from pypi, you can setup you logger as a shown below:elsConf = ElasticSearchConf(hosts=["your host: port"],
                            user="username",
                            password="pass",
                            indicator="your elastic index",
                            maxConnection=10)

LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "formatters": {
        "advance_logger": {
            "format": "%(asctime)s %(created)f %(filename)s %(funcName)s %(levelname)s %(levelno)s %(lineno)d %(module)s"
                      " %(name)s %(levelname)s %(message)s %(pathname)s",
            "datefmt": "%Y-%m-%dT%H:%M:%S%z",
            "class": "advanceLogger.AdvanceLogFormatter"
        }
    },
    "handlers": {
        "console": {
            "class": "advanceLogger.AdvanceLogHandler",
            "formatter": "advance_logger",
            "els_conf": elsConf
        }
    },
    "loggers": {
        # Make sure to replace the following logger's name for yours
        "django": {
            "handlers": ["console"],
            "level": "INFO",
        },
    }
}After define logger in your django settings.py you can use this logger every place of your codes like below:import logging

logger = logging.getLogger("django_structlog_demo_project")


class Startup:
    def __init__(self):
        logger.info("start app", extra={"extraParams": 1})
        logger.debug("start app")
        logger.error('test')
        requests.get('https://reqres.in/api/users?page=2')
Package: python-advanced-typing
Python Advanced TypingOverviewDescriptionpython-advanced-typingis a simple Python package to help developers validate the types of variables in their codebase. With support for checking individual variables or multiple variables at once, it offers a concise way to ensure that the data you're working with meets your expectations.FeaturesSingle Variable Check: Compare a variable's type against a specific type or multiple acceptable types.Bulk Verification: Validate the types of multiple variables simultaneously using a list.Setup InstructionsInstall the Package using:pip install python-advanced-typingUsageCheck Individual Variablefrompython_advanced_typingimportcheck_typex="Hello"check_type(x,"x",str)Bulk Check Multiple Variablesfrompython_advanced_typingimportcheck_typex="Hello"y=123z=[1,2,3]check_type((x,"x",str),(y,"y",int),(z,"z",list))ContributingAs this is an open-source project hosted on GitHub, your contributions and improvements are welcome! Follow these general steps for contributing:Fork the Repository:
Start by forking the main repository to your personal GitHub account.Clone the Forked Repository:
Clone your forked repository to your local machine.git clone https://github.com/YidiSprei/PythonAdvancedTyping.gitCreate a New Branch:
Before making any changes, create a new branch:git checkout -b feature-nameMake Your Changes:
Implement your features, enhancements, or bug fixes.Commit & Push:git add .
git commit -m "Descriptive commit message about changes"
git push origin feature-nameCreate a Pull Request (PR):
Go to your forked repository on GitHub and click the "New Pull Request" button. Make sure the base fork is the original repository, and the head fork is your repository and branch. Fill out the PR template with the necessary details.Remember to always be respectful and kind in all interactions with the community. It's all about learning, growing, and helping each other succeed!AcknowledgmentsCrafted with 💙 by Yidi Sprei. Kudos to all contributors and the expansive Python community for encouragement and motivation.
Package: python-adventure-game
python-adventure-game==============.. image:: https://travis-ci.org/allanburleson/python-adventure-game.svg?branch=masterThis is a text-based adventure game engine written in Python. There are better ones out there; I'm just making this for fun.See example.py for an example game with the engine and demo.py for a more complicated game.Python 3.6 is required because I'm the only user so it doesn't matter.
Package: pythonaem
PythonAEMPythonAEM is a Python client forAdobe Experience Manager (AEM)API.
It is written on top ofswaggeraemand provides resource-oriented API and convenient response handling.Learn more about PythonAEM:InstallationUsageResult ModelError HandlingTestingVersions Historypythonaem is part ofAEM OpenCloudplatform but it can be used as a stand-alone.Installationpip3 install pythonaemUsageInitialise client:from pythonaem import PythonAem

conf = {
    'username': 'admin',
    'password': 'admin',
    'protocol': 'http',
    'host': 'localhost',
    'port': 4502,
    'debug': True,
    'verify_ssl': True,
    'ssl_ca_cert': None,
    'cert_file': None,
    'key_file': None
}
client = PythonAem(conf)Aem:aem = client.aem()
result = aem.get_aem_health_check({
    'tags': 'shallow',
    'combine_tags_or': 'false',
})Flush agent:flush_agent = client.flush_agent('author', 'some-flush-agent')

# create or update flush agent
result = flush_agent.create_update('Some Flush Agent Title', 'Some flush agent description', 'http://somehost:8080')

# check flush agent's existence
result = flush_agent.exists()

# Disable flush agent
result = flush_agent.disable()

# Enable flush agent
result = flush_agent.enable()

# delete flush agent
result = flush_agent.delete()Replication agent:replication_agent = client.replication_agent('author', 'some-replication-agent')

# create or update replication agent
result = replication_agent.create_update('Some Replication Agent Title', 'Some Replication agent description', 'http://somehost:8080')

# check replication agent's existence
result = replication_agent.exists()

# Disable replication agent
result = replication_agent.disable()

# Enable replication agent
result = replication_agent.enable()

# delete replication agent
result = replication_agent.delete()ResultEach of the above method calls returns aResult, which contains message,Response, and data payload. For example:flush_agent = client.flush_agent('author', 'some-inexisting-flush-agent')
result = flush_agent.delete()
print(result.message)
print(result.response.status_code)
print(result.response.body)
print(result.response.headers)
print(result.data)Error Handlingflush_agent = client.flush_agent('author', 'some-inexisting-flush-agent')
try:
    result = flush_agent.delete()
except Exception as error:
    self.assertEqual(error.message, 'Flush agent some-inexisting-flush-agent not found on author')TestingIntegration tests require an AEM instance withShine Solutions AEM Health Checkpackage installed.By default it uses AEM running onhttp://localhost:4502withadminusername andadminpassword. AEM instance parameters can be configured using environment variablesaem_protocol,aem_host,aem_port,aem_username, andaem_password.
Package: python-aemet
Librería cliente de la API de datos de AEMET. Permite obtener y manejar la información de la API de datos abiertos de AEMET. Cuenta con una serie de modelos de datos y métodos preparados para poder utilizarlos de forma fácil y accesible. Además, permite descargar en archivos los mapas que genera y publica AEMET.La información que recoge y utiliza esta librería es propiedad de la Agencia Estatal de Meteorología.InstalaciónUtiliza pip para instalar la librería:pipinstallpython-aemetAPI KeyObtén tu clave de API en la siguiente URL:https://opendata.aemet.es/centrodedescargas/obtencionAPIKeyUsar la libreríaLa clase principal de la librería es la clase Aemet.fromaemetimportAemetaemet_client=Aemet(api_key='your_api_key')Instancia un objeto con la API key y tendrás acceso a todos los métodos.Para más información, revisa la documentación¿Dudas, sugerencias?Para cualquier duda, sugerencia o mejora, siéntete libre de abrir una issue en el repositorio. No contesto a correos.
Package: python-aemet-forecast
PYTHON-AEMET_FORECASTA Python module for accessing Aemet forecast data through its apifromaemet_forecastimportAemetForecastAPI_KEY="your-api-key"MUNICIPIO_ID=14021forecast=AemetForecast(api_key=API_KEY)weekly_forecast_data=forecast.get_daily_forecast(MUNICIPIO_ID)
Package: python-aeroshield
python-aeroshieldpython-aeroshieldis a Python package that implements a Python interface toAutomationshield'sAeroshield. Automationshield creates cheap and accessible tools for control engineering education in the form of Arduino shields, of which the Aeroshield is one.This project was built to allow TU Delft students learning control engineering to use Python in their assignments, since that is what they are thought in the curriculum. This package provides a flexible controller class that lets users conveniently implement a controller and run it on the Arduino hardware.Installationpython-aeroshieldrequires Python >= 3.10 and can be installed with the following command:$pipinstallpython-aeroshieldUsageBelow is a very simple example to get started. Read more in thedocumentation.Use theAeroShieldclass to interface directly with the Arduino.fromaeroshieldimportAeroShieldwithAeroShield()asaero_shield:for_inrange(100):aero_shield.write(flag=aero_shield.RUN,motor=50)out=aero_shield.read()print(f"Potentiomneter [%]:{out[0]}, Angle [°]:{out[1]}")Use theAeroControllerclass to conveniently implement a controller.fromaeroshieldimportAeroShield,AeroControllerclassMyController(AeroController):defcontroller(self,t:float,dt:float,ref:float,pot:float,angle:float)->float:"""Set the motor value to the provided reference."""returnref# create controller instancemy_controller=MyController(AeroShield())# run the controller on the Arduino.hist=my_controller.run(freq=200,cycles=1000,ref=45)Plot the experiment data using theplotting.Plotterclassfromaeroshield.plottingimportPlotterfig,ax=Plotter.plot(hist)fig.show()Below is an example of a figure plotting the result of a PID controller with a constant reference at 45°.ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepython-aeroshieldwas created by Bert Van den Abbeele. It is licensed under the terms of the MIT license.Creditspython-aeroshieldwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: python-aes256
ENCRYPT DECRYPT AES 256bitInstall to your environment :
> pip install python-aes256How to use :Test using python shell :
> python manage.py shell
> from pyaes256 import PyAES256
> a = PyAES256()
> password = 'g_7me8rl2m#a_h2oresgt2#ni=3_4*!ai*=rtsq)yi!g7_5-51'     

Encryption Process :
> enc = a.encrypt('Secret Text',password)
> print('Encrypt: ', enc)
    Encrypt: {'url': 'REhHcFNaN0tPSzVqNm50UUJ0T2g5dz09', 'salt': b'k4/Ai7zJKUssvup2c+2+3w==', 'iv': b'34YtC6XqlQjo8UfWc4yNcA=='}

Decryption Process :
> dec = a.decrypt(url='REhHcFNaN0tPSzVqNm50UUJ0T2g5dz09', salt=b'k4/Ai7zJKUssvup2c+2+3w==', iv=b'34YtC6XqlQjo8UfWc4yNcA==', password=password)
> print('Decrypt: ', dec)
    Decrypt: b'Secret Text'
> origin = bytes.decode(dec)
> print('Origin: ', origin)
    Origin: 'Secret Text'Avalanche Effect :How to use :Test using python shell :
> python manage.py shell
> from pyavalanche import PyAvalanche

> chipper1 = 'Nk9iL05BQmM5bnRES3drVGc0NHZRdz09'
> chipper2 = 'Z3VFbi9lWDJtS1B5UzE4TGVsMzRHQT09'
> print('Chipper 1 = ', chipper1)
> print('Chipper 2 = ', chipper2)
> ava = PyAvalanche()
> result = ava.avalanche_effect(chipper1, chipper2)

Print result :
> print(result,'%')
    50.0 %
> print("If more than 50% output bits have changed then the algo have good avalanche effect.")
Package: python-aiml
python-aiml implements an interpreter for AIML, the Artificial Intelligence
Markup Language developed by Dr. Richard Wallace of the A.L.I.C.E. Foundation.
It can be used to implement a conversational AI program.Forked from PyAIML 0.8.6 (https://github.com/cdwfs/pyaiml)
PyAIML (c) Cort Stratton