Skip to main content

Restart-on-change library

Project description

https://img.shields.io/pypi/v/lazarus.svg https://img.shields.io/pypi/l/lazarus.svg https://scrutinizer-ci.com/g/formwork-io/lazarus/badges/quality-score.png?b=master https://img.shields.io/travis/formwork-io/lazarus.svg

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)

History

0.6.3 2014-12-10

  • Expanded PyPI package page.

0.6.2 2014-12-09

  • Fixed Sublime Text save workflows.

0.6.1 2014-12-07

  • Added Mac Support.

0.5.1 2014-11-13

  • Migrated GitHub repository to formwork-io

0.5 2013-10-17

  • Released to PyPI

0.4 2013-10-17

  • Fixed crash when multiple changes detected and first triggers restart (#6)

  • Fixed default mode always closing FDs (#5)

0.3 2013-10-16

  • Added ability to specify restart command (#1)

  • Added ability to cancel the restart (#2)

0.1 2013-10-15

  • First functional release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazarus-0.6.3.tar.gz (10.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page