update_available

Return true if there is an update available.

An update is available if the version on PyPi is higher than the version the user has on their machine.

eldonationtracker.utils.update_available.get_pypi_version() → str

Use PyPi JSON API to get latest version.

Returns

A string with the version number.

eldonationtracker.utils.update_available.main()
eldonationtracker.utils.update_available.update_available() → bool

Use semver module to calculate whether there is a newer version on PyPi.

Returns

True if the PyPi version is higer than the version being run. Returns false if the version being compared to PyPi is equal or greater than the PyPi version.