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.3.0.tar.gz (20.5 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.3.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aibomstd-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3e08e5d25987c4e912fc55e6662f0fc1f6cb6445a1ef558fd61aab7339542043
MD5 d5e113012ab283f4e1abfbd6ca3ee48c
BLAKE2b-256 1ea71be99cee023cdaf7d6083a653953db3896bf00684d70b74e133f63aa4b0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aibomstd-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: aibomstd-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27b8a4f635df6e9b75f23c263ca28e3e48c4084e8cec6240cba963548c8c6a70
MD5 ffcd1ecc9d8d534054c9057e3815317c
BLAKE2b-256 c9e98d556c7f4292c635a68d635cb42eac4eebfb34adfca427dfddee59ca4109

See more details on using hashes here.

Provenance

The following attestation bundles were made for aibomstd-0.3.0-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