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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d39cca4d930df2407b3c61bf932b007f6667907063ab446653523bb839495c7 |
|
MD5 | dd49d2f3f93c7ff3ac95e08bdc7f15b4 |
|
BLAKE2b-256 | c3bbaf8a5cd18c31f46ad23bdad7dc6c9b4fbe8b277452bb141376cb9f285da9 |
Close
Hashes for hoppr_cyclonedx_models-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349ff6ac1c0746aaedab2650e79284c836121a9e482ff265c1b58a63c12b3a17 |
|
MD5 | bd6bbb68364ee05426f6d9cac92d2e66 |
|
BLAKE2b-256 | 28efe66a9e98b47d0f37de4aa838efcc8ff0be5134338fc2976eeb18c5497f69 |