Skip to main content

python-sbom

PyPI Supported Python versions check Documentation Status Downloads OpenSSF Scorecard

SBOMs for Python distributions. python-sbom writes a CycloneDX SBOM into every wheel you build, where PEP 770 tells installers to keep it. The SBOM records your project, the runtime dependencies it declares, any wheels it bundles, and the build toolchain, and a rebuild with the same inputs reproduces it byte for byte.

Install

A hatchling project names python-sbom[hatch] in its build requirements, as shown below. To embed an SBOM into a wheel another backend built, install the command line into the environment that built the wheel, since the SBOM lists that environment's packages as the build tools (or point --build-env at it):

python -m pip install python-sbom

To convert and validate SBOMs in CI, a separate tool environment is fine:

pipx install 'python-sbom[validate]'

Use

With hatchling, add the hook to the build requirements and enable it:

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1.28", "python-sbom[hatch]>=0.1"]

[tool.hatch.build.hooks.python-sbom]

With another build backend, such as meson-python, embed the SBOM after the build:

python-sbom embed dist/*.whl

Describe another zip archive the project publishes, such as a zipapp, with python-sbom archive. The documentation covers the options, adding project knowledge through a content provider, rendering an SBOM as SPDX and validating it.

Metadata

Release files for python-sbom 0.1.2

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

Source distribution (sdist)

Source distribution for python-sbom 0.1.2
File Size Uploaded Provenance Actions
python_sbom-0.1.2.tar.gz 245.7 kB With provenance Details for python_sbom-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-sbom 0.1.2
File Interpreter ABI Platform Actions
python_sbom-0.1.2-py3-none-any.whl Python 3 none any Details for python_sbom-0.1.2-py3-none-any.whl

Total release size: 441.7 kB

Release files / python_sbom-0.1.2.tar.gz

Download URL python_sbom-0.1.2.tar.gz
Size 245.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5b611b565d6946926c8a1f6ec635beeea49887459f0a542f5350b77baafb2281
BLAKE2b-256 checksum
How to use checksums
65a7abd61bb6e6cf681fc9bf1ff02f2357caf0ae958e9613e1a0f2fe00672726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / python_sbom-0.1.2-py3-none-any.whl

Download URL python_sbom-0.1.2-py3-none-any.whl
Size 196.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d831293bc389cbb9c444b30141692866d3c54f64e3c50a74fe6d74bd8517474a
BLAKE2b-256 checksum
How to use checksums
5f198c21420f27fcb14995e9b1c6cb451edaf341070d18996c42a96d77b80e64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for python-sbom 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for python_sbom-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

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