Low-level generated client for the Sentinos API (used by the sentinos Python SDK wrapper)
Project description
sentinos-sdk-core (Python)
Low-level generated Python client for the Sentinos API. Choose sentinos-sdk-core when you want direct OpenAPI coverage, typed models, and full control over HTTP behavior.
Most teams should install sentinos instead. The higher-level wrapper adds curated helpers, runtime integrations, and a simpler onboarding path on top of this generated client.
Choose this package if...
- You want the raw generated client for custom automation or framework integration
- You need access to the full typed API surface without higher-level abstractions
- You care about sync and async entry points for every endpoint
- You want to build your own retry, logging, or instrumentation layer around the HTTP client
Install
pip install sentinos-sdk-core
Configure
export SENTINOS_API_URL="https://api.sentinos.ai"
export SENTINOS_ACCESS_TOKEN="<access-token>"
Then create an authenticated client:
import os
from sentinos_core import AuthenticatedClient
client = AuthenticatedClient(
base_url=os.environ.get("SENTINOS_API_URL", "https://api.sentinos.ai"),
token=os.environ["SENTINOS_ACCESS_TOKEN"],
)
Example: inspect and replay a decision trace
from uuid import UUID
from sentinos_core.api.default import trace_get, trace_replay
from sentinos_core.models.trace_replay_body import TraceReplayBody
trace_id = UUID("11111111-1111-1111-1111-111111111111")
trace = trace_get.sync(client=client, trace_id=trace_id)
print(trace.trace_id, trace.policy_evaluation.decision.value)
replay = trace_replay.sync(
client=client,
trace_id=trace_id,
body=TraceReplayBody(include_explain=True),
)
print(replay.drift_detected, replay.replayed_at.isoformat())
Async uses the matching asyncio(...) entry points:
import asyncio
async def main() -> None:
trace = await trace_get.asyncio(client=client, trace_id=trace_id)
print(trace.trace_id)
asyncio.run(main())
Generated client ergonomics
Every endpoint module exposes four call styles:
sync(...)for the parsed modelsync_detailed(...)for parsed data plus HTTP metadataasyncio(...)for async codebasesasyncio_detailed(...)for async metadata access
Models live under sentinos_core.models.*, and the underlying AuthenticatedClient exposes its shared httpx clients so you can attach hooks, logging, or custom transport settings.
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sentinos_sdk_core-0.1.8.tar.gz.
File metadata
- Download URL: sentinos_sdk_core-0.1.8.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64e15453efb188fd2ee59942b637e0dac0f292f11019e2a74b46bf9b758e061
|
|
| MD5 |
15d97dfc52cb5ebf5f0453f091e7dbb7
|
|
| BLAKE2b-256 |
5f014bb460f67b15c3a591eeee09ea709129dee8c71647e935e698a63e0e028f
|
Provenance
The following attestation bundles were made for sentinos_sdk_core-0.1.8.tar.gz:
Publisher:
publish.yml on SentinosHQ/sentinos-sdk-core-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sentinos_sdk_core-0.1.8.tar.gz -
Subject digest:
b64e15453efb188fd2ee59942b637e0dac0f292f11019e2a74b46bf9b758e061 - Sigstore transparency entry: 1199826883
- Sigstore integration time:
-
Permalink:
SentinosHQ/sentinos-sdk-core-python@988e6c6bd933ae013b9acb451724921ed1801b32 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/SentinosHQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@988e6c6bd933ae013b9acb451724921ed1801b32 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sentinos_sdk_core-0.1.8-py3-none-any.whl.
File metadata
- Download URL: sentinos_sdk_core-0.1.8-py3-none-any.whl
- Upload date:
- Size: 627.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
676d1b38f398b4094196ad6417ebe5159babf717cd95e918c6a59291cad9ff15
|
|
| MD5 |
6b45eac3158540df1b8cdb6d339ecac3
|
|
| BLAKE2b-256 |
41902f128a976f3e32156deec6cc8f6a47dc3f9ea3a375d8985c3ae0ffdd32c0
|
Provenance
The following attestation bundles were made for sentinos_sdk_core-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on SentinosHQ/sentinos-sdk-core-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sentinos_sdk_core-0.1.8-py3-none-any.whl -
Subject digest:
676d1b38f398b4094196ad6417ebe5159babf717cd95e918c6a59291cad9ff15 - Sigstore transparency entry: 1199826899
- Sigstore integration time:
-
Permalink:
SentinosHQ/sentinos-sdk-core-python@988e6c6bd933ae013b9acb451724921ed1801b32 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/SentinosHQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@988e6c6bd933ae013b9acb451724921ed1801b32 -
Trigger Event:
push
-
Statement type: