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

Uploaded Source

File details

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

File metadata

  • Download URL: pyupgrader-1.0.4b1.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.4b1.tar.gz
Algorithm Hash digest
SHA256 5fa5908ef8e32f6a6a0f535f57b9dd015d86a6dacaef737bd832585fe6a44b28
MD5 da0c7f3389e0ba8926bc5dceaae6f902
BLAKE2b-256 93053f65007973e1308e04818557cd73f79fbceb3738ad183d8f025bce79c56e

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