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.
- Host: GitHub
- URL: https://github.com/danr/vire
- Owner: danr
- License: mit
- Created: 2022-12-03T12:49:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T11:00:35.000Z (about 2 years ago)
- Last Synced: 2025-01-23T15:39:48.007Z (9 months ago)
- Topics: entr, file-changes, inotify, reloader
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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