Skip to main content

CycloneDX Pydantic models for easy use in your Python project.

Project description

Hoppr CycloneDX Models

PyPI - Python Version PyPI - Version PyPI - Downloads PyPI - License Poetry

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

Current generated models can be found here.

Installation

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

A Simple Example

>>> from hoppr_cyclonedx_models.cyclonedx_1_5 import Component
>>> data = {"type": "library", "purl": "pkg:pypi/django@1.11.1", "name": "django", "version": "1.11.1"}
>>> component = Component(**data)
>>> component
>>> print(component)
Component(
    type='library',
    mime_type=None,
    bom_ref=None,
    supplier=None,
    author=None,
    publisher=None,
    group=None,
    name='django',
    version='1.11.1',
    description=None,
    scope=<Scope.REQUIRED: 'required'>,
    hashes=None,
    licenses=None,
    copyright=None,
    cpe=None,
    purl='pkg:pypi/django@1.11.1',
    swid=None,
    modified=None,
    pedigree=None,
    externalReferences=None,
    components=None,
    evidence=None,
    releaseNotes=None,
    modelCard=None,
    data=None,
    properties=None,
    signature=None
)

Contributing

For guidance setting up a development environment and how to contribute to hoppr-cyclonedx-models, see Contributing to Hoppr.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hoppr_cyclonedx_models-0.7.2.tar.gz (110.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hoppr_cyclonedx_models-0.7.2-py3-none-any.whl (116.4 kB view details)

Uploaded Python 3

File details

Details for the file hoppr_cyclonedx_models-0.7.2.tar.gz.

File metadata

  • Download URL: hoppr_cyclonedx_models-0.7.2.tar.gz
  • Upload date:
  • Size: 110.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/5.15.154+

File hashes

Hashes for hoppr_cyclonedx_models-0.7.2.tar.gz
Algorithm Hash digest
SHA256 d1ef1117e744734aa56ceb8c902b40cd5d0d2cf116952002416998e21c015468
MD5 8d5268bb385acdab9293cda376f6cfc6
BLAKE2b-256 8dda66ace787975930550150ddeb15ff98e030d4b7d35936a582fc489cb87018

See more details on using hashes here.

File details

Details for the file hoppr_cyclonedx_models-0.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hoppr_cyclonedx_models-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 182d04bde73a7dd10acc3f78af2c13176e00d22e283a34837664418271abfd78
MD5 eabf0dd635969788b2cdc40c01cbe689
BLAKE2b-256 213958f1107b0ebf8bd17a27fdd335c50e9efd2dc5fd2752108e755a58e9443e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page