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.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.4.0
File Size Uploaded Provenance
relia_sdk-0.4.0.tar.gz 153.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 218.7 kB

Release files / relia_sdk-0.4.0.tar.gz

Download URL relia_sdk-0.4.0.tar.gz
Size 153.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bdf6273188615d056ee8b8ae331e790c80bc26f682baa01027f630a06524b590
BLAKE2b-256 checksum
How to use checksums
1e85072b92716451571993837f2c73718e7320efab6ad1056bc415000acdac82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL relia_sdk-0.4.0-py3-none-any.whl
Size 65.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f01d85bb8d1b3519be10357f21726a576f6b4139abd4404a1701e0274c62faa
BLAKE2b-256 checksum
How to use checksums
b2c82603dd0a8758e19101b9c8ea3cf254be4b01015cbba919917ba5d164b279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for relia-sdk 0.4.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.

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