Skip to main content

Low-level generated client for the Sentinos API (used by the sentinos Python SDK wrapper)

Project description

sentinos-sdk-core (Python)

Sentinos SDK

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 model
  • sync_detailed(...) for parsed data plus HTTP metadata
  • asyncio(...) for async codebases
  • asyncio_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentinos_sdk_core-0.1.7.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentinos_sdk_core-0.1.7-py3-none-any.whl (627.5 kB view details)

Uploaded Python 3

File details

Details for the file sentinos_sdk_core-0.1.7.tar.gz.

File metadata

  • Download URL: sentinos_sdk_core-0.1.7.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

Hashes for sentinos_sdk_core-0.1.7.tar.gz
Algorithm Hash digest
SHA256 62af425cc859d1f10f562917d03c392d5bdb876b9a21ec036d34c1afdad694bf
MD5 47863a4809231794d7e94b4ed1b5872f
BLAKE2b-256 a3a297b7eff314825ca87698ec6b74712785b0fe562b069295a92affdfda0ff8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sentinos_sdk_core-0.1.7.tar.gz:

Publisher: publish.yml on SentinosHQ/sentinos-sdk-core-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sentinos_sdk_core-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for sentinos_sdk_core-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c84f0fedc6f585ee16ea51028ed37b290cdec714862eda6c232885257cd96e
MD5 d7c08f04fe20daa0b2545b6a28756666
BLAKE2b-256 2311132ba66092e1cc3a33c8e2a6f79f3891e7b26384d57ff2977b1a881e98cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sentinos_sdk_core-0.1.7-py3-none-any.whl:

Publisher: publish.yml on SentinosHQ/sentinos-sdk-core-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page