Skip to main content

Generate EU AI Act Annex IV compliance documentation from your ML codebase

Project description

AIBOM

Generate EU AI Act Annex IV compliance documentation from your ML codebase in one command.

pip install aibom-cli
aibom scan ./your-project

What it does

AIBOM scans your Python ML project and outputs a structured document listing:

  • Datasets — HuggingFace datasets, TensorFlow datasets, PyTorch torchvision datasets
  • Models — HuggingFace pretrained models, OpenAI models, Anthropic models
  • External APIs — OpenAI, Anthropic, Google AI, Cohere, Replicate

This covers the dataset and model documentation requirements in EU AI Act Annex IV, Section 2.

Installation

pip install aibom-cli

Requires Python 3.9+

Usage

# Scan a project, output JSON (default)
aibom scan ./my-project

# Save to file
aibom scan ./my-project --output report.json

# Markdown output
aibom scan ./my-project --format markdown --output report.md

Example output

{
  "aibom_version": "0.1.0",
  "generated_at": "2026-03-13T13:51:17Z",
  "project_path": "./my-project",
  "datasets": [
    {
      "name": "squad",
      "source": "huggingface",
      "source_url": "https://huggingface.co/datasets/squad",
      "detected_in": "train.py:4"
    }
  ],
  "models": [
    {
      "name": "gpt-4",
      "provider": "openai",
      "model_card_url": null,
      "detected_in": "inference.py:12"
    }
  ],
  "apis": [
    {
      "provider": "openai",
      "endpoint_pattern": "chat.completions.create",
      "detected_in": "inference.py:12"
    }
  ]
}

What is the EU AI Act?

The EU AI Act requires providers of high-risk AI systems to maintain technical documentation including the datasets and models used. AIBOM generates the dataset and model inventory component of that documentation automatically.

Relevant articles: Annex IV Section 2, Article 11, Article 13.

Full enforcement for high-risk AI systems begins August 2027. Foundation model transparency rules are in effect since August 2025.

Detection coverage

Source Detected via
HuggingFace datasets load_dataset() calls
HuggingFace models from_pretrained() calls
OpenAI (new SDK) client.chat.completions.create()
OpenAI (legacy) openai.ChatCompletion.create()
Anthropic client.messages.create()
TensorFlow datasets tfds.load() calls
PyTorch torchvision torchvision.datasets.*

License

MIT

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

aibom_cli-0.2.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aibom_cli-0.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aibom_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aibom_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cc2681d01a8832d105a9822717681f70031ceb13bf41919e776e7efa69b39ad6
MD5 2ace33c87be2d48af604b35797702eed
BLAKE2b-256 83511feaa263d6badb87ec34c83bdbea49e650a1fcf80d8e1ae757daf3e0c836

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aibom_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aibom_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc9f4363acef0209cd97599b8f67867cc48040219d398e9943bb65cd6f99095
MD5 c1b741682b5c339003e95b37d2e72b7a
BLAKE2b-256 2c3181b4099d103ac01c0c89ac6093025645b686f90b830bf15d46340204796f

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