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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e084d2af81f6f03a47b7d15fcad3fca0925a8c48c59998db02a9680b4196c7a8 |
|
MD5 | e52171a1d65102082f0d8658bffbea9b |
|
BLAKE2b-256 | 12e2045f7c6bd035bdd88d16477a42ac87032d677b14f67db58fe63e6e661576 |
Close
Hashes for hoppr_cyclonedx_models-0.4.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ed2125850bc77e30f49dbb8e4eb38502439e7ee1ee12f6196c41e9603cc466 |
|
MD5 | ccc4e9e04193593a6f689538fd53310c |
|
BLAKE2b-256 | 23c84255634a3dc232596fae43351f8b69bcd716fc137b6deaf4d4e030ed75b1 |