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
Release history Release notifications | RSS feed
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.8.tar.gz
(10.0 kB
view details)
Built Distribution
File details
Details for the file billzio_api-1.0.8.tar.gz
.
File metadata
- Download URL: billzio_api-1.0.8.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47195725d7f87ef9f254e095a89841645084ddda72c431dda99e3c0ce9cd013a |
|
MD5 | 4b4f2a5e66f7c4ab3dc08b1557b58cc7 |
|
BLAKE2b-256 | 65eb8c6a32509f2666ede6f6369eb06f44e50a6d7ee96d63328681393bebe216 |
File details
Details for the file billzio_api-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: billzio_api-1.0.8-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a9dafde7d89117f070ff19be174345c808c820a59b5676a070b41611f177b57 |
|
MD5 | cd71b84d51765e934e86b2cf81c20e5f |
|
BLAKE2b-256 | 493a3abf45767746ed8b262790d5374f84bfe7bee924bee03dc8caf0b2c2fd4b |