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.2.0.tar.gz (13.1 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.2.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_act_check-0.2.0.tar.gz
  • Upload date:
  • Size: 13.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 36dec82649b968a591d0c1fbfb6ba92d5af01f0acd0cb51f41e570bc2fa99adf
MD5 56fdc1fc43a1b0e2322fdb8a72ee6283
BLAKE2b-256 5a14d7c8c3bc91e09ea96f5a4b830f9c4a28d467a4e3df161e7d630b428827d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_act_check-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 656612e88b69c99faa54907a25a3b6081c671572d44891a4fe071b23a0b5da9e
MD5 a376485c55ede11d5d5b5887a707d799
BLAKE2b-256 dbef6a2846e51855b057b601587fdedcd43baaf9bdcb1173503394b8948f9e6f

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