Hot Module Reload for Python
Project description
HMR means Hot Module Reload / Hot Module Replacement. It is a feature that allows part of your app to be updated at runtime without a full rerun.
- The module whose source file you changed will rerun
- The module / function that depends on the changed module will rerun
- Other modules that are unaffected (like third-party libraries) will not rerun
Thus, in contrast to the traditional way of cold-reloading Python applications (like watchfiles CLI), HMR is just more efficient.
Unlike static-analysis tools like Tach, HMR works by tracking the dependencies between names and modules during runtime through a reactive system.
Usage
If you are running your entry file with python foo.py bar baz ..., you can just replace it with hmr foo.py bar baz ....
You can also try it with uvx or pipx. If you are using a virtual environment, it is recommended to install hmr in the virtual environment instead of globally.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hmr-0.6.4.3.tar.gz.
File metadata
- Download URL: hmr-0.6.4.3.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
558cbb3129ee273004228890a5c672b486982630349200e5ff794b41d5cb171d
|
|
| MD5 |
06f3982f876c1740650a2f0a9f36b775
|
|
| BLAKE2b-256 |
ae29bb01af71c33c61c030f1b1269c8cec73265458b47c1d35efb0d1e09ad5e3
|
File details
Details for the file hmr-0.6.4.3-py3-none-any.whl.
File metadata
- Download URL: hmr-0.6.4.3-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ea0b0e776023dce28e46ddab26c38970638782ba086b73cdd356fca97ba3c1
|
|
| MD5 |
619e2e61045d6e75ceb1b7af0fdcdd06
|
|
| BLAKE2b-256 |
46e2550d220bbb9c3f1c86909ecd93068b682ce3466ef33fc0256de7ecd01353
|