Python SDK
The Python SDK is generated from the OpenAPI contract and uses only the standard
library (urllib). Python 3.9+.
Install
Section titled “Install”pip install bizzleQuickstart
Section titled “Quickstart”from bizzle import BizzleClient
client = BizzleClient(api_key="sk_test_yourkey")
payment = client.create_payment( body={"amount": 50000, "currency": "TZS", "description": "Order #1042"}, idempotency_key="order-1042",)
print(payment["id"], payment["status"])Write operations accept idempotency_key; reads take query parameters. Methods are
snake_cased versions of the OpenAPI operations (list_payments, get_payment, …).
Errors
Section titled “Errors”Failures raise BizzleApiError with .status and .body:
from bizzle import BizzleApiError
try: client.create_payment(body={"amount": 0, "currency": "TZS"})except BizzleApiError as err: print(err.status, err.body)