Skip to main content
===============
Runner-Reloader
===============

Runner for development code.


Usage
=====

.. code:: shell

$ rr --help
usage: rr [-h] [--interval INTERVAL] [--exclude EXCLUDE]
[--loglevel {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL}]
...

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 {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL}
loglevel for rr

Simple
------

.. code:: shell

$ rr --interval=10 my-app serve --listen=0.0.0.0:8080

This command launch ``my-app serve --listen=0.0.0.0:8080``
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.


Signal
------

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


Installation
============

.. code:: shell

$ pip install rr


Settings
========

File ``.rr`` in current directory parsed for settings.
rr uses the `zini <https://github.com/zzzsochi/zini>`_ library for this.

:command: command for run
:interval: interval between scan directory
:exclude: list of excluded directories for scan
:loglevel: `loglevel <https://docs.python.org/3/howto/logging.html#logging-levels>`_ for rr

Command line arguments has a higher priority than settings.


For example:
~~~~~~~~~~~~

.. code:: ini

[default]
command = 'ping 8.8.8.8'
interval = 5s
loglevel = 'DEBUG'
exclude =
'*/__pycache__'
'.git'
'node_modules'
'build'
'dist'

Metadata

Release files for rr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rr 0.2.0
File Size Uploaded
rr-0.2.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rr 0.2.0
File Interpreter ABI Platform
rr-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / rr-0.2.0.tar.gz

Download URL rr-0.2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
67f74615f77a4ada3ca6f178dc7c55d1f8445daefe1933fec545cccf7496298c
BLAKE2b-256 checksum
How to use checksums
2fbda9b348028ea87efcc2b09f50f546e40024fe113a01356f6a6e1087ce972c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rr-0.2.0-py3-none-any.whl

Download URL rr-0.2.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3dd40fdaab6c4497545301844219f0bac602515ba2a5e46ca7f34d364a781a7
BLAKE2b-256 checksum
How to use checksums
2f96b54e741d48fa87b7dbdd7940767cf1ca9e841cbfee87c958aef9e38973d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page