🛠️ A lightweight Python module to automatically update your script when a new version is released. Allows compilation to .exe and Linux executables.
- Checks if an update is available using a JSON file hosted on GitHub
- Downloads files when an update is available
- Can update itself and wait for the main script to stop before updating files
- Cross-platform support
- Supports
.exeand Linux compiled files - Custom error messages to help identify failures
- Active support via Discord
pip install easyupdatefrom easyupdate import UpdateManager
version = "1.2.0"
EasyUpdate = UpdateManager(
version_file=version,
version_url="https://url_to_versions_file/",
updater_name="update.exe" # Name of the updater if compiled in .exe or linux executable
)
EasyUpdate.search_update()
EasyUpdate.download_update(True)- Use our tool to generate the file for you (soon)
{
"latest": {
"version": "1.3.4",
"endpoint": "https://raw.githubusercontent.com/GeekMan44/EasyUpdate/refs/heads/main/",
"files": [
{
"file": "LICENSE",
"folder": ""
},
{
"file": "versions",
"folder": "version"
}
]
}
}- Tool to generate file
versions - Make a web documentation