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'
updater_window = UpdaterWindow(UPDATE_BASE_URL, CURRENT_VERSION, UPDATE_TARGET_DIR)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_visual_update_express-1.0.0.tar.gz.
File metadata
- Download URL: python_visual_update_express-1.0.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
626a97dff25a84a9c4af074a639417da6e24852b584f4f54ea7ee2d6e85527f5
|
|
| MD5 |
cef41788b8d4d79a9eed686d47cbf064
|
|
| BLAKE2b-256 |
6dfad382b1bf46cf7ea50afeabcb743df553fb93e3c7d90ad0e810246fced6ff
|
File details
Details for the file python_visual_update_express-1.0.0-py3-none-any.whl.
File metadata
- Download URL: python_visual_update_express-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd737c41e613f676cb1433d4d07bfe5699c56b072fba99f2c1007bff73ac1394
|
|
| MD5 |
241a91cf86713e34a55424ccf9946d23
|
|
| BLAKE2b-256 |
2df4a42191961eb1b6fc50fb2825e73bb4545adb6f64451590f4d57aae65a362
|