Skip to main content

Runner-Reloader for development

Project description


Runner for development code.


.. code:: shell

$ rr --help
usage: rr [-h] [--interval INTERVAL] [--exclude EXCLUDE]

Runner-Reloader for development

positional arguments:
command command

optional arguments:
-h, --help show this help message and exit
--interval INTERVAL, -i INTERVAL
interval for check
--exclude EXCLUDE, -e EXCLUDE
exclude pattern
loglevel for rr


.. code:: shell

$ rr --interval=10 my-app serve --listen=

This command launch ``my-app serve --listen=``
and scan current directory for changed files every ten seconds.
If some files was changed, application authomatically restarted.

This is usable for *development* docker containers.


The process rr receives a signal SIGUSR1 for starting reload process.


.. code:: shell

$ pip install rr


File ``.rr`` in current directory parsed for settings.
rr uses the `zini <>`_ library for this.

:command: command for run
:interval: interval between scan directory
:exclude: list of excluded directories for scan
:loglevel: `loglevel <>`_ for rr

Command line arguments has a higher priority than settings.

For example:

.. code:: ini

command = 'ping'
interval = 5s
loglevel = 'DEBUG'
exclude =

Project details

Download files

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

Files for rr, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size rr-0.2.0-py3-none-any.whl (7.1 kB) File type Wheel Python version 3.5 Upload date Hashes View hashes
Filename, size rr-0.2.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page