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.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8afa10c3507471d2502a60a4a1d1af190538eff99ca69b650bafdf157ef486 |
|
MD5 | 889f535640e86a89e945db92b04b1f0c |
|
BLAKE2b-256 | 076ef22fad0675d2e250f771c0c0a3d348f95568908493d2d8f8093f1242c523 |
Close
Hashes for hoppr_cyclonedx_models-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a4c9eb8da268e1a8ea9f7fac7f03b9535a5195c940ac000ee19770efc652cf |
|
MD5 | fc4501790a139a731f131c07588b2fdf |
|
BLAKE2b-256 | e60577eb659f3b61b6acd861e9653e614254bd5aff82ea36a90b31649924fe68 |