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.6.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file billzio_api-1.0.6.tar.gz
.
File metadata
- Download URL: billzio_api-1.0.6.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c5fb23a675e1f59cf28ac33e5a2110682a178f0fb49deffb7f34ec377fb723 |
|
MD5 | f904be2dc9c8abf5b1b8b0cc966b1858 |
|
BLAKE2b-256 | 504ea7c76f125e674b53b6a0b4bebfac5b553c035ac5bf0e5cfe76d6cbe79d39 |
File details
Details for the file billzio_api-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: billzio_api-1.0.6-py3-none-any.whl
- Upload date:
- Size: 14.7 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 | 8dbe92bf4c2008d3c8c548450279118e187d3f0dfb677a98b623f3d5dac264fe |
|
MD5 | 98a6c4df84e70dbc8ffa7e7412c4930f |
|
BLAKE2b-256 | d5553ef25f61c92e63602353ade8a14b7b0c8da33d0f095e3fc67b67f9976cc8 |