Keep your Python code up to date on client machines.
Project description
PyUpgrader
Python library to keep projects updated on client machines
Pip Install: pip install pyupgrader
Getting Started
Build your project using the PyUpgrader CLI and upload it. Use the -h flag to see a list of options.
pyupgrader -p absolute/path/to/project -no_hidden
Importing PyUpgrader and initialize the UpdateManager object.
import pyupgrader
import os
import sys
man = pyupgrader.UpdateManager(r'https://raw.githubusercontent.com/{Owner}/{Repo}/{Branch}/path/to/.pyupgrader', r'absolute/path/to/project')
if __name__ == '__main__':
if man.check_update().get('has_update'):
lock_path = man.update()
input("Press enter to update...")
if os.path.exists(lock_path):
os.remove(lock_path)
sys.exit()
Replace the temporary values {}
with your information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyupgrader-1.0.1b1.tar.gz
(25.1 kB
view details)
File details
Details for the file pyupgrader-1.0.1b1.tar.gz
.
File metadata
- Download URL: pyupgrader-1.0.1b1.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cfeab6a1b34f8b1dc06a1daf62343cc230201d980d13ce728d5a05647dd30a8 |
|
MD5 | e9f028c0a838fb75bd034fa4bd7f3494 |
|
BLAKE2b-256 | 80f88fed404d8ae5751b874f8afa4a43cbfb639625aa60db76439786a44a862f |