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.5.0

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.5.0
File Size Uploaded Provenance Actions
relia_sdk-0.5.0.tar.gz 165.9 kB Without provenance Details for relia_sdk-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 242.4 kB

Release files / relia_sdk-0.5.0.tar.gz

Download URL relia_sdk-0.5.0.tar.gz
Size 165.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6e9f99f1d31ee491f4a45d752efd443cb426e27d52d1421e8a107fb59dc4f93c
BLAKE2b-256 checksum
How to use checksums
080b6c4a51f7d0343f2a0931e97d3c23713ec9fac9e21ddce4fff64850512660
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.5.0-py3-none-any.whl

Download URL relia_sdk-0.5.0-py3-none-any.whl
Size 76.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2caf2d46deae2e78f57ba71b5ce43cd38eb00a3fa883ff553cb4b706ee37dd6c
BLAKE2b-256 checksum
How to use checksums
f8d7cbd12559bcc3e8336550bd246d9f6220db65e2f8ef95890af30285d3ea77
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.5.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.

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