Skip to main content

A lightweight Python module to automatically update your script when a new version is released. Allows compilation to `.exe` and Linux executables.

Project description

EasyUpdate

🛠️ A lightweight Python module to automatically update your script when a new version is released. Allows compilation to .exe and Linux executables.

📦 Features

  • 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 .exe and Linux compiled files
  • Custom error messages to help identify failures
  • Active support via Discord

🚀 Usage

1. Install the module with pip

pip install EasyUpdate (soon)

2. Import the module in your project

from 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
)

EasyUpdate.search_update()
EasyUpdate.download_update(True)

3. Make versions file

  • 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"
            }
        ]
    }
}

🕒 Soon

  • Tool to generate file versions
  • Upload module on PyPi
  • Make a web documentation

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

easyupdate-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

easyupdate-1.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file easyupdate-1.0.0.tar.gz.

File metadata

  • Download URL: easyupdate-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for easyupdate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3f4bdb5131ad7b2de80bd5634a277ec96f3478ffe304f9792fc4fbf9248c234d
MD5 3835ebb2d5e3e8676cfda94e50ea1173
BLAKE2b-256 8631705a6c6a0541c795a91d47cc2e34587b1693f6a54186610bef6ce51f5ee4

See more details on using hashes here.

File details

Details for the file easyupdate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: easyupdate-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for easyupdate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff9e3567afc4ed1756be98a38615bfe4af0f031d60f6575a65290c891eb0396
MD5 ba0ad2129c10efd73f6ceab288544b25
BLAKE2b-256 d9abee88e51c3db7d785b36b5c2d5f6949ede6d6799ae28d565cc792ff868a0d

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