An open API service indexing awesome lists of open source software.

https://github.com/danr/vire

🔁 Reruns your python program when source files changes, with the possibility to preload libraries.
https://github.com/danr/vire

entr file-changes inotify reloader

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 🔁 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