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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f24b6bf083daf4d119be9237dcc0c5ebb974e4b9a69bb5bd214e82925fe8dd2 |
|
MD5 | 6f74e29aa5dbbc71709789036445a70b |
|
BLAKE2b-256 | e37a6111eec16961556ccf0e6288bab703751d8e68f581a4d8c396e3ad46e86e |
Close
Hashes for hoppr_cyclonedx_models-0.4.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 560f7153ec4c5eb14cfd9ceb5fd255d8e1db86549de8ee00bbf48b5cf0ff5399 |
|
MD5 | de3a13992c99b147fd24fb25f43eee8c |
|
BLAKE2b-256 | 86c8f8cbc54305d057059134a537ddc13670eeff8ee3b0b7c477c01b5dd7d876 |