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.2.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for bitbanker_sdk-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65dd210c7c4309422ce6513edd3f624097d74e57feacf16560f38e377d72e21 |
|
MD5 | 14bb80ef125552127a0ad233205f699c |
|
BLAKE2b-256 | a3af81c2b833ff724b6fa771e42c61a3562210e2d8ec63dd1de6cb09735558b5 |