Skip to main content

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

Project description

truthlocks-openai

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

Installation

pip install truthlocks-openai

Quick Start

from truthlocks_openai import MAIPOpenAIWrapper

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

# Make API calls -- receipts are generated automatically
response, receipt = wrapper.chat_completions_create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}],
)

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

API

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

What You Get

  • Tamper-proof audit trail for every chat completion, embedding, and moderation call
  • 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-openai is a thin wrapper around maip-ai-connectors, the core Truthlocks MAIP SDK for Python. It re-exports the OpenAI-specific wrapper so you can install only what you need.

Requirements

Documentation

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

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_openai-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_openai-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: truthlocks_openai-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_openai-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7f25409e2fe17d31bbae2556eb774f2f8374c10e04da11b14258f52a7122fa55
MD5 0a21e9757d1ca04eb73c2bc79a560e83
BLAKE2b-256 3b18bd15bb3fcc1a61e8cac53b4f0a816214799d6e0856b7df21e6aec5cd48ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truthlocks_openai-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 795751785ac1ce8a4a898eceb882f2434bfdd92705e4f4244ed410413265fe2e
MD5 07368ff0c172eb39d8e9c6d5afb57d89
BLAKE2b-256 7d019c53fd5653c96d5b32cbaeff7e9a24a54b1e58c7cc946a9f141ebf83648a

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