lumen-ai-sdk
Core package for the LumenAI SDK. Versions up to 0.1.3 were published as lumen-ai-core.
Includes
LumenAI.init()andLumenAI.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, andJsonlExporterLumenAIEventtyped 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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lumen_ai_sdk-0.1.5.tar.gz | 31.2 kB | Without provenance | Details for lumen_ai_sdk-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lumen_ai_sdk-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for lumen_ai_sdk-0.1.5-py3-none-any.whl |
Total release size: 68.6 kB
Release files / lumen_ai_sdk-0.1.5.tar.gz
| Download URL | lumen_ai_sdk-0.1.5.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c748f2c73a293e8bfcf064e92161b1efc5223eb47395a9be25c161117408ff98
|
|
BLAKE2b-256 checksum How to use checksums |
b94b4d6221af2dbac659073b94bc65ff1943f899c0bbd1195df8089216a090c2
|
| 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.5-py3-none-any.whl
| Download URL | lumen_ai_sdk-0.1.5-py3-none-any.whl |
|---|---|
| Size | 37.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3940ac6e43cf5f93159d234c0323c30f4b94dc01ec84190b50599e176337a865
|
|
BLAKE2b-256 checksum How to use checksums |
d5977761b481ad006af3c9c9f872d8cca0663d5696e66eb4b20248ff0002660e
|
| 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.5
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.