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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97352cda122804c632ac40ad93156e03351e7c6a57a1a4a33b16f1de2ce768fd |
|
MD5 | aac8449c211566666a4a463bab3e5439 |
|
BLAKE2b-256 | b978d1a44e198f71d21f0f645d606057431c45a04045b4926511de882e3ddedc |
Hashes for hoppr_cyclonedx_models-0.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ea00360cdfbc1637e61849bf71324a17d511899da769931a61a5b189b3bad7 |
|
MD5 | 0f385ae3c42ebace6766b7abe82023ba |
|
BLAKE2b-256 | f708aac840dd3eb55ab352d7c7177f40f52fc23811d1eb75e1541cf484b5bb74 |