libtmux Reference MCP Search
On this page

libtmux._vendor.version.Version

View as Markdown

Module
libtmux._vendor.version
Package
libtmux
Source
src/libtmux/_vendor/version.py
class libtmux._vendor.version.Version
class [source]
class [source]
class libtmux._vendor.version.Version
Bases:

Class abstracts handling of a project's versions.

A Version instance is comparison aware and can be compared and sorted using the standard Python interfaces.

>>> v1 = Version("1.0a5") >>> v2 = Version("1.0") >>> v1 <Version('1.0a5')> >>> v2 <Version('1.0')> >>> v1 < v2 True >>> v1 == v2 False >>> v1 > v2 False >>> v1 >= v2 False >>> v1 <= v2 True

18 declared, 8 inherited

Members

  • _regex attribute
  • __init__ method Initialize a Version object.
  • __repr__ method Return representation of the Version that shows all internal state.
  • __str__ method Return string representation of the version that can be rounded-tripped.
  • base_version property The "base version" of the version.
  • dev property The development number of the version.
  • epoch property The epoch of the version.
  • is_devrelease property Whether this version is a development release.
  • is_postrelease property Whether this version is a post-release.
  • is_prerelease property Whether this version is a pre-release.
  • local property The local version segment of the version.
  • major property The first item of release or 0 if unavailable.
  • micro property The third item of release or 0 if unavailable.
  • minor property The second item of release or 0 if unavailable.
  • post property The post-release number of the version.
  • pre property The pre-release segment of the version.
  • public property The public portion of the version.
  • release property The components of the "release" segment of the version.

Inherited members

Reached through libtmux._vendor.version._BaseVersion.

  • _key libtmux._vendor.version._BaseVersion
  • __eq__ libtmux._vendor.version._BaseVersion
  • __ge__ libtmux._vendor.version._BaseVersion
  • __gt__ libtmux._vendor.version._BaseVersion
  • __hash__ libtmux._vendor.version._BaseVersion
  • __le__ libtmux._vendor.version._BaseVersion
  • __lt__ libtmux._vendor.version._BaseVersion
  • __ne__ libtmux._vendor.version._BaseVersion
Esc

Type to search.