I also did not find a solution, so I tried to make my own. Here it is .
You can install the package with this command:
pip install git+https:
(I will add it to PyPI after adding some tests.)
An example of setting up the manager located in the examples folder on github. I think the documentation will be very soon. Basically all you need to start using this module is to add an event listener using command , for example:
python -m touch_reload --socket unix:///tmp/supervisor.sock --file <path/to file file> --program <program name>
where file is the file to be tracked using the absolute or relative path of the directory , socket is the socket from the supervisorctl section, and program is the name of the program from the definition of the [program:<name>] section. --username and --password are also available, which you can use if you have a custom dispatcher configuration.
source share