AI Bill of Materials Standard — open standard SDK for AI component transparency
Project description
aibomstd Python SDK
Python SDK for the aibomstd open standard. Generate AI Bill of Materials in 10 lines of code.
Install
pip install aibomstd
Quick start
from aibomstd import (
AiBomBuilder,
ModelComponent,
ApiClientComponent,
FrameworkComponent,
Identity,
License,
Service,
RiskFlag
)
bom = AiBomBuilder(
subject_name="my-ai-service",
subject_type="repository",
subject_version="1.0.0"
)
bom.add_component(
ModelComponent(
bom_ref="model-001",
identity=Identity(
name="llama-3-8b-instruct",
provider="meta",
version="3.0",
source="huggingface",
purl="pkg:huggingface/meta-llama/Meta-Llama-3-8B-Instruct@3.0"
),
license=License(id="llama3", osi_approved=False, risk="medium")
)
)
bom.add_component(
ApiClientComponent(
bom_ref="api-client-001",
identity=Identity(
name="openai",
provider="openai",
version="1.40.0",
source="pypi",
purl="pkg:pypi/openai@1.40.0",
is_external=True
),
service=Service(
name="OpenAI API",
endpoint="https://api.openai.com/v1",
models_used=["gpt-4o"],
data_leaves_boundary=True,
data_residency="US"
),
license=License(id="Apache-2.0", osi_approved=True, risk="none"),
risks=[
RiskFlag(
id="AIBOM-R001",
type="data-egress",
severity="high",
description="Data sent to OpenAI. US jurisdiction.",
regulation="GDPR"
)
]
)
)
print(bom.to_json())
Output formats
bom.to_json() # aibomstd JSON
bom.to_html() # self-contained HTML report
bom.to_cyclonedx() # CycloneDX v1.7 JSON
Convert from cisco-aibom
from aibomstd.converters.cisco import CiscoConverter
import json
cisco_output = json.load(open("cisco-scan-result.json"))
converter = CiscoConverter()
aibomstd_json = converter.convert(cisco_output)
print(json.dumps(aibomstd_json, indent=2))
Schema
Every output document references:
https://aibomstd.com/schema/v0.1/aibomstd.schema.json
License
Apache 2.0 — https://aibomstd.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aibomstd-0.2.0.tar.gz.
File metadata
- Download URL: aibomstd-0.2.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01bbbe0a03cbf38510d1d98f90a93ed677cd5c50eede8f32f96041b04c17efc3
|
|
| MD5 |
62c60c9bdeaeffcb796036c946676826
|
|
| BLAKE2b-256 |
f39451ed1d48016f01912d2aa067ef60c9526fb0c083d8b695fa4edd3cbf713a
|
Provenance
The following attestation bundles were made for aibomstd-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on aibomstd/aibomstd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aibomstd-0.2.0.tar.gz -
Subject digest:
01bbbe0a03cbf38510d1d98f90a93ed677cd5c50eede8f32f96041b04c17efc3 - Sigstore transparency entry: 2327096980
- Sigstore integration time:
-
Permalink:
aibomstd/aibomstd@23ca1ec178a33c2fa1200fa9442f4fe390c655fe -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/aibomstd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@23ca1ec178a33c2fa1200fa9442f4fe390c655fe -
Trigger Event:
release
-
Statement type:
File details
Details for the file aibomstd-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aibomstd-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e83a2dea01cefd874b88e437b1fee72966cae65f2553cff09f543a32d4023dc2
|
|
| MD5 |
8cf8f42bdedc28ff7f4ac7f1f8a69e6e
|
|
| BLAKE2b-256 |
a40ce307e2107bcd2a21b37501d5b908a89a036e0d24cded2652f65f6d5f8837
|
Provenance
The following attestation bundles were made for aibomstd-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on aibomstd/aibomstd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aibomstd-0.2.0-py3-none-any.whl -
Subject digest:
e83a2dea01cefd874b88e437b1fee72966cae65f2553cff09f543a32d4023dc2 - Sigstore transparency entry: 2327097200
- Sigstore integration time:
-
Permalink:
aibomstd/aibomstd@23ca1ec178a33c2fa1200fa9442f4fe390c655fe -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/aibomstd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@23ca1ec178a33c2fa1200fa9442f4fe390c655fe -
Trigger Event:
release
-
Statement type: