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.5b1.tar.gz
(25.1 kB
view details)
File details
Details for the file pyupgrader-1.0.5b1.tar.gz
.
File metadata
- Download URL: pyupgrader-1.0.5b1.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 | e55bb03f4baa0ae3c222e05fff07ebbc827335f81e6ddd45f1c213af0677c80f |
|
MD5 | 7f377917dd864799e72aa7ee973e9138 |
|
BLAKE2b-256 | fe746d86a2e545bdc729a1b385e8c01f6f581828c15c97a31d0a03be57243f9c |