BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
update_service.py File Reference

check for newer tool version More...

Go to the source code of this file.

Namespaces

namespace  Source
namespace  Source.Model
namespace  Source.Model.update_service

Functions

bool compare_versions (str current_version, str latest_version)
 Compare version for newer status.
str|None get_newest_tool_version ()
 Get newest tool version.
str|None get_tool_update_status ()
 Get tool update status.

Variables

int I_TIMEOUT = 5
 log = logging.getLogger(__title__)
str S_UPDATE_URL = f"https://github.com/{__owner__}/{__repo__}/releases/latest"
str S_UPDATE_URL_API = f"https://api.github.com/repos/{__owner__}/{__repo__}/releases/latest"

Detailed Description

check for newer tool version


Definition in file update_service.py.