Saravanan666/pypi-org huggingface dataset:
Package: python-bingx
Python-BingXPython-bingx is a powerful and flexible Python package that allows you to easily interact with the BingX API. The package currently supports the Spot API, Standard API, Perpetual Swap API Reference V1, and Perpetual Swap API Reference V2. With python-bingx, you can retrieve real-time market data, manage your account, place trades, and more...InstallationTo install python-bingx, you can use pip:pipinstallpython-bingxUsageThere are multiple ways to use python-bingx, depending on your needs and preferences.Using BingXThe most straightforward way to use python-bingx is by importing theBingXclass and initializing it with your API key and secret key:frombingXimportBingXbingx_client=BingX(api_key="api_key",secret_key="secret_key")Once you have initialized the client, you can call any of the available APIs, for example:# Call the Trade API of Perpetual V2bingx_client.perpetual_v2.trade.trade_order()Using PerpetualV2If you prefer to work with a specific API or version, you can import the relevant class and initialize it with your API key and secret key:frombingX.perpetual.v2importPerpetualV2bingx_client=PerpetualV2(api_key="api_key",secret_key="secret_key")Once you have initialized the client, you can call any of the available APIs, for example:# Call the Trade API of Perpetual V2bingx_client.trade.trade_order()Handling ResponsesPython-bingx uses requests library to communicate with the API and returns the response in JSON format. You can easily handle the response by accessing the relevant key(s) in the dictionary, for example:# Get the symbol and last price of BTC/USDTresponse=bingx_client.perpetual_v2.market.get_ticker("BTC-USDT")symbol=response["symbol"]last_price=response["lastPrice"]Error HandlingIn case of errors or exceptions, python-bingx will raise relevant exceptions with error message and error code. You can catch and handle the exceptions accordingly, for example:frombingXimportClientError,ServerErrortry:response=bingx_client.perpetual_v2.trade.create_order()except(ClientError,ServerError)ase:error_code=e.error_codeerror_message=e.error_messageContributingPython-bingx welcomes contributions from the community! If you'd like to contribute, please fork the repository, create a feature branch, make your changes, and submit a pull request. Before submitting, please ensure that your code follows the PEP 8 style guide and includes appropriate tests.LicensePython-bingx is licensed under the MIT License. See the LICENSE file for more information.
Package: python-bioformats
Python-bioformats is a Python wrapper for Bio-Formats, a standalone Java library for readingand writing life sciences image file formats. Bio-Formats is capable of parsing both pixels and metadata for a
large number of formats, as well as writing to several formats. Python-bioformats uses the python-javabridge to
start a Java virtual machine from Python and interact with it. Python-bioformats was developed for and is used by
the cell image analysis software CellProfiler (cellprofiler.org).  While we are gratified that others
outside the CellProfiler team find it useful, we maintain python-bioformats essentially for the CellProfiler project
andcannot currently guarantee support for other users.Please consider visiting our forum at forum.image.sc for
additional support help.
Package: python-bitcoinaddress
python-bitcoinadress====================Bitcoin address validation2012-12-14 R.R. Nederhoedhttps://github.com/nederhoed/python-bitcoinadressPlease give feedback.Original author probably:http://paddy3118.blogspot.nl/2012/11/some-identities-for-python-inttobytes.htmlCopied from:http://rosettacode.org/wiki/Bitcoin/address_validation#PythonI packaged it to be available to everyone via The Cheese Shop (pypi):http://pypi.python.org/pypi/python-bitcoinaddressIf you use this module, support me with bitcoins! Any amount is appreciated.`1qYsJbtEWAeXMsbgxUgGsJsAp3VArsBRd`History-------### 2013-08-12* Invalidate addresses with non-base58 charactersLeading or trailing spaces will invalidate your address. Strip them beforevalidating the address.### 2012-12-14* Renamed the `check_bc` function to `validate` for ease of use.* Added check if the base58-re-encoded address matches the original addressRelevant for short addresses with a valid check, but invalid format.For example:  `14oLvT2`The valid version of that address is: `1111111111111111111114oLvT2`* Added alternatives for `long.to_bytes` and `long.from_bytes` for Pythonversions prior to 3.2* Added unit tests
Package: python-bitcoinrpc
AuthServiceProxy is an improved version of python-jsonrpc.It includes the following generic improvements:HTTP connections persist for the life of the AuthServiceProxy objectsends protocol ‘version’, per JSON-RPC 1.1sends proper, incrementing ‘id’uses standard Python json libcan optionally log all RPC calls and resultsJSON-2.0 batch supportIt also includes the following bitcoin-specific details:sends Basic HTTP authentication headersparses all JSON numbers that look like floats as Decimal,
and serializes Decimal values to JSON-RPC connections.Installationchange the first line of setup.py to point to the directory of your installation of python 2.*run setup.pyNote: This will only install bitcoinrpc. If you also want to install jsonrpc to preserve
backwards compatibility, you have to replace ‘bitcoinrpc’ with ‘jsonrpc’ in setup.py and run it again.Or simply install the library using pip:pip install python-bitcoinrpcExamplefrombitcoinrpc.authproxyimportAuthServiceProxy,JSONRPCException# rpc_user and rpc_password are set in the bitcoin.conf filerpc_connection=AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user,rpc_password))best_block_hash=rpc_connection.getbestblockhash()print(rpc_connection.getblock(best_block_hash))# batch support : print timestamps of blocks 0 to 99 in 2 RPC round-trips:commands=[["getblockhash",height]forheightinrange(100)]block_hashes=rpc_connection.batch_(commands)blocks=rpc_connection.batch_([["getblock",h]forhinblock_hashes])block_times=[block["time"]forblockinblocks]print(block_times)Logging all RPC calls to stderrfrombitcoinrpc.authproxyimportAuthServiceProxy,JSONRPCExceptionimportlogginglogging.basicConfig()logging.getLogger("BitcoinRPC").setLevel(logging.DEBUG)rpc_connection=AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user,rpc_password))print(rpc_connection.getinfo())Produces output on stderr likeDEBUG:BitcoinRPC:-1-> getinfo []
DEBUG:BitcoinRPC:<-1- {“connections”: 8, …etc }
Package: python-bitcoinrpc-async
python-bitcoinrpc-asyncpython-bitcoinrpc-async adds asyncronous functionality to the AuthServiceProxy. It includes asyncio compatible methods for making and handling requests, making it easy to integrate into your codebase. With python-bitcoin-rpc you can now take advantage of the benefits of asynchronous programming, using the modernasyncandawaitsyntax.AuthServiceProxyAuthServiceProxy is an asyncio compatible version of python-bitcoinrpc.It includes the following features:Asynchronous context manager for performing asyncronous HTTP requestsHTTP connections persist for the life of the AuthServiceProxy objectsends protocol 'version', per JSON-RPC 1.1sends proper, incrementing 'id'uses standard Python json libcan optionally log all RPC calls and resultsJSON-2.0 batch supportIt also includes the following bitcoin-specific details:sends Basic HTTP authentication headersparses all JSON numbers that look like floats as Decimal, and serializes Decimal values to JSON-RPC connections.Installationpip install python-bitcoinrpc-asyncExamplefrombitcoinrpcasyncimportAuthServiceProxy,JSONRPCExceptionimportasyncioasyncdefmain():asyncwithAuthServiceProxy(f"http://{rpc_user}:{rpc_password}@127.0.0.1:8332")asrpc_connection:best_block_hash=awaitrpc_connection.getbestblockhash()print(best_block_hash)loop=asyncio.get_event_loop()loop.run_until_complete(main())Batch supportfrombitcoinrpcasyncimportAuthServiceProxy,JSONRPCExceptionimportasyncioasyncdefmain():asyncwithAuthServiceProxy(f"http://{rpc_user}:{rpc_password}@127.0.0.1:8332")asrpc_connection:commands=[["getblockhash",height]forheightinrange(100)]block_hashes=awaitrpc_connection.batch_(commands)blocks=awaitrpc_connection.batch_([["getblock",h]forhinblock_hashes])block_times=[block["time"]forblockinblocks]print(block_times)loop=asyncio.get_event_loop()loop.run_until_complete(main())Logging all RPC calls to stderrfrombitcoinrpcasyncimportAuthServiceProxy,JSONRPCExceptionimportloggingimportasynciologging.basicConfig()logging.getLogger("BitcoinRPC").setLevel(logging.DEBUG)asyncdefmain():asyncwithAuthServiceProxy(f"http://{rpc_user}:{rpc_password}@127.0.0.1:8332")asrpc_connection:info=awaitrpc_connection.getinfo()print(info)loop=asyncio.get_event_loop()loop.run_until_complete(main())Produces output on stderr likeDEBUG:BitcoinRPC:-1-> getinfo []
DEBUG:BitcoinRPC:<-1- {"connections": 8, ...etc }Socket timeouts under heavy loadPass the timeout argument to prevent "socket timed out" exceptions:AuthServiceProxy(f"http://{rpc_user}:{rpc_password}@127.0.0.1:8332",timeout=120)SSL/TLS connectionsTo set up a SSL/TLS connection pass assl.SSLContextobject into the ssl_context default parameter of theAuthServiceProxy:AuthServiceProxy(f"http://{rpc_user}:{rpc_password}@127.0.0.1:8332",ssl_context=ssl.create_default_context())
Package: python-bitget
Python bitget API Librarybitgetis a cryptocurrency derivatives exchange.This is a wrapper around the Bitget API as described on Bitget, including all features the API provides using clear and readable objects, both for the REST  as the websocket API.I am in no way affiliated with Bitget, use at your own risk.If you think something is broken, something is missing or have any questions, please open anIssueGet Started and DocumentationIf you're new to Bitget, use the following link tosave 10% on all of your trade fees, and can get rewards up to $5005.Register an account with Bitget.Generate an API Key and assign relevant permissions.Bitget API docsExample Bitget rest APIExample Bitget websocket APIInstallpip install python-bitgetUsageChange your API KEY and your SECRET KEY.Restful Api Sample CodefrompybitgetimportClientapi_key="your-api-key"api_secret="your-secret-key"api_passphrase="your-api-passphrase"client=Client(api_key,api_secret,passphrase=api_passphrase)result=client.mix_get_accounts(productType='UMCBL')print(result)Websocket Sample Codefrompybitget.streamimportBitgetWsClient,SubscribeReq,handel_errorfrompybitget.enumsimport*frompybitgetimportloggerapi_key="your-api-key"api_secret="your-secret-key"api_passphrase="your-api-passphrase"defon_message(message):logger.info(message)# Auth subscribeclient=BitgetWsClient(api_key=api_key,api_secret=api_secret,passphrase=api_passphrase,verbose=True)\.error_listener(handel_error)\.build()# multi subscribe  - Public Channelschannels=[SubscribeReq("mc","ticker","BTCUSD"),SubscribeReq("SP","candle1W","BTCUSDT")]client.subscribe(channels,on_message)# single subscribe -     # multi subscribe  Public Channelschannels=[SubscribeReq("mc","ticker","BTCUSD")]client.subscribe(channels,on_message)# single subscribe - Order Channel - Private Channelschannels=[SubscribeReq(WS_CHANNEL_INSTTYPE,WS_PRIVATE_ORDERS_CHANNEL,WS_CHANNEL_INSTID)]client.subscribe(channels,on_message)Donate / SponsorI develop and maintain this package on my own for free in my spare time.
Donations are greatly appreciated. If you prefer to donate any other currency please contact me.BTC:19rvFC79eVoCMHxJ44hB3GLhiD2HHsMJoZBTC:0xab4686635a02dff0babedddfee813d325f56cfb8(BEP20)USDT:0xab4686635a02dff0babedddfee813d325f56cfb8(BEP20)USDT:TCdyZs2mRhwYpCB5dZqiXEUoYRfiVJuq1H(TRC20)BGB:0x3ee4ca7cc911ad4e423dec2ae8f2846e9a6a0a77(ERC-20)Communities - TelegramBitget:Bitget OPENAPIAuthor:CuongitlRelease NotesThe release notes can be foundhere.ContributionFork this repository.Make pull requests with proper commit message.
Package: python-bitpay
python-bitpay is an API wrapper for BitPay.com’s Bitcoin payment processing solution.  It provides an easy way
to integrate your existing application or web application with BitPay’s processing solutions.read the docsfor more information.DocumentationFor a little more documentation, though not much more, see thedocsfolder orread the documentation onlineAuthors & Special Thankspython-bitpay was written byJonathan EnzinnaWant to help out?  Pull requests are welcome onGitHub.  Not a programmer?  Donations via Bitcoins are appreciated
at 13iGUEL2yuu46J3j1uJkD2EKTtQZTqNXgm
Package: python-bitpin
Python-Bitpin SDKAboutBitpinis an Iranian cryptocurrency exchange that allows
users to buy and sell cryptocurrencies using Iranian Rial (IRR).I'm in no way affiliated with Bitpin and this is not an official SDK.InstallationInstall usingpipfromPyPI:pip install python-bitpinInstall fromgitpip install git+https://github.com/amiwrpremium/python-bitpin.gitUsageSeeusagefor usage guide.DocumentationSeedocumentation.LicenseSeeLICENSE.DisclaimerThis is not an official SDK, and I am in no way affiliated with Bitpin.
Package: python_bitrix24
https://github.com/moshkov/python_bitrix24ЗависимостиPython 2.7+, 3.4+requestsУстановка$pipinstallpython_bitrix24Если используется Django, то в настройках проекта можно указать BITRIX24_API_LOGIN, BITRIX24_API_PASSWORD и BITRIX24_API_MAIN_USER_NAME.ОписаниеPython Bitrix24 APIПозволяет работать с API Bitrix24. В текущей версии реализовано только добавление лида.Bitrix24:https://www.bitrix24.ruОписание API:https://dev.1c-bitrix.ru/community/blogs/chaos/crm-sozdanie-lidov-iz-drugikh-servisov.phpИспользованиеfrompython_bitrix24.bitrix24importBitrix24Connectionbitrix24Connection=Bitrix24Connection('YOU_BITRIX24_API_LOGIN','YOU_BITRIX24_API_PASSWORD','YOU_BITRIX24_API_MAIN_USER_NAME')b24_result=bitrix24Connection.add_lead('My dear Lead, {'NAME':'Vasya Pupkin','EMAIL_OTHER':'lead@email.local','UF_CRM_123456789':'additional information','UF_CRM_123456788':'additional information 2',})ifb24_result.get('error','')=='201'==0:print'success'...Для Django (если в настройках заданы BITRIX24_API_LOGIN, BITRIX24_API_PASSWORD и BITRIX24_API_MAIN_USER_NAME):frompython_bitrix24.python_bitrix24_djangoimportbitrix24Connectionb24_result=bitrix24Connection.add_lead('My dear Lead, {'NAME':'Vasya Pupkin','EMAIL_OTHER':'lead@email.local','UF_CRM_123456789':'additional information','UF_CRM_123456788':'additional information 2',})ifb24_result.get('error','')=='201'==0:print'success'......TODOПроверка отвера API на корректностьОстальной функционал API Bitrix24ТестыДокументация
Package: python-bitzi
python-bitzi is a wrapper around the Bitcollider library from Bitzi.  It
allows you to extract metadata from different types of files.  Using this
library you can get the bitprint (tiger tree + sha1), md5, song length, song
bit rate, image dimensions.You can think of Bitzi as the “card catalog” for the heavenly jukebox,
holding information about any and every media file that is ever reported to
them, not just the files available on the web, or through any particular
service, or through any particular sharing/distribution network.Developers of file sharing networks should find this extension useful.Requires ctypes:http://www.python.org/pypi?:action=display&name=ctypes
Package: python-bizdatetime
ABOUT=====python-bizdatetime is a simple library for performing business day arithmetic.KNOWN LIMITATIONS=================Rotating weekends/holidays are not supported (e.g., two days working, third dayoff).Business hour arithmetic is not (yet) supported.DEFINITIONS===========WeekendWeekly repeating non-business day. Weekend does not have to be at the end(or beginning) or the week. Weekends do not have to be consecutive days.HolidayLike weekend, holiday is a non-business day. Unlike weekend, holiday doesnot have weekly regularity. It is just a date. Holiday can coincide withweekend.PolicyIs a (possibly empty) collection of holidays and holidays. All calculationsare performed within a policy.SAMPLE USAGE============All business day arithmetic is performed in the context of policy::from bizdatetime import *from datetime import datepolicy = Policy(weekends=(SAT, SUN), holidays=(date(2011,7,1),))day = date(2011, 6, 29) # Wednesdayprint policy.add(day, 2) # add 2 business dates -> Monday after the long weekendprint policy.biz_day_delta(date(2011, 7, 4), date(2011, 6, 30)) # one holiday, one weekend betweenThe output of the above program will be::datetime.date(2011, 7, 4)1Policy method docstrings contain more examples.
Package: python-blazarclient
Team and repository tagsBlazar clientThis is a client for the OpenStack Blazar API. It provides a Python API (theblazarclientmodule) and a command-line script (blazar).Other ResourcesSource code:BlazarNova scheduler filterClient toolsDashboard (Horizon plugin)Blueprints/Bugs:https://launchpad.net/blazarDocumentation:https://docs.openstack.org/blazar/latest/Release notes:https://docs.openstack.org/releasenotes/python-blazarclient/
Package: pythonBLEperipheral
python-ble-peripheralDescriptionThis project delivers a library of Python based modules with which to build Bluetooth Low Energy (BLE) peripheral role applications. It is based on theprior work of Douglas Otwell, with small additions to satisfy personal requirements.PrerequisitesPython 3bluez (>= 5.50)pip3InstallationTo install directly from the PyPI repository, run:python3 -m pip install pythonBLEperipheralIf installing from the source code directory, run:python3 -m pip install .When run as an ordinary user, these commands install into the user's individual home directory system (under .local/lib/python3.x/site-packages/ for Linux systems). If a global installation is desired (available to all users), run the installation command as root.Some Debian based Linux systems (including Raspberry Pi) may complain when installing with pip (preferrring official Debian packages). There have not yet been problems reported when using instead (with or without sudo):python3 -m pip install --break-system-packages pythonBLEperipheralIn this case a system wide installation places the module into /usr/local/lib/python3.x/dist-packages/UsageAs the cputemp example showsfrom pythonBLEperipheral.advertisement import Advertisement
    from pythonBLEperipheral.service import Application, Service, Characteristic, DescriptorSupportthis project'sissuesoriginalDouglas 6projectissuesContributingPlease suggest any additions to this project by creating anewIssuestopic.AuthorsThanks to Douglas Otwell for the overwhelming bulk of the code on which this project is based.LicenseMIT (http://opensource.org/licenses/MIT)
