Skip to main content

lumen-ai-core

Core package for the LumenAI SDK.

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-core

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-core 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 lumen-ai-core 0.1.3
File Size Uploaded
lumen_ai_core-0.1.3.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lumen-ai-core 0.1.3
File Interpreter ABI Platform
lumen_ai_core-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 35.7 kB

Release files / lumen_ai_core-0.1.3.tar.gz

Download URL lumen_ai_core-0.1.3.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3184fa739b8474050e15da3d821e909007defe49c2413641527ac2084b0231fa
BLAKE2b-256 checksum
How to use checksums
0007430398e988463e551699d4b4ddb118c2345c5df1f9e7f5114a840318a2f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2026.

Transparency log

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

Download URL lumen_ai_core-0.1.3-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
004ccd06c79f9bdd41c702a1d032f364e8566deec007c3616ed19a5b92fcdd09
BLAKE2b-256 checksum
How to use checksums
e5f8c5232bb07a65e41a1b7c332bcdf5f322a38b47ddcabed1491d53995b85c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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