1.25. version

This module collects all import version information for the application. This is the authoritative source for the applications version information and should be used anywhere the version is required.

Note

This is a “Clean Room” module and is suitable for use during initialization.

1.25.1. Data

distutils_version = '1.16.0b0'[source]

A string suitable for being parsed by distutils.version classes.

revision = '2fdc70e2bafff44418e8507c0c4a4f847c76a81e'[source]

The git revision identifying the latest commit if available.

rpc_api_version = rpc_api_version(major=6, minor=5)[source]

A tuple representing the local version of the RPC API for use with compatibility checks. The major version is incremented when backwards incompatible changes are made and the minor version is incremented when backwards compatible changes are made.

version = '1.16.0-beta (rev: 2fdc70e2baff)'[source]

A string representing the full version information.

version_info = version_info(major=1, minor=16, micro=0)[source]

A tuple representing the version information in the format (‘major’, ‘minor’, ‘micro’)

version_label = 'beta'[source]

A version label such as alpha or beta.

1.25.2. Functions

get_revision(encoding='utf-8')[source]

Retrieve the current git revision identifier. If the git binary can not be found or the repository information is unavailable, None will be returned.

Parameters:encoding (str) – The encoding to use for strings.
Returns:The git revision tag if it’s available.
Return type:str