CycloneDX Pydantic models for easy use in your Python project.
Project description
hoppr_cyclonedx_models
Purpose
The model-gen.sh
script pulls a user-specified release from the CycloneDX SBOM Specification that operates under the SBOM guidelines. It then utilizes the datamodel code generator to generate Pydantic models from the input SBOM schema file. These Pydantic models are available as a public package in PyPI under hoppr_cyclonedx_models
.
Usage
Install datamodel-code-generator
:
pip install datamodel-code-generator
For further reference see the documentation.
Create your model:
./model-gen.sh x.y
Where x and y refer to the applicable major and minor revisons respectively.
- Example Usage:
./model-gen.sh 1.4
To see all current releases visit CycloneDX Specification Releases
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
Hashes for hoppr-cyclonedx-models-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f7bd04eb1f94bfa0750a570e0325fa2dce2c71d8a20a6d369a645deac35576 |
|
MD5 | 2c678269eb1e4ca6841b79af2d3945a3 |
|
BLAKE2b-256 | d45bb65dae4efd04f295496c171873ae6b730ed88ce95aae881d2a4d61619db8 |
Hashes for hoppr_cyclonedx_models-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023541048fb6ef1714608aebd81809d8a12d454a1a396ff8abe59cb073fe1cbb |
|
MD5 | 00d417607ecdac6223586a0fc5f837b8 |
|
BLAKE2b-256 | 4668f4ce05ec18b9deb2ce5667e74f34820af07244fd2a048e33328c4c574100 |