safe.common.version module

InaSAFE Disaster risk assessment tool developed by AusAid - Version getter.

Contact :


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.


Retrieve the current git hash number of the git repo (first 6 digit).

Returns:6 digit of hash number.
Return type:str

Returns a PEP 386-compliant version number from VERSION.

Parameters:version (tuple) – A tuple that represent a version.
Returns:a PEP 386-compliant version number.
Return type:str

Returns the release status from plugin metadata file.

Returns:The status of release - it could be alpha, beta, rc, or final.
Return type:basestring