Saravanan666/pypi-org huggingface dataset:
Package: android-tv-remote
Python Android TV RemoteAuthor:Tim Santortsantor@xstudios.comOverviewSimple package that allows you to mimic Android TV remote inputs via Python.  Designed to be used over TCP (not USB).FeaturesOffers a limited set of ADB commands. Seesrc\androidtvremote\adb.pyfor all commands.- `tcp`
- `devices`
- `connect`
- `install`
- `uninstall`
- `push`
- `pull`
- `get-state`
- `get-serialno`
- `get-devpath`
- `reboot`
- `start-server`
- `kill-server`InstallationTo install python-android-tv-remote, simply:pip install android-tv-remoteTipsGet IP address:adb devices
adb -s <DEVICE_ID> shell ip -f inet addr show wlan0Developmentmake env
make reqs
pip install -e .TestingProject is at76%test coverage.pytest -v
tox

# Run a specific test
pytest -v tests/test_adb.py -k test_get_ip_address

# Run coverage
pytest --cov-report html --cov-report term --cov=tests/DocumentationDocumentation is available at TODOIssuesIf you experience any issues, please create anissueon Bitbucket.HistoryAll notable changes to this project will be documented in this file. This project adheres toSemantic Versioning.0.1.6 (2023-06-22)New packaging method usingpyproject.tomlAdded new tests0.1.5 (2022-01-04)Ensure the ADB server is started as a background process during init.0.1.4 (2021-12-12)Removed ADBconnectparams formax_retriesandretry_delay.0.1.3 (2021-12-10)Added ADBconnectparams formax_retriesandretry_delay.0.1.2 (2021-12-09)Added ADB disconnect method.Removed keycode constants from remote.py.  Can pass actual string constants to ADB.0.1.1 (2021-12-08)Added KEYCODE_SOFT_SLEEP0.1.0 (2019-04-25)First release on PyPI.
Package: androidtvremote2
androidtvremote2A Python library for interacting with Android TV using the Android TV Remote protocol v2. This is the same protocol the Google TV mobile app is using. It doesn't require ADB or enabling developer tools on the Android TV device. It only requires theAndroid TV Remote Servicethat comes pre-installed on most Android TV devices.For a list of the most common commands you can send to the Android TV see:TvKeys.
For a full list seehere.
In addition to commands you can send URLs to open apps registered to handle them.CreditsOfficialimplementationof the pairing protocol in JavaImplementationin Python but for the old v1 protocolImplementationin Node JS for the v2 protocolDescriptionof the v2 protocolExampleSeedemo.pyDevelopment environmentpython3-mvenv.venvsource.venv/bin/activate# for Windows CMD:# .venv\Scripts\activate.bat# for Windows PowerShell:# .venv\Scripts\Activate.ps1# Install dependenciespython-mpipinstall--upgradepip
python-mpipinstall.# Generate *_pb2.py from *.protopython-mpipinstallgrpcio-toolsmypy-protobuf
python-mgrpc_tools.protocsrc/androidtvremote2/*.proto--python_out=src/androidtvremote2--mypy_out=src/androidtvremote2-Isrc/androidtvremote2# Run formatter, lint, and type checkingpython-mpipinstallisortblackflake8ruffmypypydantic
isort.;black.;flake8.;ruff.--fix;mypy--install-types.# Run testspython-mpipinstallpytest
pytest# Run demopython-mpipinstallpynputzeroconf
pythonsrc/demo.py# Build packagepython-mpipinstallbuild
python-mbuild
Package: androidvideo
## Create Android Compatible VideosCreate Android compatible videos that play in ANY Android devicewithout third party software. Basedon [Android Supported Media Formats](https://developer.android.com/intl/es/guide/appendix/media-formats.html#recommendations).*Playability depends in device resolution only, i.e. HD 720p videowon't play correctly on 240x320 resolution device***DEPENDS ON [FFmpeg ](https://www.ffmpeg.org/)**## Video qualityChoose a video quality between following options:* low -> Low quality* hq  -> High quality* hd  -> HD 720p (N/A on all devices)## Usage`androidvideo [quality] [video input] [output filename without extension]`**Example**`androidvideo hq input.mov output`Will output an `output.mp4` file.## InstallationPlease make sure you have [FFmpeg ](https://www.ffmpeg.org/)installed. Run `ffmpeg -version` to check installation.`pip install androidvideo`## HelpRun `androidvideo -h` for help.
Package: android-xml-translater
android-xml-translaterInspired byGTranslate-strings-xmlDependenciesdeep-translatorbeautifulsoup4lxmlpipinstallandroid-xml-translaterORgitclonehttps://github.com/Harkame/android-xml-translater.gitcdandroid-xml-translater

pipinstall.UsageBasic usageandroid-xml-translater-tfresdeFor more informationsandroid-xml-translater-h
Package: andromeda-nlp
andromedaEasy longform text generation for creative writing.InstallationInstall from PyPI:pip install andromeda-nlpDocumentationRead the documentation for this projecthere.GoalsServe as an easy-to-understand introduction to text generation, even for those with little to no programming experienceInvestigate the efficacy and practicality of using an NLP model for assistance with creative writingThe package should be modular and expandable; contributions are always encouragedContributingTo contribute,look at open issues, fork the repository and open a pull request with your changes. Or, if you experience an issue, please open one!
Package: andromeda-torch
Andromeda: Ultra-Fast and Ultra-Intelligent SOTA Language Model 🚀🌌Welcome to Andromeda, The Fastest, Most Creative, and Reliable Language Model Ever Built, train your own verison, conduct inference, and finetune your own verison with simple plug in and play scripts get started in 10 seconds:Features💼 Handle Ultra Long Sequences (32,000-200,000+ context lengths)⚡ Ultra Fast Processing (32,000+ tokens in under 100ms)🎓 Superior Reasoning Capabilities🎯 PrinciplesEfficiency: Optimize with techniques like attention flashing, rotary position encodings, and deep normalization.Flexibility: Adapt to various tasks and domains for wide applications.Scalability: Designed to scale with resources and data sizes.Community-Driven: Thrives on contributions from the open-source community.💻 Installpython3.11 -m pip install --upgrade andromeda-torchUsageForward pass with random inputsimporttorchfromandromeda.configsimportAndromeda1Billionmodel=Andromeda1Billion()x=torch.randint(0,256,(1,1024)).cuda()out=model(x)# (1, 1024, 20000)print(out)Tokenized inputsfromandromeda_torchimportTokenizerfromandromeda_torch.configsimportAndromeda1Billionmodel=Andromeda1Billion()tokenizer=Tokenizer()encoded_text=tokenizer.encode("Hello world!")out=model(encoded_text)print(out)📚 TrainingSet the environment variables:ENTITY_NAME: Your wandb project nameOUTPUT_DIR: Directory to save the weights (e.g.,./weights)MASTER_ADDR: For distributed trainingMASTER_PORTFor master port distributed trainingRANK- Number of nodes servicesWORLD_SIZENumber of gpusConfigure the training:Accelerate ConfigEnable Deepspeed 3Accelerate launch train_distributed_accelerate.pyFor more information, refer to theTraining SOP.TodoAdd Yarn Embeddings from zeta📈 BenchmarksSpeedAndromeda utilizes one of the most reliable Attentions ever, flash attention 2.0 Triton. It consumes 50x less memory than GPT-3 and 10x less than LLAMA.We can speed this up even more with dynamic sparse flash attention 2.0.LicenseApache License
Package: androset
Android-Certificate-Automated script to push Burp Suite certificate in AndroidPrerequisitesPython 3+ (Not verified)adb in system environment variablesBurp or Other CA cert in DERInstallationManual Installationgitclonehttps://github.com/Anof-cyber/androsetcdandrosetpipinstall-rrequirements.txtInstall with PIPpip install androsetUsage/ExamplesConvert and push Burp Certificate to androidpython3androset.pycert--certcacert.derSpecify  ADB IP and Portpython3androset.pycert--certcacert.der--adbip127.0.0.1:5555Modify Android IPTable to redirect all traffic to burppython3androset.pyburp--burpip127.0.0.1:8080python3androset.pyburp--burpip127.0.0.1:8080--adbip127.0.0.1:5555push burp cert and modify IP tablepython3androset.pycertburp--burpip127.0.0.1:8080--adbip127.0.0.1:5555--certcacert.derAcknowledgementsThe tool is Created usingChatGPTwith some custom modification.
Package: andrototal-cli
Command line tool for analyzing apk on Android antiviruses.Requires:adapers packageandropilot packageavds (with the antivirus installed) inside HOME/.android/avd/Installation:pip install andrototal-cli –process-dependency-linksBasic usage:andrototal-cli path/of/sample/apk NameOfTheAntivirusNameOfTheAntivirus:one from the adapters package(there must exist and avd: name.of.the.antivirus inside HOME/.android/avd/)Example:andrototal-cli malware.apk ComAntivirususage: andrototal-cli [-h] [-test-method {install,copy}][-log-level {DEBUG,INFO,WARNING,ERROR}]
[-window [WINDOW]] [-file-log FILE_LOG]
[-max-retries {1,2,3,4}]
[-store-device-data [STORE_DEVICE_DATA]]
malware_sample antivirus [antivirus …]positional arguments:malware_sample        path of the apk sample
antivirus             name of the antivirusoptional arguments:-h, –help show this help message and exit-test-method {install,copy}, -t {install,copy}test method-log-level {DEBUG,INFO,WARNING,ERROR}, -l {DEBUG,INFO,WARNING,ERROR}logging level.-window [WINDOW], -w [WINDOW]display emulator’s graphical window-file-log FILE_LOG, -fl FILE_LOGRedirect logger to file-max-retries {1,2,3,4}, -m {1,2,3,4}maximum number of scan retries when a non fatal
exceptions occurs-store-device-data [STORE_DEVICE_DATA], -sd [STORE_DEVICE_DATA]store device logcat and snapshot in device_data folderoutput:{‘sample’: {‘sha256’: ‘1944d8ee5bdda3a1bd06555fdb10d3267ab0cc4511d1e40611baf3ce1b81e5e8’,‘md5’: ‘77b0105632e309b48e66f7cdb4678e02’,‘sha1’: ‘4de0d8997949265a4b5647bb9f9d42926bd88191’},‘test_count’: 1,
‘success_count’: 1,
‘tests’: [{‘status’: ‘SUCCESS’,‘ended_at’: ‘2016-06-08 14:01:27’,‘detected_threat’: ‘THREAT_FOUND’,‘antivirus’: ‘ComAntivirus’,‘started_at’: ‘2016-06-08 14:00:34’,‘analysis_time’: 19}],
‘failure_count’: 0}
Package: anduindata
a lite mysql connector…
Name from the Lord of Ring<=========how to use=========>from anduin.server import Datacond = [(col1,’=’,val1),
(col2,’=’,val2),
….]fields = [col1,
col2
…]params = {key1:val1,
key2:val2,
…}find one line of data:Data.find(__TableName__,conditions=cond,fields=fields)return a python dict like { col1:value1,col2:value2…}find datasData.select(__TableName__,conditions=cond,fields=fields)return a python list like [{ col1:value1,col2:value2…}]update data:Data.update(__TableName__,conditions=cond,params=params)return Noneinsert data:Data.insert(__TableName__,params=params)return Nonedelete data:Data.delete(__TableName__,conditions=cond)return Noneusing Data.query() to execute sql directly like Data.query(‘select * from table’)
Package: anduschain
anduschain-pythonInstallpip install anduscahinUsagefrom web3 import Web3
from anduschain.middleware import construct_sign_and_send_raw_middleware

my_provider = Web3.HTTPProvider('http:/RPC-URL:8545')
w3 = Web3(my_provider)

ADDRESS = '0xfef6f81c2c9e1fa327cad572d352b913bc074a0d'
KEY_FILE = './tmp/UTC--2019-09-30T08:50:41Z--fef6f81c2c9e1fa327cad572d352b913bc074a0d.json'
KEY_PASS = 'KEYPASS

sender = Web3.toChecksumAddress(ADDRESS)

# read local keyfile
with open(KEY_FILE) as keyfile:
    encrypted_key = keyfile.read()
    private_key = w3.eth.account.decrypt(encrypted_key, KEY_PASS)

# add anduschain middleware
w3.middleware_onion.add(construct_sign_and_send_raw_middleware(private_key))
w3.eth.defaultAccount = sender

try:
    result = w3.eth.sendTransaction({'to': sender, 'gas': 21000, 'value': 1})
    print(Web3.toHex(result))
except Exception as err:
    print("=====Exception======", str(err))
Package: andyofmelbourne-pytemplate
# pytemplatetemplate python project## To make your own1. make a new repo on [github](https://github.com), then clone it locally2. sudo apt-get install git-flow* see [the github](https://jeffkreeftmeijer.com/git-flow/)* for an existing project: `$ git flow init`3. make a directory with the same name as the repo, put an `__init__.py` in there4. write your functions in this directory5. make the setup.py
Package: anecapi
anecAPIDescriptionanecAPIallows you to display funny (or not) USSR/Russian jokes (also called anecdotes).All jokes are in Russian only.Installationpip install anecapiExampleIn ConsoleC:\anecAPI> python anecAPI.py -h
usage: anecAPI.py [-h] [-m] [-s] [-a]

Displays a funny (or not) USSR/Russian joke (also called anecdote).

optional arguments:
  -h, --help    show this help message and exit
  -m, --modern  display a modern Russian joke
  -s, --soviet  display an old USSR joke
  -a, --any     display a USSR/Russian joke (default)

C:\anecAPI> python anecAPI.py -m
Штирлиц с Навальным пили водку и вдруг Навальный отрубился
"Новичок"- подумал ШтирлицIn CodefromanecAPIimportanecAPIprint(anecAPI.modern_joke())# Displays a modern Russian jokeprint(anecAPI.soviet_joke())# Displays an old USSR jokeprint(anecAPI.random_joke())# Displays a random USSR or Russian joke
Package: anedya-dev-sdk
Anedya SDKTheAnedya SDKis a Python package designed to provide an easy-to-use interface forAnedyacloud services, which enables seamless connectivity and data retrieval from IoT devices. This SDK supports both MQTT and HTTP communication methods.This SDK wraps the Device APIs available in theAnedya DocumentationThis is a Device SDK, i.e. it is meant to be used by an IoT device.InstallationTo install the Anedya SDK, you can usepip:pipinstallanedya-dev-sdk
Package: aneel
====Aneel====About=====Aneel is an editor-agnostic Markdown, reStructuredText and Textile live previewer.Once you save your file, the rendered HTML will automatically get reloadedin your favourite browser.The Original Version is moo_ . Aneel fork from moo ( `commit history`_ ), And add function ofreStructuredText live previewer... _moo: https://github.com/pyrocat101/moo.. _`commit history`: https://github.com/pyrocat101/moo/commits/876de66f792ac42df7dba2e1416fb7aeae8feeb2Installation============.. code:: bashpip install aneelRequirements============aneel requires* mistune_ (optional)* `python-textile`_ (optional)* `bottle.py`_* pygments_* docutils_* CherryPy_* docopt_.. _mistune: https://github.com/lepture/mistune.. _`python-textile`: https://github.com/sebix/python-textile.. _`bottle.py`: http://bottlepy.org/.. _pygments: http://pygments.org/.. _docutils: https://pypi.python.org/pypi/docutils.. _CherryPy: http://www.cherrypy.org/.. _docopt: https://github.com/docopt/docoptUsage=====Opens preview in browser with server listening on 3000::aneel --port 3000 your-doc.markdownExport to HTML only::aneel -o exported.html your-doc.markdownTo specify file type::aneel --filetype rst READMERESTful API===========+-------------------------+-------------+----------------------------------+-------------------------+| Action                  | HTTP Method | Request URL                      | Response Body           |+=========================+=============+==================================+=========================+| Get preview             | GET         | http://localhost:\<port\>        | \<Preview content\>     |+-------------------------+-------------+----------------------------------+-------------------------+| Get updated content     | POST        | http://localhost:\<port\>/update | \<Rendered body\>       |+-------------------------+-------------+----------------------------------+-------------------------+| Close server            | DELETE      | http://localhost:\<port\>        |                         |+-------------------------+-------------+----------------------------------+-------------------------+See `source files`_ for more details... _`source files`: https://github.com/hhatto/aneelLicense=======(The MIT License)Links=====* GitHub_* PyPI_.. _GitHub: https://github.com/hhatto/aneel.. _PyPI: https://pypi.python.org/pypi/aneel/
Package: aneki
AnekiRandom russian jokes (especially about computer and etc) from several sites in your terminalUsageInstallation:pip3 install anekiUsage:anekiTest is everything OK:aneki -tDependenciesProject tested on Python 3.5 - 3.8 for Ubuntu 16.04 - 18.04.Project have single dependency - "requests"SitesCurrently (11.01.2020) next sites are supported:bash.imanekdot.runekdo.rushytok.netNext sites won't be supported:anekdotov.net - not funny IMHOpikabu.ru, ithappens.me - too long stories
Package: anekos
anekosAn asynchronous wrapper for nekos.life APIFeaturesYou can download the images! (usingaiofile)Easy to use with an object-oriented design.Install# Linux/macOSpython3-mpipinstall-Uanekos# Windowspy-3-mpipinstall-UanekosTo install the development version, do the following:$gitclonehttps://github.com/Nekos-life/Async-nekos.life-wrapper.git$cdAsync-nekos.life-wrapper$python3-mpipinstall-U.Optional Packagesaiodns,brotlipy,cchardet(for aiohttp
speedup)orjson(for json speedup)Quick ExamplefromanekosimportNekosLifeClient,SFWImageTagsfromasyncioimportget_event_loopclient=NekosLifeClient()asyncdefmain():result=awaitclient.image(SFWImageTags.WALLPAPER)print(result.url)loop=get_event_loop()loop.run_until_complete(main())LinksIssues
Package: an-em-design
Electrical Machines Design Automation by Ansys Maxwell ScriptYouTube Vediohttps://youtu.be/uStT2k3V6x0GoalSetup a python api server, accept motor spec(stator Outer Diameter, DC bus voltage, max toruqe, max speed),
auto design, draw and run ansys analysis,
finally response result data(BEMF, cogging torque, max torque, torque ripple, induce voltage, efficiency)
(Now just 10p12s Surface PM design, It still working on...)RequirementsWindows 7 or aboveLegal Ansys Maxwell Electromagnetic SuitePython 3python 3.7.6Python librarypywin32==227ramda==0.5.5six==1.13.0functional-pipeline==0.3.1ipdb==0.12.3Flask==1.1.2Flask-Cors==3.0.8pandas==1.0.1numpy==1.18.1requests==2.24.0Environment Install Guide (Verified)Install Python 3.7.6(optional) Install virutal envpip install virtualenvoptional) create virutal envvirutalenv venv(optional) activate virutal env./venv/Scripts/activateInstalled needed library using the following commandpip install -r requirements.txtSPM Motor paramsall setting are in params/Execute Guideactive virtual env./venv/Scripts/activateexecutejust run analysis(params set at spec_params in run.py) - python run.pyrun flask api server and call ansys run and return result as response (POST method, json data sample in example/, url =http://localhost:5000/run_simu) - python server.pyrun flask api server, call but run ansys asyc in backgroud and return result use request to another url (POST method, json data sample in example/, url =http://localhost:5000/run_simu) - python server_run_back.py
Package: anenvconf
anenvconfA python3 module for defining a config schema and importing it from environment variables.Installpython3-mpipinstallanenvconfUsageImport the modules key classes, define the config schema and create a Config object with the schema.fromanenvconfimportConfig,ConfigValueTypeconfig_schema={'jsonvar1':{'type':ConfigValueType.JSON,'required_key':'important_key'},'stringvar1':{},'stringvar2':{'default':"Default value in case setting this variable is not mandatory"},'boolvar1':{'type':ConfigValueType.BOOL,'default':True}}config=Nonetry:config=Config(config_schema)exceptanenvconf.exceptions.InvalidValueExceptionase:print("Got an invalid value: ",e.text)exceptanenvconf.exceptions.EnvironmentVarMissingExceptionase:print("A required environment variable is missing: ",e.text)exceptanenvconf.exceptions.RequiredVarMissingExceptionase:print("A required value inside a variable is missing: ",e.text)ifconfigisnotNone:print(config.get_value("stringvar2"))SchemaThe schema is given as a dict, where the keys are the environment variables to read, and each of
their values is an another dict that defines details about how to handle that variable. The dict that
defines the handling can have the following keys:typeis the data type of the variable value, defined asConfigValueType. Supported types arestr(default),bool,intandjson.defaultis the default value of the variable. Ifdefaultis not set, the environment variable is treated
as mandatory. If you want to have optional variables, you can for example setdefaulttoNone.required_keydefines a key that is required in the keys of ajsontype of value. If the key is not found, an exception is raised.Example:example_config_schema={# Use "type" to define ConfigValueType, string is assumed by default.'env_variable_name1':{'type':ConfigValueType.JSON},# Default data type is string'env_variable_name2':{},# If default value exists, value from environment variable is not required.# Otherwise the key-value pair is expected to be found in the env variables.'env_variable_name3':{'type':ConfigValueType.JSON,'default':'{}'}}
Package: aneris
anerisAneris is the __goddess__ of order and non_being.aneris.py is intended to bring order and ultimately non_being to your work load.Configure your team’s available work hours in the dict defined in aneris_workers.pyRun anerisIn the ncurses tui:Add your projects and their deadlines.When highlighting a project, add tasks and the number of hour’s work remaining to complete them.Edit your team’s avaliable work hours to account for deviations from their default calendars.Project completion dates are calculated.Any deadlines that you’re on course for missing are highlighted.Remedial action can then be taken early to add more available hours, remove tasks or re-order projects.In the tui, press ‘h’ or ‘?’ to see a list of control keys.InstallationTo install:pip3 install anerisWindows users:
A rudimentary binary installer is included for you in case you find it useful. However, as Aneris uses curses (and the python curses library is unix only) this will not work “out of the box”.
Aneris DOES however run very nicely under cygwin…ChangelogFixed in version 0.6 - (Beta)IMPROVEMENT:Move project cursor when changing project priority, so for example, pressing plus twice moves the same project up 2.Fixed in version 0.5 - (Beta)BUGFIX:Fixed exception thrown on save under some circumstances:
for day in self.m_worker_calendar_exceptions.keys():
RuntimeError: dictionary changed size during iterationTASK:Added top level executable script (installed as /usr/local/bin/aneris)Fixed in version 0.4 = (Beta)First (just about) usable release.TODOAdd editor for default calendars. Currently, upgrading aneris overwrites default calenders…Unfortunately it is likely to be a while before this issue gets resolved as although annoying, it’s not really blocking me. If lots of people moan, I might bother sooner.
Package: anes
# What?The scripts here transform the [ANES data](http://www.electionstudies.org/studypages/download/datacenter_all_NoData.php) into something fit for my consumption (i.e. not STATA). There are codebook generators and ELT tools.# Why?The ANES data is semi-open, as is typical in academia. There is a registration process, and – I assume – not everyone gets admitted backstage. Your.eduis probably your pass. Therefore, I can’t provide any data in this repository. I can only provide the scripts.
Package: anet-tools
anet-toolsInstallconda create -n anet python=3.7 -y
source activate anet
conda install pytorch==1.4.0 torchvision cudatoolkit=10.1 -c pytorch -y
conda install -c conda-forge opencv -y
cd anet_tools/features/flownet2/networks/correlation_package
rm -rf *_cuda.egg-info build dist __pycache__
python setup.py install --user
cd ../resample2d_package
rm -rf *_cuda.egg-info build dist __pycache__
python setup.py install --user
cd ../channelnorm_package
rm -rf *_cuda.egg-info build dist __pycache__
python setup.py install --user
cd ../../../../../
pip install -e .
Package: an_example_pypi_project
This is just a demonstration vehicle used to take you through the process
– start to finish – of creating a Python project that can be:Uploaded toDistributed fromandDocumented onthe Python Package Index (aka pypi or the cheeseshop) athttp://pypi.python.org/pypi.
This project uses setuptools, sphinx, and the Sphinx-PyPI-upload
(http://pypi.python.org/pypi/Sphinx-PyPI-upload/0.2.1).This demonstration is not meant to be complete nor authoritative. It’s just a
recording of the steps I took to get some projects onto pypi and
hopefully it might save someone some time from googling around.  To be sure,
this is simply justoneway to make a project, document it, and get it
on pypi.NOTE: This was originally given as a talk to the Minnesota Python Users Grouphttp://groups.google.com/group/pymntos/and was developed for a
spoken presentation format.