catentio-saas (Python)
Official Python SDK for the catentio-saas control
plane. Python parity with @forjio/catentio-saas-node —
same 25 resource namespaces, same Bearer auth via Huudis OIDC, same API
envelope.
Install
pip install catentio-saas
(Python import: catentio_saas — PEP 8 underscore-naming.)
Quickstart
Static API key (server-to-server)
from catentio_saas import CatentioClient
with CatentioClient(api_key="cat_pk_...") as catentio:
workspaces = catentio.workspaces.list()
print(workspaces)
run = catentio.agents.invoke("cimi", {"message": "hello"})
print(run["id"])
Bearer session (CLI / device-flow)
from catentio_saas import CatentioClient, Session
# An access_token from your Huudis device-flow login.
session = Session(
access_token="...",
refresh_token="...",
expires_at=1_800_000_000,
issuer="https://huudis.com",
client_id="catentio-cli",
)
with CatentioClient(session=session) as catentio:
projects = catentio.projects.list()
For automatic refresh, wire a refresh_fn into the Session. The SDK
keeps the refresh callable pluggable so it can use the huudis Python
SDK's refresh_access_token (or your own) without taking a hard
dependency on it.
Resource namespaces
| Namespace | Routes |
|---|---|
catentio.workspaces |
list, show, create, destroy, set_state |
catentio.agents |
list, get, invoke |
catentio.runs |
list, get, cancel |
catentio.projects |
list, get, create, list_attachments, add_attachment, list_tasks, get_task, list_subtasks, get_subtask, list_attempts, list_artifacts, list_events, cost, pause, resume, abandon, run_step, retry_subtask |
catentio.templates |
list |
catentio.tools |
list, get, create, update, delete |
catentio.skills |
list, get |
catentio.memory |
stats, list_entries, get_entry, create_entry, update_entry |
catentio.api_keys |
list, create, delete |
catentio.billing |
catalog, summary, subscribe |
catentio.cost |
summary |
catentio.integrations |
list, configure, delete |
catentio.webhooks |
list, create, delete |
catentio.scheduled_jobs |
list, create, update, delete |
catentio.feature_flags |
list, set |
catentio.files |
list, upload, delete |
catentio.output_destinations |
list, get, create, update, delete |
catentio.discord |
status, send_message |
catentio.gojo |
sessions |
catentio.heartbeats |
list, config, update_config |
catentio.system |
info, health (unauth) |
catentio.chat |
send, history |
catentio.events |
list |
catentio.inbound_webhooks |
list |
Every method takes an optional token= last-arg to override the
client-level Bearer for a single call (e.g. acting on behalf of another
workspace).
Errors
from catentio_saas import CatentioError, NetworkError
try:
catentio.workspaces.show("ws_404")
except CatentioError as e:
print(e.code, e.message, e.status, e.request_id)
except NetworkError as e:
print("transport failure:", e.message)
Source
https://github.com/hachimi-cat/saas-catentio/tree/main/sdk/python
License
MIT
Metadata
Release files for catentio-saas 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| catentio_saas-0.3.0.tar.gz | 16.5 kB | Without provenance | Details for catentio_saas-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| catentio_saas-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for catentio_saas-0.3.0-py3-none-any.whl |
Total release size: 31.7 kB
Release files / catentio_saas-0.3.0.tar.gz
| Download URL | catentio_saas-0.3.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fc3a131aa0a769260a4a2f377a0d2831e0f31941bebc29c454247483a464b75
|
|
BLAKE2b-256 checksum How to use checksums |
34dc1daad8f0cdd2a1adc7fa72280e4aa51a2dc37c8e9d468057670b073f9937
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / catentio_saas-0.3.0-py3-none-any.whl
| Download URL | catentio_saas-0.3.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75fa2c1b94eaba14f7af790ed78e34586db260ecd1e888438ce0c1d2401aeaac
|
|
BLAKE2b-256 checksum How to use checksums |
953e76c9cb2829586b8f60ee673e4d8c896cbe6762f5ba02e1f6da191e6a5752
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for catentio-saas 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.