ibllib.misc.version

Functions

eq

check if v1 == v2

ge

check if v1 >= v2

gt

check if v1 > v2

ibllib

le

check if v1 <= v2

lt

check if v1 < v2

gt(v1, v2)[source]

check if v1 > v2

Parameters
  • v1 (str) – version string, in the form “1.23.3”

  • v2 (str) – version string, in the form “1.23.3”

Returns

bool

ge(v1, v2)[source]

check if v1 >= v2

Parameters
  • v1 (str) – version string, in the form “1.23.3”

  • v2 (str) – version string, in the form “1.23.3”

Returns

bool

lt(v1, v2)[source]

check if v1 < v2

Parameters
  • v1 (str) – version string, in the form “1.23.3”

  • v2 (str) – version string, in the form “1.23.3”

Returns

bool

le(v1, v2)[source]

check if v1 <= v2

Parameters
  • v1 (str) – version string, in the form “1.23.3”

  • v2 (str) – version string, in the form “1.23.3”

Returns

bool

eq(v1, v2)[source]

check if v1 == v2

Parameters
  • v1 (str) – version string, in the form “1.23.3”

  • v2 (str) – version string, in the form “1.23.3”

Returns

bool

ibllib()[source]