Skip to main content

auto-update is a Python package designed to update Python projects installed on client systems that do not have Git installed. It retrieves the latest release from a specified GitHub repository, compares it with the currently installed version, and updates the project accordingly.

Project description

PyUpdater

auto-update is a Python package designed to update Python projects installed on client systems that do not have Git installed. It retrieves the latest release from a specified GitHub repository, compares it with the currently installed version, and updates the project accordingly.

Installation

You can install PyUpdater via pip:

pip install auto-update

Usage

Create a new file _auto_update.py in the project root. Replace owner with your github username and repo with your github repository. Replace release with your release name.

_auto_update.py

"""
{owner}/{repo}
{release}
"""

from auto_update import Updater


updater = Updater(__doc__.strip())

Updater will then check for updates and apply them if necessary. It will log its activities to a file named updater.log in the current directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

auto_update-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

auto_update-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file auto_update-0.1.0.tar.gz.

File metadata

  • Download URL: auto_update-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.4

File hashes

Hashes for auto_update-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6430114edd954cbd0f5b9339834180036d04888c0bc27239a9a2a8c1b0905849
MD5 a3401473632d5c9e1c86f9070a073e03
BLAKE2b-256 1624e13b01a67b62d965de09d62fc537c78bb12c5a42b614b225fa7d3a34c327

See more details on using hashes here.

File details

Details for the file auto_update-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: auto_update-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.4

File hashes

Hashes for auto_update-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5bae82c2321875b20c79c6185974739734ba4d33ac3287d82935828b9e34178
MD5 e68262a090b04bd7497995b2a66fe63f
BLAKE2b-256 e5f72420610d59d95d11736529d37071c12a3ca6989d02e565e1071168a6e632

See more details on using hashes here.

Supported by

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