LumenAI Core — Real-time FinOps & Observability layer for Generative AI
Project description
lumen-ai-core
Core package for the LumenAI SDK.
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-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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lumen_ai_core-0.1.3.tar.gz.
File metadata
- Download URL: lumen_ai_core-0.1.3.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3184fa739b8474050e15da3d821e909007defe49c2413641527ac2084b0231fa
|
|
| MD5 |
c3a87899d5f75c256687e43d7da60a35
|
|
| BLAKE2b-256 |
0007430398e988463e551699d4b4ddb118c2345c5df1f9e7f5114a840318a2f0
|
Provenance
The following attestation bundles were made for lumen_ai_core-0.1.3.tar.gz:
Publisher:
publish.yml on skarL007/-lumen-ai-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lumen_ai_core-0.1.3.tar.gz -
Subject digest:
3184fa739b8474050e15da3d821e909007defe49c2413641527ac2084b0231fa - Sigstore transparency entry: 1439693373
- Sigstore integration time:
-
Permalink:
skarL007/-lumen-ai-sdk@316e21bfb8d3cf75b35eadda5d22bab892947488 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/skarL007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@316e21bfb8d3cf75b35eadda5d22bab892947488 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lumen_ai_core-0.1.3-py3-none-any.whl.
File metadata
- Download URL: lumen_ai_core-0.1.3-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
004ccd06c79f9bdd41c702a1d032f364e8566deec007c3616ed19a5b92fcdd09
|
|
| MD5 |
eff402604456549e80fea22b7674cb60
|
|
| BLAKE2b-256 |
e5f8c5232bb07a65e41a1b7c332bcdf5f322a38b47ddcabed1491d53995b85c2
|
Provenance
The following attestation bundles were made for lumen_ai_core-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on skarL007/-lumen-ai-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lumen_ai_core-0.1.3-py3-none-any.whl -
Subject digest:
004ccd06c79f9bdd41c702a1d032f364e8566deec007c3616ed19a5b92fcdd09 - Sigstore transparency entry: 1439693381
- Sigstore integration time:
-
Permalink:
skarL007/-lumen-ai-sdk@316e21bfb8d3cf75b35eadda5d22bab892947488 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/skarL007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@316e21bfb8d3cf75b35eadda5d22bab892947488 -
Trigger Event:
release
-
Statement type: