Truthlocks MAIP wrapper for AWS Bedrock — auto-generate cryptographic receipts for every model invocation
Project description
truthlocks-bedrock
Cryptographic receipt generation for every AWS Bedrock model invocation. Part of the Truthlocks MAIP (Machine-Attested Identity Protocol) ecosystem.
Installation
pip install truthlocks-bedrock
Quick Start
import boto3
from truthlocks_bedrock import MAIPBedrockWrapper
# Create the receipt-generating wrapper
bedrock = boto3.client("bedrock-runtime")
wrapper = MAIPBedrockWrapper(client=bedrock)
# Make API calls -- receipts are generated automatically
response, receipt = wrapper.invoke_model(
modelId="anthropic.claude-3-sonnet-20240229-v1:0",
body='{"messages": [{"role": "user", "content": "Hello"}]}',
)
# receipt contains a cryptographic proof of the invocation
print(receipt.receipt_id)
API
| Class | Description |
|---|---|
MAIPBedrockWrapper |
Drop-in wrapper for the Bedrock Runtime client that auto-generates MAIP receipts for every model invocation |
What You Get
- Tamper-proof audit trail for every model invocation, embedding call, 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-bedrock is a thin wrapper around maip-ai-connectors, the core Truthlocks MAIP SDK for Python. It re-exports the Bedrock-specific wrapper so you can install only what you need.
Requirements
- Python >= 3.9
- A Truthlocks API key (get one free)
Documentation
Full guides, API reference, and examples: docs.truthlocks.com/sdk/bedrock
License
Apache 2.0 -- see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file truthlocks_bedrock-1.0.1.tar.gz.
File metadata
- Download URL: truthlocks_bedrock-1.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bbe456cb4dc2ef5a606a14a1edf7523a338a5d7caeaa05699786245f908fd0b
|
|
| MD5 |
85a64cfffbf89eb5eb3f50e7de568093
|
|
| BLAKE2b-256 |
ba2219eba11fd70838864b4cd1420309f2bd671802ce0e44a1511cb6e43a58f9
|
File details
Details for the file truthlocks_bedrock-1.0.1-py3-none-any.whl.
File metadata
- Download URL: truthlocks_bedrock-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96e28fa175714e4642fd7a14c20952a7065635f1a8018cf64a8921ae5b7e08fa
|
|
| MD5 |
673b6ef6fc12bbec307e7b563e7e8917
|
|
| BLAKE2b-256 |
dc85dbe02d5bf56eeb87c0cc9d024295d21b5e37f714d659bc3f1b42573d84f9
|