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
- Create a new 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.4.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file billzio_api-1.0.4.tar.gz
.
File metadata
- Download URL: billzio_api-1.0.4.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8913ead4c92ed861f313f29dc9b77f10c335cce1b14ad9a4dca4bece52dea36 |
|
MD5 | 599306b1548d7f86e24e5aac1060be0a |
|
BLAKE2b-256 | 114dc734f15a529bfb9b1b4bdc4cec70383e5a0d234755207bccc92dfe87eb49 |
File details
Details for the file billzio_api-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: billzio_api-1.0.4-py3-none-any.whl
- Upload date:
- Size: 12.3 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 | da1788e75f5c9b4829f2f4c0a446c87b14e9baa7f02aecec2b97e9f783f484d9 |
|
MD5 | fb5defce9e94f57ba47c6c27eb02bf38 |
|
BLAKE2b-256 | 1427d2f35d4f84e048bf92da7d46426fa37c3978703d7db6cbe7e64f4abd4c6f |