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 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.5.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file billzio_api-1.0.5.tar.gz
.
File metadata
- Download URL: billzio_api-1.0.5.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 997c461d4441946eef40b24e6d4a52e14f6071500a46e48365e6045e56636b7a |
|
MD5 | 70394c0a6bdf251c8f982562c86064e2 |
|
BLAKE2b-256 | 28aa673aac783d57f628fb395b2fa40f33eadfcc22fc1ff6ac21cdd2a10702d3 |
File details
Details for the file billzio_api-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: billzio_api-1.0.5-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876d10f854131dc6ef32bf9ff7ae1d9f356be6646f55489d4ef03e511c6555b7 |
|
MD5 | ad0959024449a2b0073a27e5ab73614d |
|
BLAKE2b-256 | 2bf8eea0214fd6e7778da299778a917a399ed85197c43e1e267acad9b11419d8 |