https://github.com/shaiksamad/auto-update
auto-update is a Python package designed to update Python projects installed on client systems that do not have Git installed. It retrieves the latest release from a specified GitHub repository, compares it with the currently installed version, and updates the project accordingly.
https://github.com/shaiksamad/auto-update
auto-update projects python
Last synced: 5 months ago
JSON representation
auto-update is a Python package designed to update Python projects installed on client systems that do not have Git installed. It retrieves the latest release from a specified GitHub repository, compares it with the currently installed version, and updates the project accordingly.
- Host: GitHub
- URL: https://github.com/shaiksamad/auto-update
- Owner: shaiksamad
- License: mit
- Created: 2024-04-22T19:58:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T19:38:04.000Z (almost 2 years ago)
- Last Synced: 2024-09-10T03:12:33.837Z (almost 2 years ago)
- Topics: auto-update, projects, python
- Language: Python
- Homepage: https://pypi.org/project/auto-update
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyUpdater
`auto-update` is a Python package designed to update Python projects installed on client systems that do not have Git installed. It retrieves the latest release from a specified GitHub repository, compares it with the currently installed version, and updates the project accordingly.
## Installation
You can install PyUpdater via pip:
```bash
pip install auto-update
```
# Usage
Create a new file `_auto_update.py` in the project root. Replace `owner` with your github username and `repo` with your github repository. Replace `release` with your release name.
### _auto_update.py
```python
"""
{owner}/{repo}
{release}
"""
from auto_update import Updater
updater = Updater(__doc__.strip())
```
`Updater` will then check for updates and apply them if necessary. It will log its activities to a file named updater.log in the current directory.
# License
This project is licensed under the MIT [License](https://github.com/shaiksamad/auto-update/blob/main/LICENSE) - see the LICENSE file for details.