SDKs
Python SDK
Install and use the Kaiten Python SDK.
Python SDK
The Python SDK is currently under development. This page will be updated when it is released. In the meantime, use the REST API directly or the OpenFeature Python OFREP provider.
Installation
pip install kaitenQuick Start
from kaiten import KaitenClient
client = KaitenClient(
base_url="http://localhost:6000/api",
token="ksh_your_token_here",
)
# List customers
customers = client.customers.list()
for customer in customers.items:
print(f"Customer: {customer.name} ({customer.slug})")
# Create a customer
customer = client.customers.create(name="New Customer")
print(f"Created: {customer.slug}")
# Report usage
client.instances.report_usage(
instance_slug="acme-production",
entitlement_slug="api-calls",
value=42,
)Available Methods
All REST API endpoints are available as typed methods:
client.customers.list(),.create(),.get(),.update(),.delete()client.instances.list(),.create(),.get(),.report_usage()client.licenses.list(),.create(),.attach_entitlement()client.feature_flags.list(),.create(),.get(),.update()client.webhooks.list(),.create(),.history()

