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 Payment types list
  • Get Brands list
  • Get all Clients
  • Create a new Client
  • Update a Client
  • Create a new order
    • 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.7.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

billzio_api-1.0.7-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: billzio_api-1.0.7.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for billzio_api-1.0.7.tar.gz
Algorithm Hash digest
SHA256 6c848aed5ca5d0971abe18162d39b9c23f97c816021a37e3966367c090de2469
MD5 764684c7ff37211be6d079983cd0f10b
BLAKE2b-256 c3af80b311eef1619e3d57bb85478711fc45473a569b115891a17b793fe34d23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: billzio_api-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for billzio_api-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9da4a79ea0845287c5e7e433e45c42b7694c73d4e892265b61631a62ced9781e
MD5 7cb7f5511c0ee49c93c70b1bdd2a4e95
BLAKE2b-256 025f5f9c81f7ff25793cb6924336a8a8be08f3d2b3513d99c4f283459b8de561

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