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.16.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

billzio_api-1.0.16-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: billzio_api-1.0.16.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for billzio_api-1.0.16.tar.gz
Algorithm Hash digest
SHA256 58883c1deddf1b80b76a23a3a51e2fe7d37556c43aa196feea6d05de7d2e1378
MD5 61dc0fa5e43ceef81c06765627735ec0
BLAKE2b-256 0ca29b51312d0d286a4e4820b9ecb1caf08492b0078d5d52efe62cdd5aa38b48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: billzio_api-1.0.16-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for billzio_api-1.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 4d113f1038bc5e26854de845329beeeb69eee257b2cd49001eb23a8220924fd9
MD5 32fda57effc51715439d83a49f75e5df
BLAKE2b-256 605046895dd4d0f648f3458cf15d3968f625b256c2f75d0fe8e83389abfe35e2

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