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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78583924cf552ab79c99bd7e49789f6665ba522290bcc1f2520368cfdcb8529b |
|
MD5 | 64b66de4b893736403560bce17a22dd9 |
|
BLAKE2b-256 | c5809bcaf7c33c1dd0f95681e6934149816576a6fa920822537bb602e10c8475 |
Close
Hashes for hoppr_cyclonedx_models-0.4.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bad5defc2e603ca865f951801c14a752e46e93e043db5804289e456987da985 |
|
MD5 | 98882fe0dc5d151ea3da9aee4d2751df |
|
BLAKE2b-256 | 0442293624b83e488351f241e8f5451f80575b9811aa7a7a4e250c7fa5939a22 |