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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d4863de854563c6ad90453014483ebd5de7edb72d3e25a1647f7c111ca9285 |
|
MD5 | fcfad60c9a8afaeb6b24c260828f09de |
|
BLAKE2b-256 | 8b9a7507d35b08840849b72d06eceb3fe96349bbeb64227549bde2e8a2eb2495 |
Close
Hashes for hoppr_cyclonedx_models-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd94e182a2bd4e11ca73a2d370a42b9d897ae971cfb280d765d35c1988aa92c |
|
MD5 | dd101de0f2db3baa91335a7a8a312839 |
|
BLAKE2b-256 | afdb37a1a2a2e600190ee8bd8674a366684a79bb834f35036df6924db15b6fc2 |