Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hoppr-cyclonedx-models-0.2.2.tar.gz (30.5 kB view hashes)

Uploaded Source

Built Distribution

hoppr_cyclonedx_models-0.2.2-py3-none-any.whl (31.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page