Skip to main content

pytracer-stores

Layer 3 of pyTracer: the trace store (ClickHouse) holding every captured span, and the mock store (PostgreSQL) holding recorded tool responses for deterministic replay.

from pytracer_stores import TraceStore, MockStore

traces = TraceStore(); traces.migrate()
traces.insert(spans, project="my-app")          # branch + commit required
failed = traces.query(failed_only=True, agent_name="planner")

mocks = MockStore(); mocks.migrate()
mocks.record("search", {"q": "hi"}, ["result"], is_failure=False)
mock = mocks.lookup("search", {"q": "hi"})       # newest recorded outcome

Connection defaults match the repo's docker-compose.yml; override via PYTRACER_CLICKHOUSE_* / PYTRACER_POSTGRES_* env vars.

Metadata

Release files for pytracer-stores 0.1.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 pytracer-stores 0.1.0
File Size Uploaded
pytracer_stores-0.1.0.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytracer-stores 0.1.0
File Interpreter ABI Platform
pytracer_stores-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / pytracer_stores-0.1.0.tar.gz

Download URL pytracer_stores-0.1.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
95f3fff41eaaf4c0fd6438bc2ede27d5d1c19f777bf463e911fa7fed6766d900
BLAKE2b-256 checksum
How to use checksums
42e8f6a408e126b26129af900c751b84135d79a8c650243b29da63d28cf9720f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / pytracer_stores-0.1.0-py3-none-any.whl

Download URL pytracer_stores-0.1.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1240b6d3efc3a643e5a43d71be82a9fb5562a8e84756da7064132835ae6f24fb
BLAKE2b-256 checksum
How to use checksums
8ef8d050a663bf05c9b69a993852a0c23a1565733d43b5e585c8e580ff973508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.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