# cyclonedx.schema

## Submodules

- cyclonedx.schema.deprecation
- cyclonedx.schema.schema

## Classes

`OutputFormat` | Output formats.
`SchemaVersion` | Schema version.

## Package Contents

class cyclonedx.schema.OutputFormat

  Bases: `enum.Enum`

  Output formats.

  Cases are hashable.

  Do not rely on the actual/literal values, just use enum cases, like so:

    my_of = OutputFormat.XML

  JSON
  XML

class cyclonedx.schema.SchemaVersion

  Bases: `enum.Enum`

  Schema version.

  Cases are hashable. Cases are comparable(!=,>=,>,==,<,<=)

  Do not rely on the actual/literal values, just use enum cases, like so:

    my_sv = SchemaVersion.V1_3

  V1_7 = (1, 7)
  V1_6 = (1, 6)
  V1_5 = (1, 5)
  V1_4 = (1, 4)
  V1_3 = (1, 3)
  V1_2 = (1, 2)
  V1_1 = (1, 1)
  V1_0 = (1, 0)
  classmethod from_version(version: str) → _SV

    Return instance based of a version string - e.g. 1.4

  to_version() → str

    Return as a version string - e.g. 1.4