cyclonedx.schema
Submodules
Package Contents
Classes
Output formats. |
|
Schema version. |
- class cyclonedx.schema.OutputFormat(*args, **kwds)
Bases:
enum.EnumOutput formats.
Cases are hashable.
- Do not rely on the actual/literal values, just use enum cases, like so:
my_of = OutputFormat.XML
- JSON
- XML
- name()
The name of the Enum member.
- value()
The value of the Enum member.
- class cyclonedx.schema.SchemaVersion(*args, **kwds)
Bases:
enum.EnumSchema 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
- name()
The name of the Enum member.
- value()
The value of the Enum member.