danr / vire

πŸ” Reruns your python program when source files changes, with the possibility to preload libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ” vire: viable reloader

Reruns your python program when source files changes, with the possibility to preload libraries.

$ vire -h
usage: vire [--clear] [--preload M] [--glob G] [--silent] [--auto-full-reload] [-m] ...

Installation:

pip install git+https://github.com/danr/vire.git

Options:

--clear, -c              Clear the screen before invoking the utility.
                         Specify twice to erase the scrollback buffer.
--preload M, -p M        Modules to preload, comma-separated. Example: flask,pandas
--glob G, -g G           Watch for updates to files matching this glob, Default: **/*.py
--silent, -s             Silence warning about modifications to preloaded modules.
--auto-full-reload, -r   Automatically do full reload on modifications to preloaded modules.
-m                       Argument is a module, will be run like python -m (using runpy)

Keybindings:

r, <space> reload
R full reload: reloads all preloaded modules
c reload with clear screen
C reload with clear screen and scrollback buffer
q, <ctrl-c> quit

About

πŸ” Reruns your python program when source files changes, with the possibility to preload libraries.

License:MIT License


Languages

Language:Python 100.0%