Scan AI systems for EU/UK/NIST AI regulation compliance
Project description
AI Regulation Compliance Scanner
Open-source CLI to evaluate AI systems against EU AI Act, UK AI principles, and NIST AI RMF.
v1.0 Scope
Implemented
- Multi-regulation rule evaluation via YAML rule packs (
eu-ai-act,uk-ai,nist-rmf) - Structured system profile input (
--inputJSON/YAML) - Compliance statuses per requirement:
pass,partial,fail,not_applicable - Gap scoring and recommendation generation
- Report outputs:
textjson(canonical machine-readable schema)htmlpdf
- CI quality gates:
pytest -qruff check .mypy scannerpython -m build
Out of Scope
- Automatic legal interpretation beyond rule-based checks
- Fairlearn/AIF360 and SHAP/LIME runtime integrations
Install
pip install ai-regulation-scanner
For local development:
pip install -e '.[dev]'
Quick Start
# Evaluate all supported regulations from a structured profile
ai-scan --input ./profile.yaml --regulation eu-ai-act,uk-ai,nist-rmf --format json --output ./report.json
# Render HTML report
ai-scan --input ./profile.yaml --regulation eu-ai-act,uk-ai --format html --output ./report.html
# Render PDF report
ai-scan --input ./profile.yaml --regulation eu-ai-act,uk-ai,nist-rmf --format pdf --output ./report.pdf
Input Model (--input)
Supported extensions: .json, .yaml, .yml.
metadata:
system_name: "Example AI System"
owner: "AI Governance"
description: "Clinical triage assistant"
use_case: "medical diagnosis support"
domain: "healthcare"
controls:
risk_management_system: true
data_governance: true
technical_documentation: true
human_oversight: false
evidence:
- id: "ev-1"
description: "Risk management plan and risk register"
tags: ["risk management"]
- "model card and technical documentation"
CLI Contract
--regulation: comma-separated values fromeu-ai-act,uk-ai,nist-rmf--format:text|json|html|pdf--output: optional for text/json/html, required for pdf
Exit Codes
0: Minimal/limited risk category1: High-risk category2: Prohibited category3: Validation/runtime error (input/args/output)
Canonical JSON Report Shape
Top-level keys:
metadatagenerated_atrisk_assessmentregulationssummary_scoresfindingsrecommendationsevidence_gaps
Release & Publishing
- GitHub Actions
CIworkflow enforces quality gates on PR/main. - GitHub Actions
Releaseworkflow runs onv*tags. - PyPI publish uses Trusted Publishing (
id-token: write). - Setup guide: docs/pypi-trusted-publishing.md
License
Apache 2.0 - See LICENSE
Disclaimer
This tool provides compliance guidance only and does not constitute legal advice. Always consult qualified legal counsel for regulatory decisions.
Project details
Release history Release notifications | RSS feed
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_regulation_scanner-1.0.0.tar.gz.
File metadata
- Download URL: ai_regulation_scanner-1.0.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4539f222e2080a1499c00eade4fad012a9dfb688d3dbded82952670c6034d6ac
|
|
| MD5 |
08f05b4a8f24ad806c06c3e43f77a526
|
|
| BLAKE2b-256 |
cb4d866921f34fbffd26be0b763aa4754e9ec7fcca98bc021f08663a27e80517
|
Provenance
The following attestation bundles were made for ai_regulation_scanner-1.0.0.tar.gz:
Publisher:
release.yml on ogulcanaydogan/AI-Regulation-Compliance-Scanner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_regulation_scanner-1.0.0.tar.gz -
Subject digest:
4539f222e2080a1499c00eade4fad012a9dfb688d3dbded82952670c6034d6ac - Sigstore transparency entry: 1058391653
- Sigstore integration time:
-
Permalink:
ogulcanaydogan/AI-Regulation-Compliance-Scanner@50be65af40a921e93d66e086e498e431ec56296b -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ogulcanaydogan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@50be65af40a921e93d66e086e498e431ec56296b -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai_regulation_scanner-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ai_regulation_scanner-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8344f85262b63f73286ff6421b7bc2375ef0a2a5684c7fb519915ffe1635ec6d
|
|
| MD5 |
ca70fb526e2ac2201f1776c53d947f19
|
|
| BLAKE2b-256 |
a91ecc698d5fe0fdcfb28dcff91d1fe1a6a6dd77146df678b93eb20b208a7b2a
|
Provenance
The following attestation bundles were made for ai_regulation_scanner-1.0.0-py3-none-any.whl:
Publisher:
release.yml on ogulcanaydogan/AI-Regulation-Compliance-Scanner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_regulation_scanner-1.0.0-py3-none-any.whl -
Subject digest:
8344f85262b63f73286ff6421b7bc2375ef0a2a5684c7fb519915ffe1635ec6d - Sigstore transparency entry: 1058391654
- Sigstore integration time:
-
Permalink:
ogulcanaydogan/AI-Regulation-Compliance-Scanner@50be65af40a921e93d66e086e498e431ec56296b -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ogulcanaydogan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@50be65af40a921e93d66e086e498e431ec56296b -
Trigger Event:
push
-
Statement type: