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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69012ba12ac4b54cd8489241f9c40a3fa3bfe95a56a55902b73e95f43fea5707 |
|
MD5 | f4a1c166f7f3b8fd9e2b5d9e89997f89 |
|
BLAKE2b-256 | efa276c8be1fe9a7830e5b7f04aeae9a5ed622b24e6017ee57e36a8686d7dd16 |
Close
Hashes for hoppr_cyclonedx_models-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e8c618e941664ce03e25fe9c11dd3324c67da8d02d224da1fa9214872aa4987 |
|
MD5 | b655aa3ccb78be420ea25f080408a63b |
|
BLAKE2b-256 | 88e458317786b5b087734e81a2ce64a1ce7f8865bd90d746505b0b94dfd0766c |