tlc.core.serialization_version_helper#

Helper methods for working with Object serialization versions

Module Contents#

Classes#

Class

Description

SerializationVersionHelper

A class with helper methods for working with Object/Schema versions

API#

class tlc.core.serialization_version_helper.SerializationVersionHelper#

A class with helper methods for working with Object/Schema versions

static compare_versions(input_version: str, current_version: str) None#

Compare the input version to the current version of the.

static diff_schema(schema1: tlc.core.schema.Schema, schema2: tlc.core.schema.Schema, verbosity: int = 0) list[str]#

Returns the difference between two schemas.

Parameters:
  • schema1 – The first schema.

  • schema2 – The second schema.

Returns:

The difference between the two schemas.

static diff_value(value1: tlc.core.schema.ScalarValue, value2: tlc.core.schema.ScalarValue, verbosity: int = 0) str | None#

Returns the difference between two ScalarValues as an optional readable string.

Parameters:
  • value1 – The first value.

  • value2 – The second value.

Returns:

The difference between the two values.