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:trueX-AI-Act-Jurisdiction:EUX-AI-Event-Id:evt_9a82f102-1204X-AI-Act-Compliance-Id:comp_823f0a12c4X-AI-HITL-Oversight:enabledX-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
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 ai_act_guard_sdk-1.0.2.tar.gz.
File metadata
- Download URL: ai_act_guard_sdk-1.0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a69c597ca3837d52a5ec57f18debf4fa37b35daf49bfc4ed92d5badf2169f97
|
|
| MD5 |
c60de1f65541d1ae546a9f364b041ec3
|
|
| BLAKE2b-256 |
aa85b9487d22bf216c41134eeb8df07141a4dd9ffd063b2be163db5122dbcf76
|
File details
Details for the file ai_act_guard_sdk-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ai_act_guard_sdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43fd59a4dbb940a0c35e2752025f85a2d0570440b64f338c11d4bfbc4c1ed4e7
|
|
| MD5 |
e3c9f816bf423f5a46d62836d171b877
|
|
| BLAKE2b-256 |
8b6d765efd8c3829011c2acb4193d3acdab08456f6aa29e9924770b2b49db1c8
|