loupe-sdk
Python SDK for Loupe — open-source observability and replay for LLM agents.
Instrument your agent with three lines, see every trace in the dashboard, then replay any run with a different prompt or model and diff the outputs side-by-side.
Install
pip install loupe-sdk
Quick start
import loupe
from groq import Groq
loupe.init(api_key="lp_...", host="https://your-loupe-server.onrender.com")
client = Groq(api_key="...")
loupe.instrument_groq(client) # also: instrument_openai, instrument_anthropic
@loupe.trace(name="my_agent")
def run_agent(query: str) -> str:
with loupe.span("search", type="tool") as s:
results = do_search(query)
s.output = {"count": len(results)}
...
Every decorated call becomes a trace; every loupe.span() and auto-instrumented LLM call becomes a span under it.
Self-host
See the Loupe repo for the full server + dashboard setup.
Release files for loupe-sdk 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| loupe_sdk-0.3.2.tar.gz | 26.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| loupe_sdk-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.1 kB
Release files / loupe_sdk-0.3.2.tar.gz
| Download URL | loupe_sdk-0.3.2.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e145b51d421de3114e92babfd156ef1e79fb72a15a3996527e264972cb03e2ba
|
|
BLAKE2b-256 checksum How to use checksums |
8a917a7bc6922afa89697eaafa79561a2e140e88511be30cab6bb928e8930758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|
Release files / loupe_sdk-0.3.2-py3-none-any.whl
| Download URL | loupe_sdk-0.3.2-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1575a256accba80b7d8f51415e6f5f9297c7de089dfb98f4f273c4042137e612
|
|
BLAKE2b-256 checksum How to use checksums |
b9839b4441b58671fcab40fbc8e075f2db79597ef3d75ff51937750ebdecfcf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|