Bitcart coins support library
Project description
bitcart-sdk
This is a client library(wrapper) around bitcart daemon. It is used to simplify common commands. Coins support(⚡ means lightning is supported):
- Bitcoin(⚡)
- Litecoin(⚡)
- Gravity Zero(⚡)
Main focus is Bitcoin.
This library supports both asynchronous and synchronous versions. Use bitcart as a sync version(better for beginners), and bitcart-async for async version.
If you install from github, by default it is async. Use:
ASYNC=false python setup.py install
For it to convert async version to sync and install that.
That process is done via sync_generator.py
.
For more information Read the Docs
Async version's APIs are the same as sync, just use async and await. Async callback functions for @btc.on now supported. The only main change is that you must use async with context manager or manually close connections, like so:
async with btc:
print(await btc.balance())
Or, if you don't use context managers, close it manually:
print(await btc.balance())
await btc.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bitcart-async-0.8.0.post0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d364081b8d7aca12a2cd2ed6b5913d8907379fcc78b7758cbe016fa9a67209ca |
|
MD5 | 50faeb124854d39b9cb75df0ea2a88c0 |
|
BLAKE2b-256 | 17ec6b6f0b777448e4d71634fd7d74faa0f8b2d71a353ad43a25bddd2922d17a |
Hashes for bitcart_async-0.8.0.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a28f1a33cf525524c4ba274558afa12501fad231a77ea95d7198c6a8dbbfee |
|
MD5 | 10f8070a549dc44f84a733ab45676ffd |
|
BLAKE2b-256 | 476cd50e145e971816ffcbd66267ec7c719e016ca9e5838f9d5e9f53883cf8bd |