tracerazor-anthropic
Drop-in replacement for anthropic.Anthropic with automatic TraceRazor token-efficiency auditing. Change one import and every messages.create() call is captured as a reasoning step.
Install
pip install tracerazor-anthropic
You'll also need the tracerazor binary on your PATH (or a running tracerazor-server).
Use
from tracerazor_anthropic import Anthropic
client = Anthropic(agent_name="support-bot")
resp = client.messages.create(
model="claude-haiku-4-5-20251001",
max_tokens=512,
messages=[{"role": "user", "content": "Refund order ORD-9182"}],
)
# ... more calls ...
report = client.audit()
print(report.summary())
Constructor accepts every kwarg the plain anthropic.Anthropic does plus:
| Kwarg | Default | Meaning |
|---|---|---|
agent_name |
"claude-agent" |
Name used in the TraceRazor report |
tracer |
None |
Append to an existing Tracer instead of creating one |
server |
None |
URL of a running tracerazor-server (default: local binary) |
Not yet wrapped
- Streaming (
messages.stream) — fall through to the underlying client viaclient._innerfor now. - Async client (
anthropic.AsyncAnthropic).
Both are planned.
License
Apache-2.0
Metadata
Release files for tracerazor-anthropic 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tracerazor_anthropic-0.2.0.tar.gz | 3.6 kB | Without provenance | Details for tracerazor_anthropic-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tracerazor_anthropic-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for tracerazor_anthropic-0.2.0-py3-none-any.whl |
Total release size: 7.7 kB
Release files / tracerazor_anthropic-0.2.0.tar.gz
| Download URL | tracerazor_anthropic-0.2.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea2debf28cb6998442c3087fa53a5d492283472f922633a6f5c7123d2b133f4b
|
|
BLAKE2b-256 checksum How to use checksums |
d76edf6286ba5a4f6c801fbb23486186411d4ccf841de9c95703fbb2174ff459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Release files / tracerazor_anthropic-0.2.0-py3-none-any.whl
| Download URL | tracerazor_anthropic-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
165311723658659b6830f5ad7095878c90472efc77a1d0920c9d9261c5758c11
|
|
BLAKE2b-256 checksum How to use checksums |
913089973f9553390e62c95f8727f33ae2e0486f29760d41240a566bab4833b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Security for tracerazor-anthropic 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.