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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ee8990d26093ee07f2b3571fab7161a7823fe5b08391f092d8963ad3063658e |
|
MD5 | 55002e9dc8842b58117e827209641ded |
|
BLAKE2b-256 | 49fd013b443782cc81e9f613e078dbc21d3b72e61efaa9dc5dabaee5ec7aa38a |
Close
Hashes for hoppr_cyclonedx_models-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efb7d15ef70db9e76ad4c7ac9abf04833bba8da7d644e8886b48f6da0462e660 |
|
MD5 | add297a2c746f00ba0e1be777b3d515c |
|
BLAKE2b-256 | 034cb827d9a32b694521777b893760df7d60506ef2c1f36978fda4dfa9f6565b |