textual-hmr
Provides Hot Module Reloading for Textual apps.
It acts as a small runner for Textual development: save Python files, and the current app instance exits so the updated app can be started again in the same Python process. When you export an App subclass, textual-hmr also enables Textual's built-in CSS watching by default.
CLI Usage
If your app class is named DemoApp in ./main.py, run:
textual-hmr ./main.py:DemoApp
Or use a module import path:
textual-hmr my_package.main:DemoApp
The target may be:
- an
Appsubclass - an
Appinstance - a zero-argument callable returning an
App
Options
textual-hmr --help
The command supports:
--watch PATH: additional file or directory paths to watch--ignore PATH: file or directory paths to ignore--headless: run without terminal output--inline: use Textual inline mode--inline-no-clear: preserve inline output after exit--no-mouse: disable mouse support--clear: clear the terminal before restarting after changes--no-watch-css: do not enable Textual's CSS watcher when the target is anAppsubclass
Notes
- This package is currently optimized for the common dev loop of restarting a Textual app quickly in-process when code changes.
- It does not attempt to preserve widget state across app restarts.
- For CSS-only changes, Textual's own watcher is usually the smoother path;
textual-hmrenables that automatically for exported app classes unless you disable it.
Metadata
Release files for textual-hmr 0.0.2
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 |
|---|---|---|---|---|
| textual_hmr-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for textual_hmr-0.0.2-py3-none-any.whl |
Release files / textual_hmr-0.0.2-py3-none-any.whl
| Download URL | textual_hmr-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49147eb459dac52408e54aab02d4980d8be180ee92bb66b0180e20bfa2a881dd
|
|
BLAKE2b-256 checksum How to use checksums |
9997d990ee0ecc6aa0ab1b7fa106d6e421d6175e37ca4e14ef7e167a993e2815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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 textual-hmr 0.0.2
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.