Skip to main content

Axemere AI Gateway Anthropic SDK wrapper — drop-in Anthropic/AsyncAnthropic subclasses

Project description

axemere-gateway-anthropic

Drop-in replacement for the Anthropic Python SDK that routes every request through the Axemere AI Gateway.

Change one import — all existing Anthropic code works unchanged. The gateway adds cost controls, policy enforcement, and an append-only audit ledger to every call.

Install

pip install axemere-gateway-anthropic

Usage

# Before
from anthropic import Anthropic

# After — one line change
from axemere.gateway.anthropic import Anthropic

client = Anthropic()  # reads AXEMERE_GATEWAY_URL + AXEMERE_WORKLOAD_TOKEN
message = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=256,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)

Streaming and async (AsyncAnthropic) are both supported.

Configuration

Env var Description
AXEMERE_GATEWAY_URL Gateway base URL, e.g. http://localhost:7080
AXEMERE_WORKLOAD_TOKEN Workload token issued by the gateway

Links

License

MIT

Project details


Download files

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

Source Distribution

axemere_gateway_anthropic-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

axemere_gateway_anthropic-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file axemere_gateway_anthropic-0.1.0.tar.gz.

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09d057c0994dbfd9cb16798cd531223dc8f83ec9a196ca378c486eff28b26e8c
MD5 723dc181abb529993d7f74e3ee51857f
BLAKE2b-256 9067f21aadba34514f92410ed42afedaf4f79394b8ec59fe1f6c1787192af094

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.1.0.tar.gz:

Publisher: publish.yml on Axemere-LLC/axemere-python

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

File details

Details for the file axemere_gateway_anthropic-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e540d4bca9ecda6a1db668d9a94eeeee5d7e9e4c30ae0878918e83f059b924f2
MD5 c2452633632847702619dd86b9a139c7
BLAKE2b-256 e17a3ddb1c35d1c4498f678a6613fcb73ebc59d7ed4daa1a2bbb0cdbb1572e40

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Axemere-LLC/axemere-python

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 Pingdom Monitoring Sentry Error logging StatusPage Status page