Registry / llm-agents / langsmith-fetch

langsmith-fetch

JSON →
library0.3.1pypypiunverified

Minimal CLI and library for fetching LangSmith threads and traces. Version 0.3.1, regular releases on PyPI.

pip install langsmith-fetch
INSTALL
IMPORT
SIG · LANGSMITH-FETCH
L
langsmith-fetch
llm-agentspythonv0.3.1
Install
7.3s avg
Import
Disk
78MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 8.9s
py 3.11
✓ —
✓ 7.7s
py 3.12
✓ —
✓ 6.3s
py 3.13
✓ —
✓ 6.4s
py 3.9
✕ build_error
✕ build_error
78MB installed
● package 78MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LangSmithFetch
from langsmith_cli import LangSmithFetch
from langsmith_fetch import LangSmithFetch

Fetch a LangSmith thread by ID using environment variable for API key.

import os from langsmith_fetch import fetch_thread api_key = os.environ.get('LANGSMITH_API_KEY', '') result = fetch_thread('thread_id_here', api_key=api_key) print(result)
langsmith-fetch --version
Debug
Known issues
gotchaThe CLI and Python API have different parameter names. Use `--api-key` for CLI, `api_key` for Python.
fix
Be consistent with casing and dashes depending on usage.
affects: >=0.1.0
deprecatedPython 3.9 support dropped in 0.3.0, requires Python >=3.10.
fix
Use Python 3.10 or newer.
affects: >=0.3.0
gotchaAPI key must be passed explicitly; reading from environment is not automatic.
fix
Always provide `api_key` parameter or use `--api-key` flag in CLI.
affects: >=0.1.0
breakingIn version 0.3.0, the return format of `fetch_trace` changed from dict to custom Trace object.
fix
Access attributes directly instead of dict keys, e.g., `trace.id` instead of `trace['id']`.
affects: 0.3.0
Upgrade
Version history
0.3.1latest on PyPI · released Dec 12, 2025
Audit
Dependencies
langsmithrequiredCore dependency for LangSmith API interaction
clickrequiredUsed for CLI interface
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
langsmith-fetch — pip install langsmith-fetch · libregistry