Skip to main content

AI Bill of Materials Standard — open standard SDK for AI component transparency

Project description

aibomstd

The open standard for AI Bill of Materials.

Scan any repo and instantly know what AI components are running, which send data outside your boundary, and what your compliance risk is.

CI PyPI License Python


Install

pip install aibomstd

CLI — scan a repo in seconds

aibomstd scan ./my-repo
┌─────────────────────┬────────────┬──────────────┬──────────┬────────┐
│ Component           │ Type       │ Provider     │ Boundary │ Risk   │
├─────────────────────┼────────────┼──────────────┼──────────┼────────┤
│ openai              │ api-client │ openai       │ leaves   │ high   │
│ anthropic           │ api-client │ anthropic    │ leaves   │ high   │
│ langchain           │ framework  │ langchain-ai │ internal │ none   │
│ torch               │ framework  │ pytorch      │ internal │ none   │
│ llama-3-8b.gguf     │ model      │ unknown      │ internal │ medium │
│ training.jsonl      │ dataset    │ unknown      │ internal │ medium │
└─────────────────────┴────────────┴──────────────┴──────────┴────────┘

Summary:
  Total components : 6
  Data egress      : YES
  Shadow AI        : YES
  Risk score       : HIGH

Generated: my-repo.aibom.json

What it detects

Component type Examples
api-client openai, anthropic, cohere, mistral, groq
framework langchain, llama-index, transformers, ollama
model .gguf, .safetensors, .pt, .onnx files
dataset .jsonl, .parquet, .arrow files in data/ folders
Shadow AI API keys in .env not declared in dependencies

Auto-detects data-leaves-boundary and data-residency for every component.


Other CLI commands

# Validate a BOM file against the schema
aibomstd validate my-repo.aibom.json

# Check version
aibomstd version

SDK — generate BOMs in Python

from aibomstd import AiBomBuilder
from aibomstd.components import ModelComponent, ApiClientComponent

bom = (
    AiBomBuilder(product="my-ai-product", version="1.0.0")
    .add_component(ModelComponent(
        name="llama-3-8b-instruct",
        version="3.0",
        provider="meta",
        data_leaves_boundary=False,
        data_residency="IN"
    ))
    .add_component(ApiClientComponent(
        name="gpt-4o",
        version="2024-05-13",
        provider="openai",
        data_leaves_boundary=True,
        data_residency="US"
    ))
)

print(bom.to_json())       # aibomstd JSON
bom.to_html()              # self-contained HTML report
bom.to_cyclonedx()         # CycloneDX v1.7 JSON

Schema

Every output document references the canonical schema:

https://aibomstd.com/schema/v0.1/aibomstd.schema.json

License

Apache 2.0 — https://aibomstd.com

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

aibomstd-0.2.6.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

aibomstd-0.2.6-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file aibomstd-0.2.6.tar.gz.

File metadata

  • Download URL: aibomstd-0.2.6.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aibomstd-0.2.6.tar.gz
Algorithm Hash digest
SHA256 b07c34c9f9e23e26391aa08bc242b09997c5bd25a9d834859cf2b38e1ce3dc4e
MD5 e32d45b18dc2751efc0bc8760d7c3d8f
BLAKE2b-256 186bac04037f6c0cdc548d6cd12d6547a1e982552cb0755cc1a5a1714be6475b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aibomstd-0.2.6.tar.gz:

Publisher: publish-pypi.yml on aibomstd/aibomstd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aibomstd-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: aibomstd-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aibomstd-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5846e4ef066f79b16d2c5299c7133523c834f6106aa50a438244bee954852c
MD5 cc99283e5eebe79b67b204304e905033
BLAKE2b-256 268faa33088b88e0ddb7535daa4fac2924ac81a4ae6dcf3855ac7f41f67bc2d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for aibomstd-0.2.6-py3-none-any.whl:

Publisher: publish-pypi.yml on aibomstd/aibomstd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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