SBVersionNumber#
This class describes a version number in SAMSON, composed of three non-negative integers:
a major version number
a minor version number
a patch version number
Because SAMSON Extensions depend on the version of the SDK with which they are developed, SAMSON has a strict versioning policy. Please refer to the section in the Developer Guide about Versioning for more information.
See also
SAMSON SDK: SBCContainerVersionNumber
- class samson.SBVersionNumber(*args, **kwargs)#
Bases:
pybind11_object
This class describes a version number in SAMSON, composed of three non-negative integers: - a major version number - a minor version number - a patch version number
Because SAMSON Extensions depend on the version of the SDK with which they are developed, SAMSON has a strict versioning policy. For more information, please refer to the SAMSON API Versioning.
Overloaded function.
__init__(self: samson.SBVersionNumber) -> None
Constructs the 0.0.0 version number.
__init__(self: samson.SBVersionNumber, major: int, minor: int, patch: int) -> None
Constructs a version number major.minor.patch.
- Parameters:
major (int) – The major version number.
minor (int) – The minor version number.
patch (int) – The patch version number.
Examples
>>> print(SBVersionNumber(1, 2, 8)) 1.2.8
__init__(self: samson.SBVersionNumber, stringVersionNumber: str) -> None
Constructs a version number from a string that has the ‘MAJOR.MINOR.PATCH’ format.
- Parameters:
stringVersionNumber (str) – A string representation of a version number.
Examples
>>> print(SBVersionNumber('1.2.0')) 1.2.0
__init__(self: samson.SBVersionNumber, versionNumber: samson.SBVersionNumber) -> None
Constructs a version number from a versionNumber.
- __eq__(self: samson.SBVersionNumber, arg0: samson.SBVersionNumber) bool #
operator ==
- __ge__(self: samson.SBVersionNumber, arg0: samson.SBVersionNumber) bool #
operator >=
- __gt__(self: samson.SBVersionNumber, arg0: samson.SBVersionNumber) bool #
operator >
- __le__(self: samson.SBVersionNumber, arg0: samson.SBVersionNumber) bool #
operator <=
- __lt__(self: samson.SBVersionNumber, arg0: samson.SBVersionNumber) bool #
operator <
- __ne__(self: samson.SBVersionNumber, arg0: samson.SBVersionNumber) bool #
operator !=
- property major#
The major version number.
- property minor#
The minor version number.
- property patch#
The patch version number.