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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1eae10f72d5572024e67925ef3fd78b60b8ead2df138dd12b65585fb4a7fa41 |
|
MD5 | 6e0071676c485b0ed6d4fd48e97ba3fd |
|
BLAKE2b-256 | d252bbcc87be2c00b1c035677f963357736ec16db3d3b39d5da0beb314275eca |
Close
Hashes for hoppr_cyclonedx_models-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 171bdc59b1679dffeecc147cfa151172bb258fe06c2f82b1ae0158bad841d30d |
|
MD5 | bf9448d14d542cb9b904d3a930b63113 |
|
BLAKE2b-256 | 4d6b1d92076116697418a4b6171cc9bb9597bb40d21baa603eaafd15a8200f13 |