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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 442596d93f1a273bc8bd4b0976b024257e1bac129fb3a1c3d88b4068490884ae |
|
MD5 | 59a08869d3c694e776413cf3c18a7cf3 |
|
BLAKE2b-256 | 9610d1240cf482e094967ef08e671cde6be6c249bfdc1c28a84b439e9d1f50c0 |
Close
Hashes for hoppr_cyclonedx_models-0.4.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 791fd578129d426a08e5be077e7be6a5f3898a0a4ca9d26b62a17b688094b476 |
|
MD5 | 7e1b5021c235d4991611fdd8f79f01ef |
|
BLAKE2b-256 | adb9d89c2e0650acdcd42dc7a948dc71e719802a0f93cb7864dfa76687304d16 |