Skip to main content

A dialog for updating specific files by syncing them from a server. Designed to work like InstallForge's "Visual Update Express".

Project description

Python Visual Update Express

A dialog for updating an application by downloading files from a server. Designed to work like InstallForge's "Visual Update Express".

This software may only be used as described in the LICENSE file. Please contact me through a github issue for questions about commercial use.

Compatible with Python 3.10 and up

Installation

python3 -m pip install python-visual-update-express

Usage

Add updater window in python

Import the UpdaterWindow and configure it

from python_visual_update_express import UpdaterWindow

UPDATE_BASE_URL = 'https://yoursite.com/releases/yourapplication/'
CURRENT_VERSION = '1.0.1'
UPDATE_TARGET_DIR = 'C:/yourlocationpath'

# If you are using have a PyQt6 QApplication set up, please indicate this to the UpdaterWindow by 
# setting the create_q_application parameter to 'False'.
# Otherwise the UpdateWindow will create another QApplication, causing issues with PyQt.
# If you don't have a PyQt6 QApplication set up, please omit the create_q_application parameter 
# so the updater will set a QApplication up internally.
updater_window = UpdaterWindow(UPDATE_BASE_URL, CURRENT_VERSION, UPDATE_TARGET_DIR, False)

Then when you are ready, simply call show on the window to start the updater:

updater_window.show()

Update script

The updater works according to an updatescript.ini file on the server. This file tells the updater what versions of the application are supported and how to perform updates. Make sure to have this file available on the server URL used by the updater.

This is a very simple example of an updatescript.ini:

releases{
    1.0.0
    1.0.1
}

release:1.0.0{

}

release:1.0.1{
    DownloadFile:some-file.txt
}

Script commands

Currently only 1 command is available:

DownloadFile

This command will download a file on the speficied path, starting from the given update base URL + 'Updates/'. So if for example the base URL of https://yoursite.com/releases/yourapplication/ has been configured, a DownloadFile: dir1/some-file.txt will download the file from https://yoursite.com/releases/yourapplication/Updates/dir1/some-file.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_visual_update_express-1.0.4.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_visual_update_express-1.0.4-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file python_visual_update_express-1.0.4.tar.gz.

File metadata

File hashes

Hashes for python_visual_update_express-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2c8cf144a58768105ced5ffc5d386c375ced682ee7790d19c9c729720b4defe9
MD5 0eb556cfd56b2fe681678a4b1dc214b5
BLAKE2b-256 516bed103c319645a19d1ad4352f263f680a8f7e25728d7f30463279d1ae6b6a

See more details on using hashes here.

File details

Details for the file python_visual_update_express-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python_visual_update_express-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 864ba409557efad1795632f1ac2a3558d4c738eef5ebd33e0854bf2e75f87d1c
MD5 45e729bd0377f41b5dbbb102c6deea61
BLAKE2b-256 b2f14720a342261a5a3a380fdbaf45656d1cf958c4131a53af7583120ff9928e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page