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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ee95f780242e2dca1b44a328854cb4719ea99a62624cdeeb4ebe7837dddf1a8 |
|
MD5 | 688162703904380fa567e56f6fd58578 |
|
BLAKE2b-256 | 6c2365b65091c444f50884d57ce764528e1daa44ce558a824fdcfe2e6e509cfa |
Close
Hashes for hoppr_cyclonedx_models-0.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc856fcccec375a76da98e658b848d6b3285b265623416c7bba6ad485166bc90 |
|
MD5 | 7804afe205cd0b6d6b1f77706580c527 |
|
BLAKE2b-256 | f7ce85b5e2adc982de1c60b0e922f8b65127354eec2585b25bcae876095b0a59 |