Metadata-Version: 2.1
Name: hoppr-cyclonedx-models
Version: 0.4.10
Summary: CycloneDX Pydantic models for easy use in your Python project.
Home-page: https://gitlab.com/hoppr/hoppr-cyclonedx-models
License: MIT
Keywords: pydantic models,cyclonedx,software bill of materials
Author: LMCO Open Source
Author-email: open.source@lmco.com
Requires-Python: >=3.7.2,<4.0.0
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Code Generators
Requires-Dist: pydantic[email] (>=1.10.2,<2.0.0)
Project-URL: Repository, https://gitlab.com/hoppr/hoppr-cyclonedx-models
Description-Content-Type: text/markdown

# hoppr_cyclonedx_models

[![pypi](https://img.shields.io/pypi/v/hoppr-cyclonedx-models)](https://pypi.org/project/hoppr-cyclonedx-models)
[![downloads](https://pepy.tech/badge/hoppr-cyclonedx-models/month)](https://pepy.tech/project/hoppr-cyclonedx-models)
[![versions](https://img.shields.io/badge/python-3.7.2-blue.svg)](https://gitlab.com/hoppr/hoppr-cyclonedx-models)
[![license](https://img.shields.io/gitlab/license/hoppr/hoppr-cyclonedx-models)](https://gitlab.com/hoppr/hoppr-cyclonedx-models/-/blob/main/LICENSE)

Serializable CycloneDX Models.   Quickly get up and running with models generated directly off the specification.

Current generated models can be found here: [Generated Models](https://gitlab.com/hoppr/hoppr-cyclonedx-models/-/tree/main/hoppr_cyclonedx_models)

## Installation

Install using `pip install -U hoppr-cyclonedx-models` or `poetry add hoppr-cyclonedx-models`.  

## A Simple Example:

```py
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](https://hoppr.dev/docs/development/contributing).

