Skip to main content
UPDATER4PYI
===========

Updater4pyi is a simple, lightweight, flexible python library to enable your
applications packaged with pyinstaller to auto-update themselves.

Its design is extremely flexible, so it can work with various "sources", e.g. a
github repository, but you can write your own source just as easily.

The update process runs for both one-file and one-dir packaged applications, on
Windows, Linux and Mac OS X.

The base library is interface-independent. An interface in PyQt4 as well as one
for console applications are provided, but writing an interface for another GUI
system (wxWidgets ...) should be a matter of several lines of code.




Installation & Usage
====================

Updater4pyi is available on PyPI, so the recommended installation is through
there.

You will also need to install one hook for pyinstaller. If you have a custom
hook 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_core
from updater4pyi.upd_iface_pyqt4 import UpdatePyQt4Interface

swu_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 has
to be in your python path.


Sources
=======

At the moment, there are only two source types

- github releases. See upd_source.UpdateGithubReleasesSource. You can specify
naming patterns as regexp's to match the release files with corresponding
platforms

- 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 updater4pyi
so 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 is
provided with this package, and can be changed to include your custom one if
needed.



Interfaces
==========

At the moment, there are the following interfaces for updates:

- A simple console interface, running at each program start, that prompts the
user to check for updates. Not very useful, more meant for debugging.

- A full-featured abstract GUI generic interface. This interface does not
depend on any GUI, and abstracts out tasks such as timing, saving settings
and message boxes which need to be implemented by subclasses. This class is
meant to be used as a base class to write updater interfaces for other GUI
systems (wxWidgets, ...)

- A PyQt4 interface is provided based on the generic GUI interface mentioned
in the previous point.

Release files for updater4pyi 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for updater4pyi 0.7
File Size Uploaded
updater4pyi-0.7.tar.gz 257.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for updater4pyi 0.7
File Interpreter ABI Platform
updater4pyi-0.7.macosx-10.6-x86_64.tar.gz Details
updater4pyi-0.7-py2-none-any.whl Python 2 none any Details

Total release size: 793.5 kB

Release files / updater4pyi-0.7.tar.gz

Download URL updater4pyi-0.7.tar.gz
Size 257.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9fac1b90d9ce2bc2f595a37dd52a710c0416d6240eb921c64c9b037958a83f11
BLAKE2b-256 checksum
How to use checksums
4c29de1c6098dd5616a0e6e55a5e3f40a2407d637cc2c918e30cb9b1f1194627
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / updater4pyi-0.7.macosx-10.6-x86_64.tar.gz

Download URL updater4pyi-0.7.macosx-10.6-x86_64.tar.gz
Size 274.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6c58fbba44d2b3c7723d0fb30b5b434c79aab8845c79877e02c47ec8566097b0
BLAKE2b-256 checksum
How to use checksums
d3e15db73d0f2fd6d0844ce31870db40c015732185689b3a4427c1dae6dc09f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / updater4pyi-0.7-py2-none-any.whl

Download URL updater4pyi-0.7-py2-none-any.whl
Size 261.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
7c0504cc5e200fe6a927560b232de9f38d47ad87bd1531d884647e81a275206f
BLAKE2b-256 checksum
How to use checksums
0363c3bd2a0d70d923ad3cfeb08f52ac1517e59f137a13f0d6aeb8f7bea94c6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7 This release

3 release files

0.6

2 release files

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page