universions package

Submodules

universions.version module

Unique format for all the versions.

class universions.version.Version

Bases: tuple

Class containing all the version info.

build

Alias for field number 4

major

Alias for field number 0

minor

Alias for field number 1

patch

Alias for field number 2

prerelease

Alias for field number 3

universions.version.parse_semver(version_string: str, remove_initial_v=False) → universions.version.Version

Parse the semver version.

credit to https://github.com/k-bx/python-semver

Parameters:
  • version_string – the string to parse.
  • remove_initial_v – strip the initial “v” if the version string has it.
Returns:

The semver.

Module contents

Universions is a tool to get the versions of other tools.