Skip to main content

TitanRAG Python SDK & CLI

Official Python client library for the TitanRAG Enterprise Platform.

Installation

pip install titanrag

Usage

Basic Async Context Manager

import asyncio
from titanrag import TitanRAGClient, TitanRAGError


async def main():
    async with TitanRAGClient(base_url="http://localhost:8000/api/v1", api_key="rg_test_key") as client:
        # Check system liveness
        liveness = await client.get_health_live()
        print("Liveness:", liveness)

        # Query deep readiness probe (PostgreSQL, Qdrant, Redis, MinIO)
        try:
            readiness = await client.get_health_ready()
            print("Readiness:", readiness)
        except TitanRAGError as err:
            print(f"System degraded: {err.message} (status: {err.status_code})")

        # Fetch Prometheus metrics
        metrics = await client.get_metrics()
        print("Metrics size:", len(metrics))


if __name__ == "__main__":
    asyncio.run(main())

Release files for titanrag 0.1.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 titanrag 0.1.0
File Size Uploaded
titanrag-0.1.0.tar.gz 18.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for titanrag 0.1.0
File Interpreter ABI Platform
titanrag-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / titanrag-0.1.0.tar.gz

Download URL titanrag-0.1.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9329ca6804e1bab9ffd4d5cd59d92093e13e9f77d0eb21ef6c36ef97c8ffecb6
BLAKE2b-256 checksum
How to use checksums
e2e4ea50b9cd3e87fdfef616736c0a01e9a071d65a2fc080fa94c0876e4a04f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / titanrag-0.1.0-py3-none-any.whl

Download URL titanrag-0.1.0-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6bdefefe104198bdf47f90aa1e1630b2b641fbb94d5f60d9f84f8b34b127568
BLAKE2b-256 checksum
How to use checksums
38ecd15f2270fcbb4303d353a549e19c258b37c4e5b01a414a1e8b58b2989c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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