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

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.3.tar.gz (15.7 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.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

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

Hashes for lumen_ai_core-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3184fa739b8474050e15da3d821e909007defe49c2413641527ac2084b0231fa
MD5 c3a87899d5f75c256687e43d7da60a35
BLAKE2b-256 0007430398e988463e551699d4b4ddb118c2345c5df1f9e7f5114a840318a2f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_core-0.1.3.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.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

Hashes for lumen_ai_core-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 004ccd06c79f9bdd41c702a1d032f364e8566deec007c3616ed19a5b92fcdd09
MD5 eff402604456549e80fea22b7674cb60
BLAKE2b-256 e5f8c5232bb07a65e41a1b7c332bcdf5f322a38b47ddcabed1491d53995b85c2

See more details on using hashes here.

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

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