Bitbanker.org API client
Project description
bitbanker-sdk
This is an sync/async Python Bitbanker API client.
Installation
The project is available on PyPI. Simply run:
$ pip install bitbanker-sdk
Usage
With sync python application:
from bitbanker_sdk import BitbankerClient from bitbanker_sdk import InvoiceData from bitbanker_sdk import Currency client = BitbankerClient(api_key="<your bitbanker api key>") invoice_data = InvoiceData( amount=1000, payment_currencies=[Currency.ETH, Currency.BTC], description='invoice description', header='invoice header' ) response = client.create_invoice(invoice_data=invoice_data) print(response.link)
With async python application:
from bitbanker_sdk import AsyncBitbankerClient from bitbanker_sdk import InvoiceData from bitbanker_sdk import Currency client = AsyncBitbankerClient(api_key="<your bitbanker api key>") invoice_data = InvoiceData( amount=1000, payment_currencies=[Currency.ETH, Currency.BTC], description='invoice description', header='invoice header' ) response = await client.create_invoice(invoice_data=invoice_data) print(response.link)
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
bitbanker-sdk-0.0.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for bitbanker_sdk-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a36684a3998683d0f7515d613dfd91e1a60bc88ac163bf78f8843a37cba5ec6 |
|
MD5 | 25ffb194266fccb7829ce6937f9971c7 |
|
BLAKE2b-256 | 815144775341a5c22a4258c37fc3f82706fce413bd415e0a44a12e689fc00908 |