module texthelper.version_helper

Short summary

module pyquickhelper.texthelper.version_helper

Helpers about versionning.

Functions

function

truncated documentation

compare_module_version

Compares two versions.

numeric_module_version

Converts a string into a tuple with numbers wherever possible.

Documentation

Helpers about versionning.

New in version 1.8.

source on GitHub

pyquickhelper.texthelper.version_helper.compare_module_version(num, vers)[source][source]

Compares two versions.

Parameters
  • num – first version

  • vers – second version

Returns

-1, 0, 1

This function implements something similar to StrictVersion (from distutils) but probably more simple.

source on GitHub

pyquickhelper.texthelper.version_helper.numeric_module_version(vers)[source][source]

Converts a string into a tuple with numbers wherever possible.

Parameters

vers – string

Returns

tuple

source on GitHub