CycloneDX Pydantic models for easy use in your Python project.
Project description
hoppr_cyclonedx_models
Serializable CycloneDX Models. Quickly get up and running with models generated directly off the specification.
Current generated models can be found here: Generated Models
Installation
Install using pip install -U hoppr-cyclonedx-models
or poetry add hoppr-cyclonedx-models
.
A Simple Example:
from hoppr_cyclonedx_models.cyclonedx_1_4 import Component
data = {'type': 'library', 'purl': 'pkg:pypi/django@1.11.1', 'name': 'django', 'version': '1.11.1'}
component = Component(**data)
print(component.purl)
Contributing
For guidance setting up a development environment and how to make a contribution to hoppr-cyclonedx-models, see Contributing to Hoppr.
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
Close
Hashes for hoppr_cyclonedx_models-0.4.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0639e1036d373dff984bbf27e1ef17b418952bb9e03c25964ff4638b1709aa41 |
|
MD5 | 0264cff3ff9531b9427b6a12ba45c717 |
|
BLAKE2b-256 | ea1960e48633026f7e89fa99f367412395039c8ef437f5d129c44ba7678c8036 |
Close
Hashes for hoppr_cyclonedx_models-0.4.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb0834a3227b24d4c7d3155c85d3a35ff64868fe361c85ac20dd104f3b0b971 |
|
MD5 | 446462d478a424dd14a122b17f9fc71e |
|
BLAKE2b-256 | dc7bc229275bc3fe82cbfc5a48501ceacf7797175ba93903758611f8563011d4 |