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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rr-0.2.0.tar.gz | 4.5 kB | Without provenance | Details for rr-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rr-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for rr-0.2.0-py3-none-any.whl |
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 |
Security for rr 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.