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
Release files for package-updater 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| package_updater-0.0.3.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| package_updater-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / package_updater-0.0.3.tar.gz
| Download URL | package_updater-0.0.3.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f24da859e46354f279d4665137cc02b367da6ac37704b96c2adb29091950e67f
|
|
BLAKE2b-256 checksum How to use checksums |
2be86ce0ff9cf0777fc89ab87ea52d30cd72b83621ddd6dcd30600e80b9f9e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / package_updater-0.0.3-py3-none-any.whl
| Download URL | package_updater-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2fc3a98a085567290180ccbbce0ff246810650e33a3270d729907bc1cb42a8b
|
|
BLAKE2b-256 checksum How to use checksums |
65767d6539025885781a1be6127868f3ab44543bad139c7b9f5a17eafe4e1d68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|