Skip to main content

Bitbanker.org API client

Project description

bitbanker-sdk

https://img.shields.io/pypi/v/bitbanker-sdk.svg https://img.shields.io/pypi/pyversions/bitbanker-sdk.svg https://codecov.io/gh/melnikovsa/python-bitbanker-sdk/branch/main/graph/badge.svg https://github.com/melnikovsa/python-bitbanker-sdk/actions/workflows/tests.yml/badge.svg https://github.com/melnikovsa/python-bitbanker-sdk/actions/workflows/pypi.yml/badge.svg https://img.shields.io/badge/code%20style-black-000000.svg

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


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)

Uploaded Source

Built Distribution

bitbanker_sdk-0.0.2-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page