Skip to main content

Yeco-Lens Python SDK

Instrumentation SDK that streams real LLM logprobs to the Yeco-Lens dashboard.

from yeco_lens import YecoLens

yeco = YecoLens()  # connects to ws://127.0.0.1:7531 (or YECO_LENS_ENDPOINT)

with yeco.trace(model="gpt-4o", system_prompt="Be concise."):
    for chunk in yeco.openai_chat(client, model="gpt-4o", messages=..., top_logprobs=10):
        print(chunk.token, end="")  # streams to your app AND the dashboard

See the main repo README for the full guide.

Metadata

Release files for yeco-lens 1.0.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 yeco-lens 1.0.0
File Size Uploaded
yeco_lens-1.0.0.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yeco-lens 1.0.0
File Interpreter ABI Platform
yeco_lens-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / yeco_lens-1.0.0.tar.gz

Download URL yeco_lens-1.0.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4b574c45da109dfd21e103ea471bbf933d30620a808fbe0cf4447d3daba351ff
BLAKE2b-256 checksum
How to use checksums
86a0429e2ef929cb3e2e117b77eb09984da63605b1e65438135da6dae42e5cb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / yeco_lens-1.0.0-py3-none-any.whl

Download URL yeco_lens-1.0.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1dcbf1d2d2d55f6399fcb78f36a6877d3289b831f782303eab804144addd3b0
BLAKE2b-256 checksum
How to use checksums
62ded46d9d86ad11c996132e93417bf19061ce3653b8e1888176ef54dab34db4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

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