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 Provenance Actions
agenttrace_io-0.4.24.tar.gz 27.1 kB With provenance Details for agenttrace_io-0.4.24.tar.gz

Built distribution (wheel)

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

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

Security for agenttrace-io 0.4.24

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agenttrace_io-0.4.24.tar.gz

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

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.

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