Skip to main content

RELIA Python SDK

Unified observability and AI agent monitoring for Python. One SDK for APM tracing, LLM cost tracking, and agent workflow monitoring — with zero-config auto-instrumentation.

Install

pip install relia-sdk

Setup

python -m relia

The interactive wizard detects your framework, creates a project, and generates all config files automatically.

Features

  • Zero-code LLM interception — patches httpx and requests to capture all API calls automatically
  • Smart conversation tracking — groups multi-turn and tool-calling chains into single runs
  • Cost estimation — built-in pricing for 24+ models (GPT-4o, Claude, Gemini, DeepSeek, etc.)
  • Sensitive data redaction — auto-redacts passwords, tokens, API keys, credit cards before export
  • Non-blocking reporting — background thread pool, never slows your app
  • SSE streaming support — captures tool calls and usage from streaming completions
  • Cloudflare/Vercel geo enrichment — extracts client IP, country, city from proxy headers

CLI Commands

python -m relia      # Interactive project setup
python -m relia whoami    # Show current user
python -m relia logout    # Remove credentials

Environment Variables

Variable Description
RELIA_PROJECT_ID Your RELIA project ID
RELIA_SERVICE_NAME Service name for APM (default: backend)
RELIA_OTLP_ENDPOINT Custom OTLP collector URL
RELIA_AGENT_ENDPOINT Agent run ingestion URL
RELIA_ENV Environment label (default: production)

The SDK also reads from .env / .env.local files automatically.

Support

License

MIT

Metadata

Release files for relia-sdk 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for relia-sdk 0.4.2
File Size Uploaded Provenance Actions
relia_sdk-0.4.2.tar.gz 155.9 kB Without provenance Details for relia_sdk-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for relia-sdk 0.4.2
File Interpreter ABI Platform Actions
relia_sdk-0.4.2-py3-none-any.whl Python 3 none any Details for relia_sdk-0.4.2-py3-none-any.whl

Total release size: 223.6 kB

Release files / relia_sdk-0.4.2.tar.gz

Download URL relia_sdk-0.4.2.tar.gz
Size 155.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6d1c203c2046883711f8bea0b37bc01b6d2e92a58cad4e6244d350f414d3fee8
BLAKE2b-256 checksum
How to use checksums
44b1597383a97d72f283cf9b5f358ab2d89e81e580701a1e18149d48e7c99581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / relia_sdk-0.4.2-py3-none-any.whl

Download URL relia_sdk-0.4.2-py3-none-any.whl
Size 67.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f74bdd5c11caf478b95d1a70f08f0fe5af785430ad230b843a123cc3a559320
BLAKE2b-256 checksum
How to use checksums
d4c3d14f433735f26eca428e854c6ec19f54d6ff7fdc26408225d3c123db67d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for relia-sdk 0.4.2

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page