Skip to main content

Truthlocks MAIP wrapper for Anthropic — auto-generate cryptographic receipts for every Claude API call

Project description

truthlocks-anthropic

Cryptographic receipt generation for every Anthropic Claude API call. Part of the Truthlocks MAIP (Machine-Attested Identity Protocol) ecosystem.

Installation

pip install truthlocks-anthropic

Quick Start

from truthlocks_anthropic import MAIPAnthropicWrapper

# Create the receipt-generating wrapper
wrapper = MAIPAnthropicWrapper()

# Make API calls -- receipts are generated automatically
message, receipt = wrapper.messages_create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

# receipt contains a cryptographic proof of the API call
print(receipt.receipt_id)

API

Class Description
MAIPAnthropicWrapper Drop-in wrapper for the Anthropic client that auto-generates MAIP receipts for every API call

What You Get

  • Tamper-proof audit trail for every Claude message, tool use, and streaming response
  • Cryptographic receipts anchored to a transparency log with sub-40 ms latency
  • Zero-config drop-in wrapper -- swap one line and receipts flow automatically
  • Compliance-ready evidence packages for SOC 2 Type II, ISO 27001, and EU AI Act

How It Works

truthlocks-anthropic is a thin wrapper around maip-ai-connectors, the core Truthlocks MAIP SDK for Python. It re-exports the Anthropic-specific wrapper so you can install only what you need.

Requirements

Documentation

Full guides, API reference, and examples: docs.truthlocks.com/sdk/anthropic

License

Apache 2.0 -- see LICENSE.

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

truthlocks_anthropic-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

truthlocks_anthropic-1.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file truthlocks_anthropic-1.0.1.tar.gz.

File metadata

  • Download URL: truthlocks_anthropic-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for truthlocks_anthropic-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7637f7b3ca14d1c8f44543b91fae300223ef080fec42ef21618a24b98b61a4a8
MD5 600b4697e14c0b6a5f0374e3f025c477
BLAKE2b-256 8a2081d7897e7c1b148082f031d33291525963d6e6e6551e420139de3ab30d6f

See more details on using hashes here.

File details

Details for the file truthlocks_anthropic-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for truthlocks_anthropic-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 942090b0e6549664c16d6f570c13ebd0a4e0bb0369896efb1acfb657f7d06a71
MD5 ee995a727714c0b2b894fec4d2d44972
BLAKE2b-256 8183b565be6e1ca1caf07ff3eb9282fc674eb9e516d3af7e75c4fa7386d5a634

See more details on using hashes here.

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