Skip to main content

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.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 loupe-sdk 0.3.3
File Size Uploaded
loupe_sdk-0.3.3.tar.gz 30.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for loupe-sdk 0.3.3
File Interpreter ABI Platform
loupe_sdk-0.3.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

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