semvec/pypi-packages huggingface dataset:
PyWatchRestart 0.0.4
A small example package
License: MIT
Requires Python: >=3.6

# PyWatchRestart

## Feature:
* Restart job when start or files change.
* Kill job when exit.

## Install
```sh
pip3 install -U PyWatchRestart
```

## Usage
```py
import logging
import PyWatchRestart
logging.basicConfig(
	level=logging.INFO, format="%(asctime)s\t%(levelname)s\t%(name)s\t%(message)s"
)
PyWatchRestart.WatchRestart(["."], r"\.(?:pid|log)$", ["sh", "sleep66.sh"])

```

```sh
python3 -m PyWatchRestart_cli -d . tmp -e "\.(?:pid|log)$" -- sleep66.sh
```