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.
Metadata
Release files for ai-regulation-scanner 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_regulation_scanner-1.0.0.tar.gz | 22.9 kB | With provenance | Details for ai_regulation_scanner-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_regulation_scanner-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ai_regulation_scanner-1.0.0-py3-none-any.whl |
Total release size: 48.2 kB
Release files / ai_regulation_scanner-1.0.0.tar.gz
| Download URL | ai_regulation_scanner-1.0.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4539f222e2080a1499c00eade4fad012a9dfb688d3dbded82952670c6034d6ac
|
|
BLAKE2b-256 checksum How to use checksums |
cb4d866921f34fbffd26be0b763aa4754e9ec7fcca98bc021f08663a27e80517
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logRelease files / ai_regulation_scanner-1.0.0-py3-none-any.whl
| Download URL | ai_regulation_scanner-1.0.0-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8344f85262b63f73286ff6421b7bc2375ef0a2a5684c7fb519915ffe1635ec6d
|
|
BLAKE2b-256 checksum How to use checksums |
a91ecc698d5fe0fdcfb28dcff91d1fe1a6a6dd77146df678b93eb20b208a7b2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logSecurity for ai-regulation-scanner 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ai_regulation_scanner-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.