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.
Metadata
Release files for loupe-sdk 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| loupe_sdk-0.3.3.tar.gz | 30.1 kB | Without provenance | Details for loupe_sdk-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loupe_sdk-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for loupe_sdk-0.3.3-py3-none-any.whl |
Total release size: 52.3 kB
Release files / loupe_sdk-0.3.3.tar.gz
| Download URL | loupe_sdk-0.3.3.tar.gz |
|---|---|
| Size | 30.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb1e945d8239a051751a9493d06d12e478a99943f4926ba2a75527406489ca6d
|
|
BLAKE2b-256 checksum How to use checksums |
e0665183111b020fc045b982cab73fe9b590edee4b22239312f6c4afb8b52607
|
| 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.3-py3-none-any.whl
| Download URL | loupe_sdk-0.3.3-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acb7d3e1886cb3c446dd902ff496e0297d57683de75dc8e456479a2fc9d7ce18
|
|
BLAKE2b-256 checksum How to use checksums |
8fbf0b5b7805005b7d5d5bbf6c5e7fa416ba296eaa979c97d622bb246b7d7c20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|
Security for loupe-sdk 0.3.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.