Automatically restarts the Kivy application whenever files within the project directory change.


Keywords
kivy, kivymd, hotrestart, gui, productivity, python, tool
License
Other
Install
pip install kvhot==2024.2.7

Documentation

kvhot

Automatically restarts the Kivy application whenever files within the project directory change.

No need to type python main.py each time, making a small change in the code 😄.

Installation

pip install kvhot

Demo

demo.mp4

Usage

usage: kvhot [-h] [--width WIDTH] [--height HEIGHT] [--top TOP] [--left LEFT] [-b BLACKLIST [BLACKLIST ...]] [-V] target_dir

Automatically restarts the Kivy application whenever files within the project's target directory change.

positional arguments:
  target_dir            directory of the entry-point (main.py) of the kivy application

options:
  -h, --help            show this help message and exit
  --width WIDTH         width of the window.
  --height HEIGHT       height of the window.
  --top TOP             top position of the window.
  --left LEFT           left position of the window.
  -b BLACKLIST [BLACKLIST ...], --blacklist BLACKLIST [BLACKLIST ...]
                        exclude specific files/dirs from being monitored.
  -V, --version         show program's version number and exit
  --app-args    arguments to pass to the kivy application as a single quoted string, this will be split and passed on to the kivy application, example --app-args "arg1 arg2 --my-kwarg=value"

(Works on windows, linux and osx)