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.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c95eac374699f24c5034e367b928986ad778a0534ac7f58a28abf5f8f75699b |
|
MD5 | 92b664a94648a5ccb8189904b2b24ead |
|
BLAKE2b-256 | 80051e68aa7de2d0a8ecfc09192a4ddf4aea27000856704f7a8ee712e31dd971 |
Close
Hashes for hoppr_cyclonedx_models-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55774c422240aa50ddef5f2400bf17c9715192b8f6216a2c1f6e34dd9e3379f0 |
|
MD5 | c45abe346c57184aafd687298b2f2129 |
|
BLAKE2b-256 | 5c1dc5d5c9150596517f162c245b905909228bb122b6a03de1ebc878a3ad7251 |