📓 Software Bill-of-Materials for vcpkg manifests.
A python command line tool to extract a combined software bill of materials and license info from a vcpkg manifest.
Installation
🐍 PyPi
Open a command line and run:
pip install vcpkg-sbom
:octocat: Local
Downlaod the repo:
git clone https://github.com/moverseai/vcpkg-sbom vcpkg-sbom
cd vcpkg-sbom
From the repo's root path run:
pip install .
For an editable install run:
pip install -e .
⌨️ Usage
vcpkg-sbom PATH/TO/PROJECT/vcpkg_installed
| ID | Package |
|---|---|
| 0 | package name #1 |
| 1 | package name #2 |
| 2 | package name #3 |
| ... | package name #N |
Merging spdx: ━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Extracting & merging copyrights ...
Merging copyrights: ━━━━━━━━━━━━━━━━━━ 0% -:--:--
🔧 Command Line API
$ vcpkg-sbom --help
usage: A software bill of materials extracter and merger for `vcpkg` manifest projects.
positional arguments:
vcpkg_root Path to the `vcpkg_installed` folder of your manifest project.
options:
-h, --help show this help message and exit
-t TRIPLET, --triplet TRIPLET
The `vcpkg` triplet to use.
-p PROJECT, --project PROJECT
The project's name that will be used for the merged output files.
-n NAMESPACE, --namespace NAMESPACE
The software's namespace to use for the `spdx` file.
-o ORGANIZATION, --organization ORGANIZATION
The organization or company name to use for the `spdx` file.
-e EMAIL, --email EMAIL
The email to use for the `spdx` file.
-c, --copyright Additionally extract and merge all copyright files in a `*.txt` file.
-l, --license Additionally extract and merge all license types in a `*.json` file.
Acknowledgements / Material
- vcpkg` spdx info and discussion @ Microsoft docs
- The merging code was adapted from https://github.com/philips-software/SPDXMerge
- The
jqscript here is a nice alternative - licensecpp is another approach starting from the
vcpkgmanifest.json file.
Disclaimer / Limitations
While vcpkg offers a lot of information about licensing, this information should be scrutinized. Any tool that builds on top of this information provided by vcpkg is reliant on the legibility of the provided data, and should thus, be also scrutinized for correctness.
Metadata
Release files for vcpkg-sbom 0.0.6
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 |
|---|---|---|---|---|
| vcpkg_sbom-0.0.6.tar.gz | 9.9 kB | Without provenance | Details for vcpkg_sbom-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vcpkg_sbom-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for vcpkg_sbom-0.0.6-py3-none-any.whl |
Total release size: 17.7 kB
Release files / vcpkg_sbom-0.0.6.tar.gz
| Download URL | vcpkg_sbom-0.0.6.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39de054d514196126a7735a016c9231d700b92763bd1fe66e0b82f86bd8d5db7
|
|
BLAKE2b-256 checksum How to use checksums |
810637858b7413c9a3fda9daf78584bb25664a6e2a61275782c6308277e7b596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / vcpkg_sbom-0.0.6-py3-none-any.whl
| Download URL | vcpkg_sbom-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26f4bc67292aec68bcf2950fc345322abc67ba99f761a80b8bf8c221610de4dd
|
|
BLAKE2b-256 checksum How to use checksums |
dd6913678287877c331de61512be2658a92ad95194681fc65ec717036c16ad41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for vcpkg-sbom 0.0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.