Skip to main content

lumen-ai-celery

Celery integration for LumenAI.

Includes

  • CeleryInstrumentor
  • Signal-based instrumentation for task_prerun, task_postrun, and task_failure
  • Tenant extraction from task keyword arguments when tenant_id is provided
  • Task result metadata extraction for tokens_in, tokens_out, and cost_usd

Install

pip install lumen-ai-celery

Usage

from lumen_ai import LumenAI
from lumen_ai_celery import CeleryInstrumentor

LumenAI.init(
    service_name="worker",
    redis_url="redis://localhost:6379/0",
    instrumentors=[CeleryInstrumentor()],
)

The integration observes task lifecycle spans without changing existing task bodies.

Metadata

Release files for lumen-ai-celery 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-celery 0.1.3
File Size Uploaded
lumen_ai_celery-0.1.3.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / lumen_ai_celery-0.1.3.tar.gz

Download URL lumen_ai_celery-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ccc62df3881c970892932947efc99fc0ac3705dd055a1c2a1ef0b70a106c6349
BLAKE2b-256 checksum
How to use checksums
52a5f79c92c9125ec8d06480627764843114956da5f3d7ccb1de04af574d0b18
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_celery-0.1.3-py3-none-any.whl

Download URL lumen_ai_celery-0.1.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eec1bbdab8ac9893243dee5a0971eeca8cfd993da8fc16c56acc99d95a6f0c5
BLAKE2b-256 checksum
How to use checksums
2e9b03d014594b1b5e9f01bcffeb9b6f021e05fdd41d4474d90a503ba3fb7bf7
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