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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for bitbanker-sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 424831c3fa0dbb6427aaf2ce0200ce5d8f7463011d89627c2d018135c46f3874
MD5 565af884e4231c1a80a124174504a6e8
BLAKE2b-256 e08ee5faa54f69e649b66dab1311e05955bdc56e91174332909ae49e739b6ae3

See more details on using hashes here.

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

Hashes for bitbanker_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c65dd210c7c4309422ce6513edd3f624097d74e57feacf16560f38e377d72e21
MD5 14bb80ef125552127a0ad233205f699c
BLAKE2b-256 a3af81c2b833ff724b6fa771e42c61a3562210e2d8ec63dd1de6cb09735558b5

See more details on using hashes here.

Supported by

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