Skip to main content

LumenAI Core — Real-time FinOps & Observability layer for Generative AI

Project description

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 and AsyncRedisExporter
  • 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()

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

lumen_ai_core-0.1.2.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lumen_ai_core-0.1.2-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file lumen_ai_core-0.1.2.tar.gz.

File metadata

  • Download URL: lumen_ai_core-0.1.2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lumen_ai_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 90cb7d44ee043054f7980a5f83195143669761269cfdaf059de01de26830562c
MD5 8e29c72aabf6a0779766a8a35f62a30a
BLAKE2b-256 29b53228f665060fd49b9ce37dc9f183fce954288eba15fa2e15775de517b99b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_core-0.1.2.tar.gz:

Publisher: publish.yml on skarL007/-lumen-ai-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lumen_ai_core-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lumen_ai_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lumen_ai_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0932214017c2707920009af3b2af97bf080f707f43754be9be2236fb6848dae1
MD5 21b1ffc3907e19e387ecc62b1bd0c34d
BLAKE2b-256 d0ee41ebfc79392ecc2b2d3ec8e0845d50c70d43ed2dd9062656eb66487385db

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_core-0.1.2-py3-none-any.whl:

Publisher: publish.yml on skarL007/-lumen-ai-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page