lazarus

Restart-on-change library


License
Apache-2.0
Install
pip install lazarus==0.1

Documentation

Lazarus

https://scrutinizer-ci.com/g/formwork-io/lazarus/badges/quality-score.png?b=master

A Python library to restart the process when source code changes.

Features

  • Automatically restart when source changes
  • Customize when, why, and how restarts happen
  • Runs on Linux and Mac

Examples

Restart when any Python module rooted at PYTHONPATH changes:

>>> import lazarus
>>> lazarus.default()

Same thing, but within a uWSGI container:

>>> import lazarus
>>> lazarus.default(restart_func=lambda: uwsgi.reload(), close_fds=False)