cyclonedx.schema

Submodules

Package Contents

Classes

OutputFormat

str(object='') -> str

SchemaVersion

str(object='') -> str

class cyclonedx.schema.OutputFormat[source]

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

JSON: str = 'Json'[source]
XML: str = 'Xml'[source]
class cyclonedx.schema.SchemaVersion[source]

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

V1_0: str = 'V1Dot0'[source]
V1_1: str = 'V1Dot1'[source]
V1_2: str = 'V1Dot2'[source]
V1_3: str = 'V1Dot3'[source]
V1_4: str = 'V1Dot4'[source]
to_version() str[source]

Return as a version string - e.g. 1.4

Returns:

str version