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.24.tar.gz (27.1 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.24-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agenttrace_io-0.4.24.tar.gz
  • Upload date:
  • Size: 27.1 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.24.tar.gz
Algorithm Hash digest
SHA256 bc076da8b4a52c3832242b22e8034b81fd43652679d45b6fd0093eefe590adfa
MD5 b74ea73de4e432a2bc17af9d5b58d8b1
BLAKE2b-256 22b3b04761a86889fe2e16da2d0e9d932e0d5dc2a00145e7d1da810ced65382e

See more details on using hashes here.

Provenance

The following attestation bundles were made for agenttrace_io-0.4.24.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.24-py3-none-any.whl.

File metadata

  • Download URL: agenttrace_io-0.4.24-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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 b7145871086d88c2a058d7ffe05759500addcb5e4644de51d1e1bc9ac8b466d7
MD5 0637de4b61b6ebfa6084738cd83ca77e
BLAKE2b-256 17d3ab364d51ff7a4779cab63f3c5342a911ee6a7f53c051213ad19a99955e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for agenttrace_io-0.4.24-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