Skip to main content

Python wrapper for Billz.io Public API

Project description

billzio-api

Asynchronous Python wrapper for Billz.io Public API (v2)

Installation

pip install billzio-api

Supported Billz API methods

  • Auth login
  • Get Products list
  • Get Categories list
  • Get Shops list
  • Get Currencies list
  • Get Brands list
  • Create a new Client
  • Create a draft Order
  • Add an Item (product) to the draft Order
  • Add a Consumer to the draft Order
  • Create an Order from the draft Order (make payment)

Usage:

from billzio_api import BillzHandler, ShopsListFilters

handler = BillzHandler("<secret_key>")
filters = ShopsListFilters(limit=1)
shops = handler.get_shops(filters)
print(shops.count)
print(shops.shops)

Asynchronous

import asyncio  # for running synchronously

from billzio_api import AsyncBillzHandler, ShopsListFilters

...
handler = AsyncBillzHandler("<secret_key>")
filters = ShopsListFilters(limit=1)
shops = asyncio.run(handler.get_shops(filters))
print(shops.count)
print(shops.shops)

TODO

  • Upload to PyPi as a python package
  • Synchronous handler
  • Write unit tests
  • Caching auth data with its expiration

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

billzio_api-1.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

billzio_api-1.0.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file billzio_api-1.0.3.tar.gz.

File metadata

  • Download URL: billzio_api-1.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for billzio_api-1.0.3.tar.gz
Algorithm Hash digest
SHA256 feaf195d8e15133f4a9ebe6aacf58f333e6dc5f659565a25d7e145049060b8c7
MD5 f589419e38ec9c42cd4ccac301f83ea4
BLAKE2b-256 09c558222a42e4fa488d1864ece2a0abe03ee77115e5a87a325f19e31931722d

See more details on using hashes here.

File details

Details for the file billzio_api-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: billzio_api-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for billzio_api-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53b83d1312c64ee47a828ea46ab1abf11dfe3f27f3ea3d1ce9405de121676642
MD5 b071f0e000a9690a7a5ffd4410fb5eb1
BLAKE2b-256 7cd262d8636147f780cd92cfd1a65a7505ac2f0f33f671660c5c1fd74c441f25

See more details on using hashes here.

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