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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b48be130689ecd9680db51e4d75d1f43249f774677fe54670a50fd4ab3bd6f |
|
MD5 | af55575da58cf4842fae3b0da68100f1 |
|
BLAKE2b-256 | 9fa66694e65722e9970115f0218809afc55bb9b09bd7303878087a79bbf87368 |
Hashes for hoppr_cyclonedx_models-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 884317c08c45550bb0c2d7289312021afacfc7041596626bf379ac0777fd2d00 |
|
MD5 | c6b89cd1030975ddf34cd6118c98344c |
|
BLAKE2b-256 | 6d8dd5920c6f8114a8b198ffe8f293e4e82087b93a8b9a5549b01e05b4e92012 |