lazarus 0.6.3 documentation

Lazarus

«  Welcome to Lazarus’s documentation!   ::   Contents   ::   Installation  »

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)

«  Welcome to Lazarus’s documentation!   ::   Contents   ::   Installation  »