evalops-anthropic
Drop-in Anthropic SDK shim for stamping EvalOps organization scope, principal attribution, trace IDs, and provider references onto Anthropic-compatible requests.
This package wraps the official Anthropic SDKs so teams can route model calls through EvalOps with minimal code changes.
Python
pip install evalops-anthropic
from evalops_anthropic import Anthropic
client = Anthropic(organization_id="org_123", principal="user:ada@example.com")
message = client.messages.create(
**client.with_provider_ref(
{
"model": "claude-sonnet-4.6",
"max_tokens": 256,
"messages": [{"role": "user", "content": "hello"}],
}
)
)
Node
npm install @evalops/anthropic
import { Anthropic } from "@evalops/anthropic";
const client = new Anthropic({
organizationId: "org_123",
principal: "user:ada@example.com",
});
const message = await client.messages.create(
client.withProviderRef({
model: "claude-sonnet-4.6",
max_tokens: 256,
messages: [{ role: "user", content: "hello" }],
}),
);
Environment
EVALOPS_API_KEYorANTHROPIC_API_KEY: Platform-issued bearer token.EVALOPS_ORGANIZATION_ID: organization scope stamped into requests.EVALOPS_PRINCIPAL: optional actor string for audit attribution.EVALOPS_TRACE_ID: optional trace correlation ID.EVALOPS_LLM_GATEWAY_ANTHROPIC_URL: Anthropic-compatible gateway base URL.EVALOPS_LLM_GATEWAY_URL: fallback gateway base URL.EVALOPS_PROVIDER_ENVIRONMENT: defaults toprod.EVALOPS_PROVIDER_CREDENTIAL_NAME: optional provider ref credential name.EVALOPS_PROVIDER_TEAM_ID: optional provider ref team ID.
Provider References
Use with_provider_ref or withProviderRef when a request should select a
specific provider credential. Organizations with default provider routing can
omit the helper and keep the vendor SDK call shape.
Metadata
Release files for evalops-anthropic 0.3.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 |
|---|---|---|---|---|
| evalops_anthropic-0.3.0.tar.gz | 22.9 kB | With provenance | Details for evalops_anthropic-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evalops_anthropic-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for evalops_anthropic-0.3.0-py3-none-any.whl |
Total release size: 26.2 kB
Release files / evalops_anthropic-0.3.0.tar.gz
| Download URL | evalops_anthropic-0.3.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a08826dcbb8764603e898e005d0f3e2e64432b066ef9146289b30aaf4ab49308
|
|
BLAKE2b-256 checksum How to use checksums |
4d8fda51b29225ee2a93128869a282cc8e793ee9f837d4e7f9a3b278c65ea680
|
| 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 May 3, 2026.
Transparency logRelease files / evalops_anthropic-0.3.0-py3-none-any.whl
| Download URL | evalops_anthropic-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c868453767a6714aa8ef869b70601956b13dcdafa54a0dae591ad5be66747c54
|
|
BLAKE2b-256 checksum How to use checksums |
c0c3f75fd1e576cd872be8f4f9f119f5cacc387f6dfeb0ed4e833922fc31c965
|
| 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 May 3, 2026.
Transparency logSecurity for evalops-anthropic 0.3.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
Both files in this release have been uploaded with provenance metadata.
Attestation for evalops_anthropic-0.3.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 May 3, 2026.
Transparency logA 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.