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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44cdf37d4bdf6d8fe50abac6af5742d069bb7a05118124ead5afc3f6325f34ef |
|
MD5 | 66d97ad82220d6338389a3f64c64f304 |
|
BLAKE2b-256 | 81989f9fff57e1d9f7de886cfb08ab5198ec0082dc6d50b64ade56f4ba54666c |
Close
Hashes for hoppr_cyclonedx_models-0.4.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12cef83da9b563ba4cbbff3ff0ad30ac73562d72ec696d139f74388dd57d72f |
|
MD5 | 4cb57533120bee4ae398481ab0fc4970 |
|
BLAKE2b-256 | 6982f9f46eea14a27d3293297242fa57a6e5f7d780aa7931924a5d2e3313c740 |