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.8.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.8-py3-none-any.whl (627.5 kB view details)

Uploaded Python 3

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

Hashes for sentinos_sdk_core-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b64e15453efb188fd2ee59942b637e0dac0f292f11019e2a74b46bf9b758e061
MD5 15d97dfc52cb5ebf5f0453f091e7dbb7
BLAKE2b-256 5f014bb460f67b15c3a591eeee09ea709129dee8c71647e935e698a63e0e028f

See more details on using hashes here.

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

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.8-py3-none-any.whl.

File metadata

File hashes

Hashes for sentinos_sdk_core-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 676d1b38f398b4094196ad6417ebe5159babf717cd95e918c6a59291cad9ff15
MD5 6b45eac3158540df1b8cdb6d339ecac3
BLAKE2b-256 41902f128a976f3e32156deec6cc8f6a47dc3f9ea3a375d8985c3ae0ffdd32c0

See more details on using hashes here.

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

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