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.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a83bab3bf14824e2a47b026180b0b334c9508f9435028123550537ddb221966d |
|
MD5 | ba105a26c7e4d73f88ff5c805e3e83a1 |
|
BLAKE2b-256 | 609ba4e25de5b1fff2010772165c1b3255a2b26ff5a700eb93d67e1a669f7234 |
Close
Hashes for hoppr_cyclonedx_models-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ee347a7a8e00b4876dbef33e368558e9ea65dea3bb1c2f57b0a47fb83a44c09 |
|
MD5 | de936f58db4033452de781c5e1dfb80d |
|
BLAKE2b-256 | 404324a5e7ac4d2a90d70ee71d4990f6b2b39edf91b1742b99493dff4310c19f |