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

Uploaded Source

File details

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

File metadata

  • Download URL: pyupgrader-1.0.3b1.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.3b1.tar.gz
Algorithm Hash digest
SHA256 e939bff0f694e095252f2d35f019fa7ec620c1e801d055cd07a7a78e0e946b5c
MD5 5b7d236a93b7ace2b43feab895ccbf39
BLAKE2b-256 d0d148a62927323d546af2ba155f57f24fff94fb41ab5746523f23219209eb38

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