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.5.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.5-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aibomstd-0.2.5.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.5.tar.gz
Algorithm Hash digest
SHA256 81b27d057b00bb14962d415ff97d4c6267aa4c860d861b914dd583b25a30f673
MD5 64c4279f1488acc890a6d518c32be861
BLAKE2b-256 506f60c048b5d4e56bf3008c909c3289add284362682203f74fcbae707db0972

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: aibomstd-0.2.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1cba47135b87923c405ea60f3f4733ac2397ff99dbe7321da97b671e00d4c6f4
MD5 6fc60f60d18048ac8ddd47a8f9ed6309
BLAKE2b-256 f7a2faafbafbc9c57dc8f7357c736b0091156873a53fccaa57672e2c1d7dd340

See more details on using hashes here.

Provenance

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