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.6.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.6.0
File Size Uploaded Provenance Actions
relia_sdk-0.6.0.tar.gz 233.9 kB Without provenance Details for relia_sdk-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 324.2 kB

Release files / relia_sdk-0.6.0.tar.gz

Download URL relia_sdk-0.6.0.tar.gz
Size 233.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2eaab6908154236202012a5ac3ce0a8d921df8e3331f403613429ec5bf8e33df
BLAKE2b-256 checksum
How to use checksums
aeccec5ff42ba903dff3b7d09a495c1ada654ef350d9b0f86ec9c7425dcd3729
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.6.0-py3-none-any.whl

Download URL relia_sdk-0.6.0-py3-none-any.whl
Size 90.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d00809116e5cbedb83d242c1f215f2dcf435c344410fbd8a8d65f14941bc80d
BLAKE2b-256 checksum
How to use checksums
7418b96ee9bc8f4426e9e528bc965425b2e528dc1f04a49717de511f04332c3c
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.6.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