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.2.tar.gz (2.4 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.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: truthlocks_anthropic-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 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.2.tar.gz
Algorithm Hash digest
SHA256 c9dddda93a951f78739af362e96660b6e268fe17399c9539fb4b3202fdd53b65
MD5 c929760d3e3933e41e3051cd445b7493
BLAKE2b-256 8009149bb3987c623420bc418251ee2fd5b8048b311861eae2145f2fc7bf67bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truthlocks_anthropic-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 865f1ad7e4a16fb45f6ed7365cbd7ccbe99da305493e0a325b3937d4fdeec44c
MD5 9feee2fd9436d4a8ee481e8d878f4de5
BLAKE2b-256 ae8ab0d760ee3801c7ad5e128a09026b0af3e193de816b9c161dc6c677150828

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