Skip to main content

PyPI version License: MIT

AIBOM

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

getaibom.com

pip install aibom-cli
aibom scan .

What it does

AIBOM scans your Python ML project and outputs a structured document listing the AI models, datasets, and frameworks used in your project. This provides the core inventory required for the technical documentation under Annex IV of the EU AI Act.

The tool detects components from major AI providers and libraries, helping you automatically generate a baseline "AI Bill of Materials" to accelerate your compliance workflow.

Installation

pip install aibom-cli==0.2.0

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.2.0",
  "generated_at": "2026-03-14T05:55:00Z",
  "project_path": "./my-project",
  "datasets": [
    {
      "name": "squad",
      "source": "huggingface",
      "source_url": "https://huggingface.co/datasets/squad",
      "detected_in": "train.py:4"
    }
  ],
  "models": [
    {
      "name": "gpt-4o",
      "provider": "openai",
      "model_card_url": null,
      "detected_in": "inference.py:12"
    }
  ],
  "apis": [
    {
      "provider": "openai",
      "endpoint_pattern": "chat.completions.create",
      "detected_in": "inference.py:12"
    }
  ]
}

CI/CD Integration

Automate your compliance documentation by running AIBOM in your CI/CD pipeline. This ensures your AI Bill of Materials is always up-to-date.

Here’s a quick example for GitHub Actions:

name: AIBOM Scan

on:
  push:
    branches:
      - main

jobs:
  aibom-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.10'
      - run: pip install aibom-cli
      - run: aibom scan . --format markdown --output aibom-report.md
      - uses: actions/upload-artifact@v4
        with:
          name: aibom-report
          path: aibom-report.md

For GitLab CI and Jenkins examples, see the CI/CD integration guide.

What is the EU AI Act?

The EU AI Act requires providers of high-risk AI systems to maintain technical documentation detailing the system's components, 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.

Detection Coverage

AIBOM v0.2.0 detects usage of the following frameworks and providers:

Provider / Framework Type
HuggingFace Models & Datasets
OpenAI Models & API Usage
Anthropic Models & API Usage
Google Vertex AI Models & API Usage
Cohere Models & API Usage
TensorFlow Datasets (tfds)
PyTorch Datasets (torchvision)
scikit-learn Models & Datasets
LangChain Components
LlamaIndex Components

License

MIT

Developer FAQ

Does AIBOM scan all Python files recursively?

Yes. The aibom scan . command scans for Python files recursively within the specified directory.

Does it work with virtual environments or requirements.txt?

No. Version 0.2.0 performs an AST (Abstract Syntax Tree) scan on Python files directly. It does not analyze virtual environments or parse dependencies from requirements.txt.

Can I scan a single file instead of a whole project?

No, single-file scanning is not supported in v0.2.0. The tool currently operates on directories.

What does the JSON output schema look like?

The JSON output contains aibom_version, generated_at, project_path, and three arrays for discovered assets: datasets, models, and apis.

Is this an official EU AI Act compliance tool?

No. AIBOM is an open-source, community-driven project and is not an official tool for EU AI Act compliance.

Can I contribute new framework detections?

Yes, contributions are encouraged. See our CONTRIBUTING.md file for details on how to get started.

Metadata

Release files for aibom-cli 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aibom-cli 0.3.0
File Size Uploaded Provenance
aibom_cli-0.3.0.tar.gz 7.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aibom-cli 0.3.0
File Interpreter ABI Platform
aibom_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / aibom_cli-0.3.0.tar.gz

Download URL aibom_cli-0.3.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
518c64e273dc923739dabd9853f3da4f9e48a5f73d9cb92b4434518a3016a1b9
BLAKE2b-256 checksum
How to use checksums
c925c955fdcd47a2ee4dc3e834f2577d41a5520c26510a5d6fab8df3167c328a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / aibom_cli-0.3.0-py3-none-any.whl

Download URL aibom_cli-0.3.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f08c300ae91ef86154f786b6c337b78994a2f62a599cf20a4771ac5f4a0a9018
BLAKE2b-256 checksum
How to use checksums
c0abb019152489fc1e80a84cc0d1fdc42e482c01e8975093eddc0bd1d88b70e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for aibom-cli 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page