A client library for accessing Zinn Digital® Platform API
Actively maintained. Last release 1 day ago. A safe choice.
pip install zinn-sdkREADME as published on PyPI with version 0.1.2473.
zinn-sdk — Python client for the Zinn Digital Platform API
Typed Python client for the Zinn Digital public API, generated from the platform's OpenAPI specification — the same file the API, the dashboard and the docs are built from. A new version is published automatically whenever the specification changes.
pip install zinn-sdk
from zinn_sdk import Client, AuthenticatedClient
from zinn_sdk.api.catalog import list_public_hosting_regions
from zinn_sdk.api.hosting import list_sites
# Public catalogue endpoints need no key.
regions = list_public_hosting_regions.sync(client=Client(base_url="https://api.zinndigital.com"))
print([r.slug for r in regions.data])
# Everything else uses a per-organisation API key (create one on the dashboard's API keys page).
api = AuthenticatedClient(base_url="https://api.zinndigital.com", token="YOUR_API_KEY")
sites = list_sites.sync(client=api)
Every operation has sync, sync_detailed, asyncio and asyncio_detailed variants, named after the
operation's operationId in snake case, grouped by tag under zinn_sdk.api.
- Guide: https://zinndigital.com/developers/sdk-python
- API reference: https://zinndigital.com/developers/api
- Licence: MIT