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.14.tar.gz
(9.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file billzio_api-1.0.14.tar.gz.
File metadata
- Download URL: billzio_api-1.0.14.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f62aca92de36f8bacc2bf04e5296545076c39bf0f315b94d702f9750344996
|
|
| MD5 |
1a34c83c261c5fcff75d56983733452b
|
|
| BLAKE2b-256 |
7e03677f62de384759d902cd0f68fb2074eeb6ecef2eb08ec058da36b6d82c06
|
File details
Details for the file billzio_api-1.0.14-py3-none-any.whl.
File metadata
- Download URL: billzio_api-1.0.14-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a578efb9342deff134e2d9fe91cfb1c4ea69b5f3e2b51a00108167b1e174cfe0
|
|
| MD5 |
e6cbe84666c0a541a716b51002b8ecca
|
|
| BLAKE2b-256 |
4a7010016e4a6b83875f38a167b4fdd09767aacf9c8910f133ded973c4b4594d
|