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.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61913d5b9894f65df3eccbdd07a26681382839594f928d19b5c3987e6af322b |
|
MD5 | 4b8d16f8b9325bb77d7178ae08d36396 |
|
BLAKE2b-256 | 6ff21662b956ad419fafbd2b8bd19bbfb82983576bf1d255af0059b05b775cdb |
Hashes for bitcart_async-0.8.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d238bd134d9c40139ce5765702c6f76daef3a32e3eaa97c40021fdfb8cd21d8 |
|
MD5 | 64ffb308ac0eb427d5af66ec6e4e1d21 |
|
BLAKE2b-256 | 9d85340642c525336572d9fbae9e3c4d8c9cbf76d8aa763076f60336ae139d8c |