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.
The docs site is available, but the documentation is still under construction. However, we have first-class llms.txt and MCP support for AI agents.
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 run modules with hmr -m <module>, just like python -m <module>.
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.
Metadata
Release files for hmr 0.7.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hmr-0.7.6.3-py3-none-any.whl | Python 3 | none | any | Details for hmr-0.7.6.3-py3-none-any.whl |
Release files / hmr-0.7.6.3-py3-none-any.whl
| Download URL | hmr-0.7.6.3-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90fec12430b1a316d51c066ab79810b5812f67b4834937a2a9d43d38af268e37
|
|
BLAKE2b-256 checksum How to use checksums |
f2f53d777c903b962f177b94957afbd6b47f3ffd69b5275d86a3ed85a21cab02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for hmr 0.7.6.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.