Hot Reload (Live Update) Server & Client for PyCompose Application
The PyComposeUI Hot Reloader is a tool designed to enhance the development experience by automatically reloading the UI when changes are detected in the source code. This allows for a more efficient workflow, eliminating the need to manually restart the application after each modification.
The Server of the PyComposeHotReloader assists HotReloading the files through FastAPI Server.
The Client Assistance provides the beter experience through three procedures.
a. Get the newest files from the server as zipped
b. Unzip the files
c. Update the application in the background
- Automatic Reloading: Detects changes in the source code and reloads the UI seamlessly.
- Configurable Watcher: Allows customization of the directories.
- Minimal Setup: Easy integration with existing PyComposeUI projects.
To install the PyComposeUI Hot Reloader, clone the repository and navigate to the project directory
git clone https://github.com/thisisthepy/pycomposeui-hot-reloader.git
cd pycomposeui-hot-reloader
python -m pycomposeui_hot_reloader.run server
Users can also specify the directories to watch and the destination to store the zipped files.
- Use -m to specify the directories to watch
- Use -z to specify the directory to store the zipped files.
python -m pycomposeui_hot_reloader.run server -w ./src/test/app/src -z ./test/app/zip_files
### in the top of your code
import PyComposeHotReloader
PyComposeHotReloader.run(server)