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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agenttrace_io-0.4.23.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agenttrace_io-0.4.23-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file agenttrace_io-0.4.23.tar.gz.

File metadata

  • Download URL: agenttrace_io-0.4.23.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agenttrace_io-0.4.23.tar.gz
Algorithm Hash digest
SHA256 3cbc099cadf29fc8b49223a5a254e2eb593f29e4680863674845482a68931737
MD5 a765bd8eb014f40a3f9ca289fdb36d68
BLAKE2b-256 52d68aac7a2135ea2da5e5cca8e4a4a9ae7e1def816f5c2f3f2473bf76bbf334

See more details on using hashes here.

Provenance

The following attestation bundles were made for agenttrace_io-0.4.23.tar.gz:

Publisher: release.yml on Klepsiphron/agenttrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agenttrace_io-0.4.23-py3-none-any.whl.

File metadata

  • Download URL: agenttrace_io-0.4.23-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agenttrace_io-0.4.23-py3-none-any.whl
Algorithm Hash digest
SHA256 2307f0388d8efb15330844e078ecb17f697129994df534e94d297ba4e31591a4
MD5 4ea01cbde671768fee5acb2fbbbe5ac3
BLAKE2b-256 039313496ffad1cfc93ef461d089e482984ce80718ba9ce71c164c909a0249d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for agenttrace_io-0.4.23-py3-none-any.whl:

Publisher: release.yml on Klepsiphron/agenttrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page