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.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55331b889626009e135c52d1bf3d7b4205646c0343b04a399c2930b881e1eeef |
|
MD5 | 4aa2367f8085c7302a3839f1a430fedb |
|
BLAKE2b-256 | 4ab505ee462c304e190c1c6269f0172b9fd582379c74fc63aa1dca168d9cf0cd |
Close
Hashes for hoppr_cyclonedx_models-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75a05ed62c1a1a2b8a480b9d7af465713ff72c7f14bd704172d3172fa34d522 |
|
MD5 | 2a8a18e187bab212d303c4e624114d8a |
|
BLAKE2b-256 | ed5b96dfeb9f46c17747096e0ad84f61d3139788b7683e23c0f2c3e58f76b6e5 |