Skip to main content

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


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.2b1.tar.gz (25.1 kB view details)

Uploaded Source

File details

Details for the file pyupgrader-1.0.2b1.tar.gz.

File metadata

  • Download URL: pyupgrader-1.0.2b1.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

Hashes for pyupgrader-1.0.2b1.tar.gz
Algorithm Hash digest
SHA256 de30bfeba5db7a990d171c5612cc538e36af111e5314da269cda8315b83c4b39
MD5 2938590d1c4dc86f8b451ae6d835b623
BLAKE2b-256 e3527ee56497298ec2bc9278e7993f47085e51dd3de82ef271c5364af4fb6186

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