Skip to main content

lumen-ai-sdk

Core package for the LumenAI SDK. Versions up to 0.1.3 were published as lumen-ai-core.

Includes

  • LumenAI.init() and LumenAI.shutdown()
  • Tenant context helpers: set_tenant_id, get_tenant_id, clear_tenant_id, lumen_tenant
  • OTel processors for tenant tagging, cost computation, and event normalization
  • RedisExporter, AsyncRedisExporter, and JsonlExporter
  • LumenAIEvent typed event contract
  • SQLAlchemy ORM models for downstream storage integrations

Install

pip install lumen-ai-sdk

Minimal Example

from lumen_ai import LumenAI, lumen_tenant

LumenAI.init(redis_url="redis://localhost:6379/0")

with lumen_tenant("client-acme"):
    # Create OTel GenAI spans here.
    pass

LumenAI.shutdown()

For a no-service local sink:

from lumen_ai import JsonlExporter, LumenAI

LumenAI.init(exporter=JsonlExporter("lumen-events.jsonl"))

See the repository README for the full demo and development gates.

Metadata

Release files for lumen-ai-sdk 0.1.4

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

Source distribution (sdist)

Source distribution for lumen-ai-sdk 0.1.4
File Size Uploaded Provenance Actions
lumen_ai_sdk-0.1.4.tar.gz 23.9 kB Without provenance Details for lumen_ai_sdk-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lumen-ai-sdk 0.1.4
File Interpreter ABI Platform Actions
lumen_ai_sdk-0.1.4-py3-none-any.whl Python 3 none any Details for lumen_ai_sdk-0.1.4-py3-none-any.whl

Total release size: 53.3 kB

Release files / lumen_ai_sdk-0.1.4.tar.gz

Download URL lumen_ai_sdk-0.1.4.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
12a97b6061a6877e10062351ec65ab25fa1c8a855e1c566c3c6da4ced30c70de
BLAKE2b-256 checksum
How to use checksums
cd53447bad3bd0faa9dc07ee95d087d08f78f047cf7fd3033544eaf29de7af15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / lumen_ai_sdk-0.1.4-py3-none-any.whl

Download URL lumen_ai_sdk-0.1.4-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68a1792d370ba4e8d77f700f8c982027bd1593084a2a9b31c701d2ea4d60fb30
BLAKE2b-256 checksum
How to use checksums
9888dee18cb95c536c193e6d9bc4babf787b361aa4414696987c7480c887eb93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for lumen-ai-sdk 0.1.4

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