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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5ddde7b521d641cbdc1307c2b594953b82cf087959a6073b8ab74b9be9b28c |
|
MD5 | f2cd1557e7649653949f64df13646d92 |
|
BLAKE2b-256 | 675744aced9389486650d04a8bac07a33315396118df970ee17df6acd1cf1686 |
Close
Hashes for hoppr_cyclonedx_models-0.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ccb9b339959a30c1cd85a68b8c62c31121e1aed6edc427723fbd1a504ed2f0f |
|
MD5 | 507a4f567a1c53dbd1e948491f7194d1 |
|
BLAKE2b-256 | 85061a1bd1ac436a50d6da2dcec6a1ba0edb33576f220f9ad2ffdb873838e04d |