Skip to main content

ai-act-guard

Official Python SDK & ASGI Middleware for AI Act Guard (ai-act-guard.eu).

Turnkey compliance middleware for EU AI Act enforcement under Article 50 (Transparency Disclaimers), Article 14 (Human Oversight / HITL), and Article 12 (Audit Logging).


🚀 Installation

pip install ai-act-guard-sdk

⚡ FastAPI Quickstart

from fastapi import FastAPI
from ai_act_guard.middleware import AIActGuardMiddleware

app = FastAPI()

app.add_middleware(
    AIActGuardMiddleware,
    api_key="ag_live_your_key_here",
    hitl_enabled=True,
    user_consent_obtained=True
)

@app.post("/api/chat")
async def chat():
    return {"message": "Hello from AI"}

🏷️ Injected Response Headers

  • X-AI-Generated: true
  • X-AI-Act-Jurisdiction: EU
  • X-AI-Event-Id: evt_9a82f102-1204
  • X-AI-Act-Compliance-Id: comp_823f0a12c4
  • X-AI-HITL-Oversight: enabled
  • X-AI-User-Consent: verified

📄 License

MIT © 2026 AI Act Guard (ai-act-guard.eu)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_act_guard_sdk-1.0.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

ai_act_guard_sdk-1.0.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ai_act_guard_sdk-1.0.5.tar.gz.

File metadata

  • Download URL: ai_act_guard_sdk-1.0.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for ai_act_guard_sdk-1.0.5.tar.gz
Algorithm Hash digest
SHA256 84f0af7c2e5cf360444555cb3b67092092eb592c51b11ae53c24533b345a4d8e
MD5 4c6e4460edddf315a0747012682c0b55
BLAKE2b-256 38af89a24886c4e3a959a72fce05edca2c02768f2a2e31c55c90cef23bc1df9b

See more details on using hashes here.

File details

Details for the file ai_act_guard_sdk-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_act_guard_sdk-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7f3ebbc3d5915a7a8c456752d25c18325b4790b712a25972e61ac0d0660e6157
MD5 5666c05d4f1cabadea6768ed4447967d
BLAKE2b-256 22f385e3d19811d04af299a47c6e8fd04fb6a8f31e967b4e74528b8af4ea5eda

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