Skip to main content

trayce

Python SDK for Trayce, open-source observability and evals for LLM agents. It traces agent runs into a Trayce server and provides the trayce CLI (trayce eval, trayce replay).

from trayce import instrument_anthropic, trace

instrument_anthropic()  # each Anthropic model call becomes an LLM span


@trace(name="support_agent", kind="agent")
def run(question: str) -> str: ...

The SDK reads TRAYCE_API_KEY and TRAYCE_ENDPOINT. Extras: trayce[eval] for trayce eval, trayce[otel] for the OpenTelemetry bridge. The llm_judge scorer currently uses Anthropic models only.

To run a Trayce server on this machine (needs Docker):

trayce up     # prints the web UI address, a setup token, and the settings for your agent
trayce down   # stops it; --delete-data also deletes its data

See the repository README for more.

Metadata

Release files for trayce 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 trayce 0.1.0
File Size Uploaded Provenance Actions
trayce-0.1.0.tar.gz 88.9 kB With provenance Details for trayce-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 158.0 kB

Release files / trayce-0.1.0.tar.gz

Download URL trayce-0.1.0.tar.gz
Size 88.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9a3bf26409dcb2eb717556521c2a44bf1d0c5fe7870b4a51a23d5d93f8cb0ebc
BLAKE2b-256 checksum
How to use checksums
17922cf206cc2a2ece2015f72a66b781c9a12700db1d5a68fb1c8a4bab9da117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 30, 2026.

Transparency log

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

Download URL trayce-0.1.0-py3-none-any.whl
Size 69.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76ed03537845821c3e6ee33193d5a66178938f4a80ee19e97cb2b27af8786e2d
BLAKE2b-256 checksum
How to use checksums
b4dd982060c18f4c6cdfe90599a72daaa37b827b0ee230cd82f68a9e7afeab18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 30, 2026.

Transparency log

Security for trayce 0.1.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trayce-0.1.0.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 Oct 30, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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