Package: python-BLICK
python-BLICKPython-BLICK is a Python implementation of BLICK (a phonotactic probability calculator for English), originally implemented in Visual Basic by Professor Bruce Hayes.  The original version can be found athttp://www.linguistics.ucla.edu/people/hayes/BLICK/.Phonotactic probability refers to a property of a string of segments, such as a word or nonword.  Strings with high phonotactic probability align with a language’s phonotactics more closely than words with low phonotactic probability.  For instance, the titular nonword blick is highly probable given the phonotactics of English, but the nonword bnick is highly improbable as bn onsets are banned.BLICK calculates the phonotactic probability of a string of phonological segments using weighted constraints.  The phonotactic probability scores are summations of all violations of constraints across the string.  Further discussion of how BLICK calculates phonotactic probability on the original version’s website.Typical usagefrom blick import BlickLoaderb = BlickLoader()#Evaluating single strings of phonesscore = b.assessWord(“T EH1 S T”) #Probable stringscore = b.assessWord(“AH0 S NG IY1 R Y EH1 S T”) #Improbable string#Evaluating a text file of strings of phonesb.assessFile(“/path/to/input/file”)
Package: pythonblip
Python BLIPPure Python implementation of the Couchbase BLIP sync protocol.Installingpython3 -m venv venv. venv/bin/activatepip3 install pythonblipUsagefrom pythonblip.headers import SessionAuth
from pythonblip.replicator import Replicator, ReplicatorConfiguration, ReplicatorType
from pythonblip.output import LocalDB, LocalFile, ScreenOutput

