hyloa.utils.check_version module

Code connected to the button to check if the installed version is the last version aviable on GitHub

hyloa.utils.check_version.check_for_updates()[source]

Checks for updates to the hyloa package by comparing the local version with the latest version available on GitHub.

hyloa.utils.check_version.get_latest_version_from_init()[source]

Fetches the latest version of the hyloa package from its __init__.py file on GitHub.

Returns:

The latest version string if found, otherwise None.

Return type:

str or None

hyloa.utils.check_version.get_local_version()[source]

Returns the local version of the hyloa package from its __init__.py file.

hyloa.utils.check_version.is_update_available(local_ver, remote_ver)[source]

Checks if a newer version of the hyloa package is available.

Parameters:
  • local_ver (str) – The local version of the hyloa package.

  • remote_ver (str) – The remote version of the hyloa package.

Returns:

True if a newer version is available, False otherwise.

Return type:

bool