Skip to main content

Llumo Inference SDK (Python)

A powerful, production-ready telemetry SDK for LLM observability. Automatically capture, group, and export traces from OpenAI, Anthropic, Gemini (Vertex AI), LangChain, and more.

Installation

pip install llumo-inference

(Or if installing from source)

pip install -r requirements.txt

Quick Start

Initialize the SDK at the very beginning of your application.

from llumo_inference import init_telemetry, llumo_trace

# Initialize the telemetry
init_telemetry({
    "token": "YOUR_LLUMO_TOKEN",
    "playgroundName": "my-llm-app", # Optional: Categories traces in the dashboard
    "baseUrl": "https://api.llumo.ai/telemetry" # Optional
})

# Group your activities into a single trace
with llumo_trace("my-session-name"):
    # Perform your LLM calls or HTTP requests here
    # Everything in this block shares the same Trace ID
    pass

Alternative: Using Decorators

from llumo_inference import llumo_workflow

@llumo_workflow(name="customer-query-flow")
def process_query(text):
    # All instrumentation inside this function is automatically grouped
    pass

Configuration Options

Option Type Required Description
token string Yes Your Llumo Access Token
playgroundName string No Label for your application/playground in the dashboard
flushDelayMs int No Buffer flush interval in milliseconds (default: 2000)

Features

  • Automated LLM Instrumentation: Powered by Traceloop to support OpenAI, Anthropic, Gemini, LangChain, and more with zero manual code changes.
  • Trace Grouping: Branded context managers (llumo_trace) and decorators (llumo_workflow) to ensure multi-step AI workflows are unified into single traces.
  • Buffered Export: Intelligent buffering that flushes traces by ID, ensuring your data arrives at the backend in complete, structured objects.
  • Privacy & Safety: Automatic sanitization of sensitive data and keys before transmission.
  • Top-level Patching: Immediate instrumentations for requests and urllib3 to ensure no data is lost during startup.

License

MIT

Metadata

Release files for llumo-inference 0.1.3

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

Source distribution (sdist)

Source distribution for llumo-inference 0.1.3
File Size Uploaded Provenance Actions
llumo_inference-0.1.3.tar.gz 6.5 kB Without provenance Details for llumo_inference-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llumo-inference 0.1.3
File Interpreter ABI Platform Actions
llumo_inference-0.1.3-py3-none-any.whl Python 3 none any Details for llumo_inference-0.1.3-py3-none-any.whl

Total release size: 13.0 kB

Release files / llumo_inference-0.1.3.tar.gz

Download URL llumo_inference-0.1.3.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5db5416523aacab0b537b7d138bcd1f5a10eaa65d42734706ac10371e7c3a5a8
BLAKE2b-256 checksum
How to use checksums
7f5f7ddc3700f86633a4f6a3aa51573d4e55be0caae1a4270947480f8fcd96db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / llumo_inference-0.1.3-py3-none-any.whl

Download URL llumo_inference-0.1.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e63d377490bc82a50a56dbfac99fd979c01d5859a15f22e05f99763765f5a58
BLAKE2b-256 checksum
How to use checksums
592038b9275620fd5d46e9ce92427689b8d72aff61a7df514caf6753538e19e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for llumo-inference 0.1.3

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