host = "127.0.0.1"
database = "mobile"
port = "4984"
ssl = True
directory = os.environ['HOME']
scope = "data"
collections = ["employees", "payroll"]

replicator = Replicator(ReplicatorConfiguration.create(
    database,
    host,
    ReplicatorType.PULL,
    SessionAuth(options.session),
    ssl,
    port,
    scope,
    collections,
    LocalFile(directory)
))

try:
    replicator.start()
    replicator.replicate()
    replicator.stop()
except Exception as err:
    print(f"Error: {err}")Sync documents with 3.0 and earlier protocol (all documents in the _default scope and collection).blipctl -n 127.0.0.1 -d database -t 9ec978de8f0fc172708cdbb9fc3f903a882883ec -f -D /home/sync/tests/output/ --sslUse new 3.1 and later style with scopes and collections.blipctl -n 127.0.0.1 -d database -t 1eaccb9f9dc219a1b5d18e18e7f3d058efd1e9ff -s scope -c collection1,collection2,collection3 -f -D /home/sync/tests/output/ --sslNote: To get a session token you can use theSGWCLI:./sgwcli auth session -h 127.0.0.1 -n database -U sgw@user --sslblipctlarguments:OptionsDescription--sslUse SSL-n HOST, --host HOSTHostname or IP address-P PORT, --port PORTPort number-u USER, --user USERUser Name-p PASSWORD, --password PASSWORDUser Password-d DATABASE, --database DATABASESync Gateway Database-t SESSION, --session SESSIONSession Token-O, --screenOutput documents to the terminal-f, --fileOutput documents to file(s)-D DIR, --dir DIROutput Directory-s SCOPE, --scope SCOPEScope-c COLLECTIONS, --collections COLLECTIONSCollections-vv, --debugDebug output-v, --verboseVerbose output
