Skip to main content

agenttrace-io (Python SDK)

Drop-in tracing for any AI agent. Local SQLite storage, zero dependencies, zero cloud.

Installation

pip install agenttrace-io

Requires Python 3.10+.

Quickstart

from agenttrace import init, trace

agent = init(db_path="./traces.db")

# Trace a callable
result = agent.trace("my-op", lambda: 42 * 2)

# Use as decorator
@trace("greet")
def greet(name: str) -> str:
    return f"Hello, {name}"

# Use as context manager
with agent.trace("context-op") as t:
    value = "computed"
    t.set_output(value)

# Query and export
traces = agent.get_traces()
stats = agent.get_stats()
agent.export("json")
agent.close()

See the full README for more.

License

MIT © Klepsiphron

Metadata

Release files for agenttrace-io 0.4.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agenttrace-io 0.4.24
File Size Uploaded
agenttrace_io-0.4.24.tar.gz 27.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agenttrace-io 0.4.24
File Interpreter ABI Platform
agenttrace_io-0.4.24-py3-none-any.whl Python 3 none any Details

Total release size: 45.3 kB

Release files / agenttrace_io-0.4.24.tar.gz

Download URL agenttrace_io-0.4.24.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc076da8b4a52c3832242b22e8034b81fd43652679d45b6fd0093eefe590adfa
BLAKE2b-256 checksum
How to use checksums
22b3b04761a86889fe2e16da2d0e9d932e0d5dc2a00145e7d1da810ced65382e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.

Transparency log

Release files / agenttrace_io-0.4.24-py3-none-any.whl

Download URL agenttrace_io-0.4.24-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7145871086d88c2a058d7ffe05759500addcb5e4644de51d1e1bc9ac8b466d7
BLAKE2b-256 checksum
How to use checksums
17d3ab364d51ff7a4779cab63f3c5342a911ee6a7f53c051213ad19a99955e03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.24 This release

2 release files

0.4.23

2 release files

0.4.22

2 release files

0.4.21

2 release files

0.4.7

2 release files

0.4.3

2 release files

0.3.3

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.9

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