Metadata-Version: 2.1
Name: pyupgrader
Version: 1.0.4b1
Summary: Keep your Python code up to date on client machines.
Home-page: https://github.com/Trogiken/PyUpgrader
Author: Noah Blaszak
Author-email: technology.misc@gmail.com
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml
Requires-Dist: requests
Requires-Dist: packaging
Requires-Dist: setuptools

# 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.

``` python
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.
