Skip to main content

Update a package

Project description

package_updater


This module allow any package/module/script to be updated with the latest release from github

Install

pip3 install package-updater

Usage

import sys
import package_updater

updater = package_updater.Update(
    package_name="Name of the package",
    current_version="1.1.2",
    repo="https://api.github.com/repos/superlevure/SRU_com/releases/latest"
    )

if sys.argv[1] == "--update":
    updater.update()

The module will :

  • Check if a new version is avalaible
  • If so, backup the current version to a tar file
  • Download the new version
  • Extract it
  • Install it

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

package_updater-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

package_updater-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file package_updater-0.0.3.tar.gz.

File metadata

  • Download URL: package_updater-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for package_updater-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f24da859e46354f279d4665137cc02b367da6ac37704b96c2adb29091950e67f
MD5 80d3cd957afe2b5cb6cda23908401840
BLAKE2b-256 2be86ce0ff9cf0777fc89ab87ea52d30cd72b83621ddd6dcd30600e80b9f9e20

See more details on using hashes here.

File details

Details for the file package_updater-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: package_updater-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for package_updater-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fc3a98a085567290180ccbbce0ff246810650e33a3270d729907bc1cb42a8b
MD5 56d6fcc8f28584e814fd2aca1fdabf12
BLAKE2b-256 65767d6539025885781a1be6127868f3ab44543bad139c7b9f5a17eafe4e1d68

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