python-sbom
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_sbom-0.1.1.tar.gz | 245.4 kB | With provenance | Details for python_sbom-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_sbom-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for python_sbom-0.1.1-py3-none-any.whl |
Total release size: 441.3 kB
Release files / python_sbom-0.1.1.tar.gz
| Download URL | python_sbom-0.1.1.tar.gz |
|---|---|
| Size | 245.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e8a8f4a8f400d45c77558b7f06b06e966f117c5c71186f51bb4f477c1ab77fa
|
|
BLAKE2b-256 checksum How to use checksums |
6348337abe036e1dfaa5403a6a02e821e44312793823cf83103e27514bb8eceb
|
| 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 logRelease files / python_sbom-0.1.1-py3-none-any.whl
| Download URL | python_sbom-0.1.1-py3-none-any.whl |
|---|---|
| Size | 196.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bb9b6754618c7a98f5c9e23feb8629e85606d49c1fc0040e0a2f7dc80d5c08f
|
|
BLAKE2b-256 checksum How to use checksums |
fadc1f7ce76b9b7f61da84300759475b0df8b856c419438327cccdda7fdb2a60
|
| 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 logSecurity for python-sbom 0.1.1
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.
Attestation for python_sbom-0.1.1.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 logA 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.