Skip to main content

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

Project description

axemere-gateway-anthropic

License: MIT

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_GATEWAY_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_GATEWAY_TOKEN Bearer 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.7.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.7-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.1.7.tar.gz
Algorithm Hash digest
SHA256 3a1a62f80b452bd4348179a7cceb0f38f411d4a65b12de0a9678f10832f96442
MD5 9aca9417025061ccccead001a79e15b7
BLAKE2b-256 e919fe631d01a1c421c21b5f1362b4270e828da996511b3e979f757e4526d6f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c75331682b76be7a6d8e54b29e21ed3c57a45e7cf897a0860a78b658144a0731
MD5 cbc7179132dc135adb736fc0906f5f7b
BLAKE2b-256 02850746281cd93650dec0b61b813d956c87a24aa55aef809d9a823c4cbdab44

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.1.7-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