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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitbanker-sdk-0.0.2.tar.gz.
File metadata
- Download URL: bitbanker-sdk-0.0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
424831c3fa0dbb6427aaf2ce0200ce5d8f7463011d89627c2d018135c46f3874
|
|
| MD5 |
565af884e4231c1a80a124174504a6e8
|
|
| BLAKE2b-256 |
e08ee5faa54f69e649b66dab1311e05955bdc56e91174332909ae49e739b6ae3
|
File details
Details for the file bitbanker_sdk-0.0.2-py3-none-any.whl.
File metadata
- Download URL: bitbanker_sdk-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c65dd210c7c4309422ce6513edd3f624097d74e57feacf16560f38e377d72e21
|
|
| MD5 |
14bb80ef125552127a0ad233205f699c
|
|
| BLAKE2b-256 |
a3af81c2b833ff724b6fa771e42c61a3562210e2d8ec63dd1de6cb09735558b5
|