Skip to main content

Static scanner and Annex IV drafter for EU AI Act compliance (prototype)

Project description

🇪🇺 AI Act Compliance Scanner (Sovereign Code)

Don't let a €35M fine stop you from shipping. The open-source CLI that maps your Python code to the EU AI Act (Annex IV) in seconds.

License Status Sovereign Code CI

⚡ The Problem

The EU AI Act is here. If your software uses ML libraries (torch, sklearn, face_recognition), you might be classified as "High Risk" under Article 6.

  • Lawyers cost: €500/hour.
  • Ignorance costs: Up to 7% of global turnover.
  • Manual compliance: Boring, error-prone, and slow.

🛡️ The Solution

ai-act-check is a "Compliance-as-Code" tool. It parses your repository's Abstract Syntax Tree (AST), identifies regulated libraries, and uses an LLM Agent to draft your Annex IV Technical Documentation.

🚀 Quick Start

1. Install

pip install ai-act-check

2. The Smoke Test (No API Key needed)

Scan your repo for "High Risk" dependencies locally.

ai-act-check scan ./my-python-project

Output: JSON file with detected libraries and risk triggers.

3. Generate the Legal Draft (Requires API Key)

Turn your code scan into a formal legal draft.

export OPENROUTER_API_KEY="sk-..."
ai-act-check draft scan_results.json

Output: ANNEX_IV_DRAFT.txt written in formal legal prose.

📂 How it Works

  1. AST Analysis: We don't just look at requirements.txt. We parse your actual code to see how libraries are used.
  2. Risk Mapping: Deterministic mapping of libraries to Annex III use cases (Biometrics, Critical Infra, Employment).
  3. Agentic Drafting: An LLM agent (Compl-AI) acts as a Junior Associate to draft the text, strictly grounded in the scan evidence.

⚠️ Disclaimer

This tool is for technical documentation assistance only. It is not legal advice. You remain responsible for your compliance. For full conformity assessments and liability protection, visit Sovereign Code.

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

ai_act_check-0.3.0.tar.gz (13.7 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_check-0.3.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_act_check-0.3.0.tar.gz.

File metadata

  • Download URL: ai_act_check-0.3.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ai_act_check-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e2f627105c32b911b239d6eed8b756741e11a15644a0923dac550dd970b0f3c9
MD5 444749ac8c8e3a26fbc4672f52a0d8dc
BLAKE2b-256 ad14fdd7e986b4bcaa40b3e07826f82c13846b9b3d7bfb6573668889f7f636c8

See more details on using hashes here.

File details

Details for the file ai_act_check-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ai_act_check-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ai_act_check-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55f66e36ef0809dd26dd7e8806a8c65542fdb70f4f2491156625d4a4414f4957
MD5 824375be46025492c3e4d9a87626d4e3
BLAKE2b-256 878ff97d89863903764959fa9baa6477446be76685fb1ac2705ca5ee21902c95

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