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.9.tar.gz
(10.0 kB
view details)
Built Distribution
File details
Details for the file billzio_api-1.0.9.tar.gz
.
File metadata
- Download URL: billzio_api-1.0.9.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 | f7d7ec6095845d01f18d19a7f8132357a0bc1276e26d6d30b51af3bd45b955fb |
|
MD5 | 96b29dc56c196379948eb25806ed237e |
|
BLAKE2b-256 | 77e739ff77ee3847cdac04b0dc0a7ca446bde98963b121f7a010cfdde5bc2f18 |
File details
Details for the file billzio_api-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: billzio_api-1.0.9-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 | 16932061f148737533adfa956121f88042e0bd077c98872aee543a4a5ee37383 |
|
MD5 | 489e3d907e3ea2e6e69d822b8d15c02b |
|
BLAKE2b-256 | 26ac8767b0a0ea1d7bd8d3154dbedf17c82b65cd2dadc7e6ee1df71e7469386f |