Package: python-blizzard
Package to generate/request a filesystem reference.Home-page:https://github.com/neurospin/blizzardAuthor: blizzard developers
Author-email:antoine.grigis@cea.frLicense: CeCILL-B
Description: Package to generate/request a filesystem reference.Platform: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: X11 Applications :: Qt
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Utilities
Package: python-blizzardapi
python-blizzardapipython-blizzardapi is a client library for Blizzard's APIs.Current supported features include:Battle.net UserWow ProfileWow Game DataWow Classic Game DataDiablo 3 CommunityDiablo 3 Game DataHearthstone Game DataTo gain access to Blizzard's API please registerhereto obtain a client id and client secret.For more information on Blizzard's API visit:Official DocumentationOfficial API ForumRequirementsPython (3.6, 3.7, 3.8, 3.9)Installingpip install python-blizzardapiExamplemain.pyfromblizzardapiimportBlizzardApiapi_client=BlizzardApi("client_id","client_secret")# Unprotected API endpointcategories_index=api_client.wow.game_data.get_achievement_categories_index("us","en_US")# Protected API endpointsummary=api_client.wow.profile.get_account_profile_summary("us","en_US","access_token")# Wow Classic endpointconnected_realms_index=api_client.wow.game_data.get_connected_realms_index("us","en_US",is_classic=True)Access token vs Client ID/Client SecretYou can pass in aclient_idandclient_secretand use almost any endpoint except for a few that require anaccess_tokenobtained via OAuth authorization code flow. You can find more information athttps://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow.Here is the list of endpoints, specified by Blizzard, that require an OAuth token.GET /oauth/userinfo
GET /profile/user/wow
GET /profile/user/wow/protected-character/{realm-id}-{character-id}
GET /profile/user/wow/collections
GET /profile/user/wow/collections/pets
GET /profile/user/wow/collections/mounts