neuralqx.utils.module.version.neuralqx_version module

String-like version wrapper.

class NeuralqxVersion(value: object = '0')

Bases: str

A version string that behaves like str while comparing semantically.

This class accepts comparison against: - Version - NeuralqxVersion - version strings - integer tuples/lists such as (1, 2, 3)

property version: Version
property canonical: str
property release: tuple[int, ...]
property major: int
property minor: int
property patch: int
as_tuple(*, width=3, fill=0)
Return type:

tuple[int, ...]