Saravanan666/pypi-org huggingface dataset:
Package: onegramcoin
# Python Library for BitShares![](https://img.shields.io/pypi/v/bitshares.svg?style=for-the-badge)
![](https://img.shields.io/github/release/xeroc/python-bitshares.svg?style=for-the-badge)
![](https://img.shields.io/github/downloads/xeroc/python-bitshares/total.svg?style=for-the-badge)
![](https://img.shields.io/pypi/pyversions/bitshares.svg?style=for-the-badge)
![](https://img.shields.io/pypi/l/bitshares.svg?style=for-the-badge)Stable[![docs master](https://readthedocs.org/projects/python-bitshares/badge/?version=latest)](http://python-bitshares.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/xeroc/python-bitshares.png?branch=master)](https://travis-ci.org/xeroc/python-bitshares)
[![codecov](https://codecov.io/gh/xeroc/python-bitshares/branch/master/graph/badge.svg)](https://codecov.io/gh/xeroc/python-bitshares)Develop[![docs develop](https://readthedocs.org/projects/python-bitshares/badge/?version=develop)](http://python-bitshares.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/xeroc/python-bitshares.png?branch=develop)](https://travis-ci.org/xeroc/python-bitshares)
[![codecov develop](https://codecov.io/gh/xeroc/python-bitshares/branch/develop/graph/badge.svg)](https://codecov.io/gh/xeroc/python-bitshares)—## DocumentationVisit the [pybitshares website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.## Installation### Install with pip3:` $ sudoapt-getinstalllibffi-devlibssl-devpython-devpython3-devpython3-pip$ pip3 install bitshares `### Manual installation:` $ git clonehttps://github.com/xeroc/python-bitshares/$ cdpython-bitshares$ python3 setup.py install--user`### Upgrade` $ pip3 install--user--upgrade`
Package: onegramlib
Python 3 library for OneGram!InstallationInstall withpip:$ sudo apt-get install libffi-dev libssl-dev python-dev
$ pip3 install onegramlibManual installation:$ git clonegit@gitlab.com:onegram-developers/python-onegramlib.git
$ cd python-onegramlib
$ python3 setup.py install –userDependenciesSome dependencies are not required for parts of the library to run
properly. However these modules require some additional libraries to be
present:graphenebase.bip38pycrypto==2.6.1scrypt==0.7.1(to speedup scrypt hashing)graphenebase.memopycrypto==2.6.1Upgrade$ pip install –user –upgrade onegramlibDocumentationThanks to readthedocs.io, the documentation can be viewed
[online](http://python-graphenelib.readthedocs.io/en/latest/)Documentation is written with the help of sphinx and can be compile to
html with:cd docs
make htmlLicenceMIT, seeLICENCE.txt
Package: one-home-sensor
One Home SensorThis peace of software reads temperature, pressure and humidity from a BME280 sensor. It then pushes the result to a MongoDB data-base (MongoDB Atlas form my part).UsageMy setup is as followed :+-------------+
  | RaspberryPI |    +-------------+    +-------------+ 
  |             |    |  MongoDB    |    |  Phone /    |
  |  one_home_  +--->|  Atlas      +--->|  WebBrowser |
  |     sensor  |    +-------------+    +-------------+
  +-------------+I periodically run it (throught systemd) to store the values.Integration / InstalationThis programe is created and only used/tested/supported in python3. These commande should solve all dificulties.sudo apt-get update
sudo apt-get install python3-setuptools python3-pip i2c-toolsCreate cluster on MongoDB AtlasCreate connection autorization and userCreate configuration file (see next section)Enable  I2C in raspi-config (5 then P5).Add user to group "i2c" (sudo usermod -a -G i2c leadthesalt)Finaly the module is installed with pip3.pip3 install one-home-sensorFor my part I install the programe with an Ansible rôle. Sure I could create a debian package, but I only use it on my Raspbery Pi that are already managed throught Ansible.Configuration file[MongoDBAtlasConnection]
username = # username set for MongoDB
password = # password set for MongoDB
clusterfqdn = # fqdn to MongoDB server 

[Correction]
temp=-1Documentationshttps://github.com/pimoroni/bme280-pythonhttps://github.com/pimoroni/skywriter-hat/issues/4https://learn.pimoroni.com/related-products/adafruit-mpl3115a2-i2c-barometric-pressure-altitude-temperature-sensorhttps://docs.mongodb.com/
Package: onehot
onehot.OneHotDummyOne-Hot encoder with sklearn-ish API interface that process mixed string and numeric labels directly.onehot.OneHotDummydoes basically the same asLabelEncoderandOneHotEncodercombined. It is also inspired bypandas.get_dummiesand in particular its ease of use.Table of ContentsInstallationUsageCommandsSupportContributingInstallationTheonehotgit repois available asPyPi packagepip install onehotUsageCheck theexamplesfolder for notebooks.CommandsCheck syntax:flake8 --ignore=F401Remove.pycfiles:find . -type f -name "*.pyc" | xargs rmRemove__pycache__folders:find . -type d -name "__pycache__" | xargs rm -rfUpload to PyPi:python setup.py sdist upload -r pypiUpload to PyPi with twine:python setup.py sdist && twine upload -r pypi dist/*DebuggingNotebooks to profile python code are in theprofilefolderSupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
Package: onehot2seq
Descriptiononehot2seqis a command-line tool decoding a one-hot numpy array to DNA/RNA/protein sequences.To encode sequences to a one-hot numpy array, useseq2onehot.https://github.com/akikuno/seq2onehotInstallationYou can installonehot2sequsing pip:pipinstallonehot2seqUsageonehot2seq[options]-t/--type<dna/rna/protein>-i/--input<in.npy>-o/--output<out.txt/fasta>Options-a/--ambiguous:includeambiguouscharacters
-f/--format<txt/fasta>:outputasaFASTAformat(default:txt)The ambigous characters are:XBZJfor amino acidNVHDBMRWSYKfor DNA and RNAThe detail of ambiguous characters is described here:https://meme-suite.org/meme/doc/alphabets.htmlThe header IDs of FASTA format are sequential numbers (e.g.>seq1,>seq2)Examples# Output DNA sequencesonehot2seq-tdna-iexample/dna.npy-odna.txt# Output DNA sequences as a FASTA formatonehot2seq-tdna-ffasta-iexample/dna.npy-odna.fasta# RNA sequencesonehot2seq-trna-iexample/rna.npy-orna.txt# Protein sequencesonehot2seq-tprotein-iexample/protein.npy-oprotein.txtOne-hot arrayThe input file must contain 3d one-hot array ofRxNxL(Read x Nucreotide/Amino acid x Letter)The order of nucreotide isACGT(+NVHDBMRWSYK) for DNA,ACGU(+NVHDBMRWSYK) for RNAThe order of amino acid isACDEFGHIKLMNPQRSTVWY(+XBZJ)
Package: oneID-cli
Neustar Trusted Device identity (TDI) CLIAboutThis tool allows you to interact with your Neustar Trusted Device Identity (TDI) deployment from your terminal.
It can be used to create Projects, provision Devices and Servers, and more. This is an open source tool.
We welcome developer input and contributions to continuously improve the Command Line tool and service the community.Please report bugs and feature requests through the Issues tab. To contact the TDI team, please emailHelpIoT@neustar.biz.LicenseThis project is licensed under the Apache License Version 2.0. For full details, seeLICENSE.Using TDI CLIInstall TDI Command Line Interfacepip install oneid-cliConfigure your computer (requires your TDI UUID & Secret Key)oneid-cli configureCreate a new Projectoneid-cli create-project --name "My New Project"List all your Projectsoneid-cli list-projectsList details for a Projectoneid-cli list-projects --project <project-uuid>Provision a new IoT Deviceoneid-cli provision --type edge_device --name "My IoT Device" --project <project-uuid>Provision a new Serveroneid-cli provision --type server --name "My Server" --project <project-uuid>To send messages between devices and servers, useoneid-connect, available athttp://oneid-connect.readthedocs.org/en/latest/
Package: oneID-connect
Neustar Trusted Device Identity (TDI)Neustar TDI (formerly oneID-connect) is an authentication framework for the Internet of Things (IoT),
servers and end-users. By sending messages with digital signatures, you can authenticate
the origin of the message and ensure the message hasn’t been tampered with.
Neustar TDI makes it simple for projects that need to securely send messages and verify
the authentication of messages.For more information, please visit the docs.http://oneid-connect.readthedocs.org/en/latest/Building the API Docs LocallyThis project uses Sphinx to create documentation. Following these instructions builds the docs locally and outputs them to./docs/_build/html.
You may not need a python virtual environment if python is installed universally on your machine.Create a virtualenv.To install dependencies, runpip install-rrequirements.txt-rdocs_requirements.txtto install all dependencies defined in the repo. This should install sphinx, sphinx_rtd_theme, and more.From the project dir, runsphinx-build-bhtml ./docs ./docs/_buildOR from ./docs, runmake htmlRunmake cleanfrom ./docs to remove the build.
Package: oneidentity-safeguard-sessions-plugin-sdk
One Identity Safeguard for Privileged Sessions Plugin Software Development KitThe One Identity Safeguard for Privileged Sessions Plugin Software Development Kit (Plugin SDK) provides base classes
and services to enable rapid development of Python 3 plugins for the Safeguard for Privileged Sessions product.
The Plugin SDK helps implement the requirements stated in the documentsCreating custom Authentication and Authorization plugins developer’s guide,Creating custom Credential Store plugins developer’s guide.The documents above are part of theOne Identity technical documentation.The documentation for the SDK can be found here:One Identity Safeguard Sessions Plugin SDK DocumentationAbout usOne Identity solutions eliminate the complexities and time-consuming processes often required to govern identities,
manage privileged accounts and control access. Our solutions enhance business agility while addressing your IAM
challenges with on-premises, cloud and hybrid environments.Contacting usFor sales or other inquiries, visithttps://www.oneidentity.com/company/contact-us.aspxor call +1-800-306-9329.Technical support resourcesTechnical support is available to One Identity customers with a valid maintenance contract and customers who have trial
versions. You can access the Support Portal athttps://support.oneidentity.com/.The Support Portal provides self-help tools you can use to solve problems quickly and independently, 24 hours a day,
365 days a year. The Support Portal enables you to:Submit and manage a Service RequestView Knowledge Base articlesSign up for product notificationsDownload software and technical documentationView how-to-videos atwww.YouTube.com/OneIdentityEngage in community discussionsChat with support engineers onlineView services to assist you with your product
Package: oneimage
oneimageA simple python lib to create poster image with define data.Install oneimagepip install oneimageUsagedata={'width':300,'height':300,'background':'white','elements':[{'type':'image','url':'http://www.inruan.com/static/img/logo.png','left':0,'top':0,'width':100,'height':100},{'type':'image','url':'http://www.inruan.com/static/img/logo.png','left':200,'top':200,'width':100,'height':100},{'type':'text','text':'Hello','font':'https://cdn-qn.huaeb.com/ifarm/20200305/WeiRuanYaHei-1.ttf','left':0,'top':100,'width':300,'size':20,'height':100,'align':'center','vertical':'center','color':'black'}]}fromoneimageimportcreate_imageimg=create_image(data=data)img.show()The result:Click to view more information!CHANGES1.0.0first version
Package: onekey_client
ONEKEY API ClientThis is the official Python client for theONEKEYpublic API. This package provides both a cli and a python library.InstallationThe client is available athttps://github.com/onekey-sec/python-clientor can be installed as a python package:pip install onekey-clientCLI UsageThe client can be used with the onekey command and offers multiple subcommands:Usage: onekey [OPTIONS] COMMAND [ARGS]...

Options:
  --api-url TEXT        ONEKEY platform API endpoint  [default:
                        https://app.eu.onekey.com/api]
  --disable-tls-verify  Disable verifying server certificate, use only for
                        testing
  --email TEXT          Email to authenticate on the ONEKEY platform
  --password TEXT       Password to authenticate on the ONEKEY platform
  --tenant TEXT         Tenant name on ONEKEY platform
  --token TEXT          API token to authenticate on the ONEKEY platform
  --help                Show this message and exit.

Commands:
  ci-result         Fetch analysis results for CI
  get-tenant-token  Get tenant specific Bearer token
  list-tenants      List available tenants
  upload-firmware   Uploads a firmware to the ONEKEY platformTo use the ONEKEY platform a valid email & password need to be supplied along with specifying the tenant name to be
used. (SSO authentication is currently not supported.) Preferred alternative is to use a dedicated API token based
authentication, API tokens can be generated on the ONEKEY platform.The required parameters can be supplied through command line arguments or using environment variables prefixed withONEKEY_, such as the following two are identical:onekey --email "<email>" --tenant "<tenant-name>" --password "<password>" get-tenant-tokenONEKEY_EMAIL="<email>" ONEKEY_TENANT_NAME="<tenant-name>" ONEKEY_PASSWORD="<password>" onekey get-tenant-tokenEnvironment variables and command line arguments can be also mixed. Using environment variables is useful when the
client is used from CI/CD jobs/tasks.API UsageFirst, you have to log in and select a tenant:fromonekey_clientimportClientYOUR_API_URL="https://app.eu.onekey.com/api"client=Client(api_url=YOUR_API_URL)client.login(EMAIL,PASSWORD)tenant=client.get_tenant("Environment name")client.use_tenant(tenant)Or use an API Token:fromonekey_clientimportClientYOUR_API_URL="https://app.eu.onekey.com/api"client=Client(api_url=YOUR_API_URL)client.use_token(API_TOKEN)After you logged in and selected the tenant, you can query the GraphQL APIGET_ALL_FIRMWARES="""query {allFirmwares {idname}}"""res=client.query(GET_ALL_FIRMWARES)print(res)GET_PRODUCT_GROUPS="""query {allProductGroups {idname}}"""res=client.query(GET_PRODUCT_GROUPS)default_product_group=next(pgforpginres["allProductGroups"]ifpg["name"]=="Default")You can upload firmwares:metadata=FirmwareMetadata(name="myFirmware",vendor_name="myVendor",product_name="myProduct",product_group_id=default_product_group["id"],)firmware_path=Path("/path/to/firmware.bin")res=client.upload_firmware(metadata,firmware_path,enable_monitoring=True)print(res)SupportYou can create anew issue in this repoor contact us atsupport@onekey.com.
Package: onelearn
onelearn: Online learning in PythonDocumentation|Reproduce experiments|onelearn stands for ONE-shot LEARNning. It is a small python package foronline learningwith Python. It provides :online(orone-shot) learning algorithms: each sample is processedonce, only a
single pass is performed on the dataincludingmulti-class classificationand regression algorithmsFor now, onlyensemblemethods, namelyRandom ForestsInstallationThe easiest way to install onelearn is using pippip install onelearnBut you can also use the latest development from github directly withpip install git+https://github.com/onelearn/onelearn.gitReferences@article{mourtada2019amf,
  title={AMF: Aggregated Mondrian Forests for Online Learning},
  author={Mourtada, Jaouad and Ga{\"\i}ffas, St{\'e}phane and Scornet, Erwan},
  journal={arXiv preprint arXiv:1906.10529},
  year={2019}
}
Package: one-line
oneLineMake every step oneLine.What is it?It's a personal code set for learning and researching on Data Science and Machine Learning. It contains advanced encapsulation of some libraries, designing to provide a simpler mode of operation and help people to simplify their codes concisely.This library is a collection of code used for learning and analysis, and the content is not perfect for the time being.InstallationYou can install this module with command below:pip install one-lineHow to use it?Import module and dataset:# import OneData, an extended DataFramefromonelineimportOneData# input the data with address, and the format will be set automaticallydata=OneData('test.csv')You can also import data using Pandas:importpandasaspdfromonelineimportOneDatatemp=pd.read_csv('test.csv')# a DataFrame type data is also acceptabledata=OneData(temp)More example see alsotest/test_EDA.py.
Package: onelinerise
OneLineriserOne-line your code easily but still with the fun of doing so!Have YOU ever wanted to write one-line Python code, but don't have the sanity to do it?
Do YOU want to write one-line code YOURSELF and not be a script kiddie or do ctrl-c ctrl-v?Well not to worry, because I am here to remove your braincells for you!
Introducing... :tada:TheOneLineriserheh say that ten times real quickHow to useInstallationYou can install this as a package by runningpip install onelineriseAlternatively, install the master branch atpip install git+https://github.com/Jus-Codin/OneLineriseUsagefromonelineriserimportOneLineriseOneLinerise(globals()).print("test").literal(10).returned.bit_length().RET_OBJ.save_last_as("bruh").print_last.print(bruh)# Output>>>test>>>4>>>4Why should you use thisWell... you really shouldn't. Truth be told I just randomly came up with this idea and made it, and it really isn't the best implementation.
There definitely is a better way to do this, but I currently probably don't have the skills to do itMore reasons not to useNo type hinting yetInefficient codeNot fully implementedBruh it's unreadable man don't even try putting this in your projectsSidenoteI will try to come back to this, in fact I have a few ideas in mind:Implement If-loops, For-loops, While-loops and suchBetter documentationImproved implementationCustomisable settings? Maybe?And maybe even moreIf you do have suggestions or want to contribute, do feel free to open an issue or pull request. As this repo is informal, I'm not putting guidelines and stuff for this project, all just default barebones settings
Package: oneliners
A collection of one-liner jokes (in English) scraped from various places in the Internet.Usagefrom oneliners import get_random
j = get_random()wherecategoryis one of'chuck','pyjokes_en','unsorted'orNone(which means the union of all).LicenseThe code is licensed as MIT.The jokes in the data files were scraped from various random places in the Internet. Some of them may be subject to copyright (which ones in particular, is, however, nearly impossible to determine, and most may probably be considered “folklore”). In any case, beware if you plan to display them publicly. Also beware that the “unsorted” collection is, indeed, completely unedited, and may contain adult, offensive or simply bad jokes.See also:pyjokesICNDBhttps://www.reddit.com/r/oneliners/https://www.oneliners-and-proverbs.com/https://onelinefun.com/
Package: onelinevalidation
onelinevalidationNow the validation is easy. 😎onelinevalidation It is a simple library in the Python language that performs validation in an easy and simple way.Support MeInstallationFrom PyPipython pip install onelinevalidationExamples of how to usefromonelinevalidationimportvalidate_formuserData={"username":"amr123","email":"amr.@aol.com","password":"123Ab#"}print(validate_form(userData))Result{'error': {'username': 'Invalid username should be like this abc_123 or abc. abc', 'email': 'This email address is not valid', 'password': 'The password length must be at least 8 uppercase, lowercase letters, numbers, symbols like @aA123#*'}
}Create custom validateIf you want more control use custom_validatefromonelinevalidationimportcustom_validatepattrens=["[a-zA-Z]+[_.]+[a-zA-Z0-9]+","[a-zA-Z0-9_-]+[@](aol|gmail|yahoo|outlook)+(.com)+","^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$"]messages=["Invalid username should be like this abc_123 or abc. abc","This email address is not valid","The password length must be at least 8 uppercase, lowercase letters, numbers, symbols like @aA123#*"]print(custom_validate(userData,pattrens,messages))Result{'good': {'username': 'amr_123', 'email': 'amr@aol.com', 'password': '123---Ab#'}}Do you not prefer dealing with the regex 🙃?Now in the new version 🥳🎉, you can perform validation using callback functions. From thevalidatorslibraryfromonelinevalidationimportvalidate_data_with_callbacksimportvalidatorsuser_data={'btc':'00000000000000000000000','amount':0.5,'md5':'0000'}messages=['Invalid btc address','The minimum value must be at least $1.','Invalid md5 value']fromfunctoolsimportpartialcallbacks=[validators.btc_address,{'func':partial(validators.between,min_val=1,max_val=100)},validators.md5]result=validate_data_with_callbacks(user_data,callbacks,messages)print(result)Result{'errors': {'btc': 'Invalid btc address', 'amount': 'The minimum value must be at least $1.', 'md5': 'Invalid md5 value'}}fromonelinevalidationimportvalidate_data_with_callbacksimportvalidatorsuser_data={'btc':'3Cwgr2g7vsi1bXDUkpEnVoRLA9w4FZfC69','amount':1,'md5':'d41d8cd98f00b204e9800998ecf8427e'}messages=['Invalid btc address','The minimum value must be at least $1.','Invalid md5 value']fromfunctoolsimportpartialcallbacks=[validators.btc_address,{'func':partial(validators.between,min_val=1,max_val=100)},validators.md5]result=validate_data_with_callbacks(user_data,callbacks,messages)print(result)Result{'good': {'btc': '3Cwgr2g7vsi1bXDUkpEnVoRLA9w4FZfC69', 'amount': 1, 'md5': 'd41d8cd98f00b204e9800998ecf8427e'}}NoteIn defaultsanitize = Trueinvalidate_formand other functions This is to prevent a Cross-site Scripting vulnerabilityFor more info :https://owasp.org/www-community/attacks/xss/I want to thankGemini🙂❤ because he helped me develop this library.Creditsvalidators library:https://pypi.org/project/validators/The validators library was used to validate the input data in the onelinevalidation library.Linksvalidators website:https://validators.readthedocs.io/en/latest/
Package: onelongcyclelr
OneLongCycleLRThis is a simple adaptation from the OneCycleLR of pytorch.optim package.
The default behaviour is to raise a ValueError when the maximum number of steps is reached. This one instead just keeps on returning the last value.To install it, just use:pip install onelongcyclelrAnd to use it you need to import it likefrom onelongcyclelr import OneLongCycleLRThe arguments and keywords needed are exactly the same as the official implementation.
Package: onem2m
oneM2M Application Entity Node Client Library
Python 3.6 testedoneM2M.conf
[DEFAULT]
oneM2M_scl_base_url=http://13.125.35.229:8080/~/paas-in-13-125-35-229/base
oneM2M_scl_base_origin=paas-in-13-125-35-229
oneM2M_poa_url=from onem2m import AE, Constantcli = AE.ClientLib()arg = {Constant.CONST.ADN.ID:’S111115’, Constant.CONST.ADN.NAME:’S111115’, Constant.CONST.CHECK.URI:”S111115”,Constant.CONST.SENSOR.ID:’111111’, Constant.CONST.SENSOR.NAME:’Temp’, Constant.CONST.SENSOR.HISTORY:11}arg1 = {Constant.CONST.ADN.ID:’S111115’, Constant.CONST.SENSOR.ID:’111111’,Constant.CONST.SENSOR.NAME:’Temp’,Constant.CONST.SENSING.NAME:’R1’,Constant.CONST.SENSING.VALUE:32}arg2 = {Constant.CONST.ADN.ID:’S111115’,Constant.CONST.ID:’111111’}print(cli.checkDuplicated(arg))print(cli.createADN(arg))print(cli.registrySensor(arg))print(cli.sendSensingReport(arg1))print(cli.getLastValue(arg2))print(cli.getValues(arg2))print(cli.getADNAll())