Package: updater4pyi
UPDATER4PYI===========Updater4pyi is a simple, lightweight, flexible python library to enable yourapplications packaged with pyinstaller to auto-update themselves.Its design is extremely flexible, so it can work with various "sources", e.g. agithub repository, but you can write your own source just as easily.The update process runs for both one-file and one-dir packaged applications, onWindows, Linux and Mac OS X.The base library is interface-independent. An interface in PyQt4 as well as onefor console applications are provided, but writing an interface for another GUIsystem (wxWidgets ...) should be a matter of several lines of code.Installation & Usage====================Updater4pyi is available on PyPI, so the recommended installation is throughthere.You will also need to install one hook for pyinstaller. If you have a customhook directory in your project, you can place the file named`hook-updater4pyi.py` it there; otherwise, locate your pyinstaller `hooks`directory and copy the file `hook-updater4pyi.py` in there.To use updater4pyi in your programs, you need to:- describe where to look for updates (the *sources*)- instantiate the updater, giving it the corresponding sources- create an interface, which will interact with the user.For example, the [bibolamazi project](https://github.com/phfaist/bibolamazi)uses the updater4pyi framework, and the relevant lines in there are:from updater4pyi import upd_source, upd_corefrom updater4pyi.upd_iface_pyqt4 import UpdatePyQt4Interfaceswu_source = upd_source.UpdateGithubReleasesSource('phfaist/bibolamazi')swu_updater = upd_core.Updater(current_version=...,update_source=swu_source)swu_interface = UpdatePyQt4Interface(swu_updater,progname='Bibolamazi',ask_before_checking=True,parent=QApplication.instance())Then, you need to make sure that pyinstaller can find updater4pyi, i.e. it hasto be in your python path.Sources=======At the moment, there are only two source types- github releases. See upd_source.UpdateGithubReleasesSource. You can specifynaming patterns as regexp's to match the release files with correspondingplatforms- local directory source (used for debugging)However, it is straightforward to write your own source. Look at `upd_source.py`to get an idea. If you do so, it would be great to contribute it to updater4pyiso that other people can profit!Security========This library supports downloads through HTTPS with certificate verification,making the download and update process secure. The default root certificate isprovided with this package, and can be changed to include your custom one ifneeded.Interfaces==========At the moment, there are the following interfaces for updates:- A simple console interface, running at each program start, that prompts theuser to check for updates. Not very useful, more meant for debugging.- A full-featured abstract GUI generic interface. This interface does notdepend on any GUI, and abstracts out tasks such as timing, saving settingsand message boxes which need to be implemented by subclasses. This class ismeant to be used as a base class to write updater interfaces for other GUIsystems (wxWidgets, ...)- A PyQt4 interface is provided based on the generic GUI interface mentionedin the previous point.