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.10.tar.gz
(10.0 kB
view details)
Built Distribution
File details
Details for the file billzio_api-1.0.10.tar.gz
.
File metadata
- Download URL: billzio_api-1.0.10.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51f45395f149a372cc390c1b7889855cd2ae1db77a1697fd3f6b3a87f39c07e6 |
|
MD5 | 42396f90ffd0e4130412c8e97d759319 |
|
BLAKE2b-256 | e1eca5be8c83e5f4d1c2ccde1c1c010caa117c1e7e6f9abe7ca1c664b7993ee9 |
File details
Details for the file billzio_api-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: billzio_api-1.0.10-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19fb9559ff7075c7ab34e0635d7267a150be828f82606a742d4ac76df338e217 |
|
MD5 | 96f5bc5c86328678ee2a11bb7de95fb0 |
|
BLAKE2b-256 | 43327f2254191a841628f06100f97f99d4009f7b6f94e23ab2966a4b1401b8bf |