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.6

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.6
File Size Uploaded Provenance Actions
lumen_ai_sdk-0.1.6.tar.gz 32.2 kB Without provenance Details for lumen_ai_sdk-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 70.8 kB

Release files / lumen_ai_sdk-0.1.6.tar.gz

Download URL lumen_ai_sdk-0.1.6.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
78b89401bae97c931348a789f7f6602c3c6b4c590acb529b5dadd2c48ef44e91
BLAKE2b-256 checksum
How to use checksums
dcee4193bd886b33f8c19a67c837d8376522d87902c1c1840dbbc628109c0303
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.6-py3-none-any.whl

Download URL lumen_ai_sdk-0.1.6-py3-none-any.whl
Size 38.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
748c4542056ef944c8ff9d67c50c486240b800485fda01c34c7ab204814eabba
BLAKE2b-256 checksum
How to use checksums
3a8410e834d8f8d1a4ec8a4f1db67cca3a0e1d19b783256764786241a33de30c
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.6

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