Skip to main content

seerlens (Python)

Send your Python app's LLM calls to Seerlens. Traces go out as OpenTelemetry GenAI spans, so they land in the same dashboard as the .NET ones.

Seerlens

pip install seerlens
import seerlens

seerlens.configure("http://localhost:5005")

with seerlens.trace("answer ticket", model="gpt-4o") as span:
    reply = my_llm(prompt)
    span.complete(prompt=prompt, completion=reply, input_tokens=40, output_tokens=12)

seerlens.flush()  # before a short script exits

Or record a call you already made:

seerlens.record(model="gpt-4o", prompt="hi", completion="hello",
                input_tokens=10, output_tokens=5, duration_ms=820)

Traces are sent on a background thread. If the collector is down the trace is dropped; it never blocks or throws into your app.

No third-party dependencies. Run the example against a running collector:

python example.py

Metadata

Release files for seerlens 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seerlens 1.5.0
File Size Uploaded
seerlens-1.5.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seerlens 1.5.0
File Interpreter ABI Platform
seerlens-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / seerlens-1.5.0.tar.gz

Download URL seerlens-1.5.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8cf75644bc78b07ffce67238aa4b335fed035a978a3cfbe967f9de63a5b3bec5
BLAKE2b-256 checksum
How to use checksums
d435571e8a73b2f14034b51f51aef37d8db3d127b42c87775c586d40385aaaad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / seerlens-1.5.0-py3-none-any.whl

Download URL seerlens-1.5.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fda19aa179e93db0b6fb2f6ac12a76180b04e70508e050f07288f616670172b5
BLAKE2b-256 checksum
How to use checksums
13605a1d2f396cdfb3b57a274e8a311435b6cf01ffe4bcb612e8a7afdef54ad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

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