Runner-Reloader for development
Project description
Runner for development code.
Usage
$ 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
$ 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.
Installation
$ pip install rr
Settings
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:
[default]
command = 'ping 8.8.8.8'
interval = 5s
loglevel = 'DEBUG'
exclude =
'*/__pycache__'
'.git'
'node_modules'
'build'
'dist'
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rr-0.1.0.tar.gz.
File metadata
- Download URL: rr-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a25d372c42678b7e2402b366c4e15888aa4e11df9c0d6a9699ac258032d572f
|
|
| MD5 |
bca34d2bb7a6a5ca2ae8c63da1cba437
|
|
| BLAKE2b-256 |
2549e676449bd1af560a33c179f2be2c6bd1d79462578d0314d1cf6e043294f8
|
File details
Details for the file rr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3866dbbffe948f8430e5fb1b5af1d89bf67228d6082f1d89e8703914815b139
|
|
| MD5 |
34970add1833c72edb18fc46fe582e62
|
|
| BLAKE2b-256 |
b51e24f8db5d055a7381eafa929bb1a0200b2c01adc692d83f3c62ae6e293228
|