**PyPiUpdater** is a Python library for managing updates of packages installed via `pip`.
## Features
- Check the latest version of a package on PyPI
- Determine if an update is available
- Upgrade the package using `pip`
- Restart the Python script after updating
## Installation
```bash
pip install PyPiUpdater
```
## Usage example
**NOTE:** Example only work for client application, GUI apps such as OptimaLab35 with QT need also to close the window and should not use the restart function.
**Now the example by ChatGPT:**
Here's a short example code snippet for your `PyPiUpdater` package to include in your README:
```python
# Example usage of PyPiUpdater
from PyPiUpdater import PyPiUpdater
# Initialize the updater with the package name, current version, and log file path
# Check if an update is available (optionally forcing the check, otherwise only checked every 20 hours(default set with update_interval_seconds = int seconds))