Runnable snippets for the Onepin Python SDK. Each reads your API key from the
ONEPIN_API_KEY environment variable.
pip install onepin
export ONEPIN_API_KEY="op_..." # create one at https://app.onepin.ai/settings/api-keys
python examples/quickstart.py| File | Shows |
|---|---|
quickstart.py |
Construct a client, readiness probe, list workflows |
list_workflows.py |
Paginate workflows, fetch one by id |
async_client.py |
AsyncOnePinClient + async pagination |
error_handling.py |
ApiError, retries, timeouts |
provider_keys.py |
Bring-your-own provider keys (BYO-key) |
By default the client targets PROD (https://api.onepin.ai). Pass
environment=OnePinClientEnvironment.DEV or base_url="https://dev-api.onepin.ai" to
target another host. See the repo README and the full
per-endpoint reference in src/onepin/reference.md.