hmr-daemon API Reference
hmr_daemon.windows
¶
excludes
module-attribute
¶
excludes = (
(venv,) if (venv := (getenv("VIRTUAL_ENV"))) else ()
)
shutdown_event
module-attribute
¶
shutdown_event = Event()
patch_first
module-attribute
¶
patch_first = 'hmr' in name
get_code
¶
get_code(_: ReactiveModuleLoader, fullname: str)
Source code in hmr_daemon/windows.py
11 12 13 14 15 16 |
|
patch
¶
patch()
Source code in hmr_daemon/windows.py
22 23 24 25 26 27 28 29 30 31 32 |
|
main
¶
main()
Source code in hmr_daemon/windows.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
hmr_daemon.posix
¶
_
¶
_()
Source code in hmr_daemon/posix/__init__.py
10 11 12 13 14 15 16 |
|
main
¶
shutdown_event
module-attribute
¶
shutdown_event = Event()
excludes
module-attribute
¶
excludes = (
(venv,) if (venv := (getenv("VIRTUAL_ENV"))) else ()
)
patch_first
module-attribute
¶
patch_first = 'hmr' in name
PipeReloader
¶
Bases: SyncReloader
Source code in hmr_daemon/posix/main.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
_process
instance-attribute
¶
_process = process
includes
instance-attribute
¶
includes = ('.',)
excludes
instance-attribute
¶
excludes = excludes
error_filter
instance-attribute
¶
error_filter = ErrorFilter(
*(map(str, glob("**/*.py"))), __file__
)
__init__
¶
__init__(process: Popen)
Source code in hmr_daemon/posix/main.py
54 55 56 57 58 |
|
iterate_pipe_events
¶
iterate_pipe_events() -> Iterable[set[tuple[Change, str]]]
Source code in hmr_daemon/posix/main.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
start_watching
¶
start_watching()
Source code in hmr_daemon/posix/main.py
85 86 87 88 89 |
|
cleanup
¶
cleanup()
Source code in hmr_daemon/posix/main.py
91 92 93 94 95 96 97 |
|
get_code
¶
get_code(_: ReactiveModuleLoader, fullname: str)
Source code in hmr_daemon/posix/main.py
14 15 16 17 18 19 20 |
|
patch
¶
patch()
Source code in hmr_daemon/posix/main.py
40 41 42 43 44 45 46 47 48 49 50 |
|
_watch
¶
_watch(process: Popen)
Source code in hmr_daemon/posix/main.py
100 101 102 103 104 105 106 107 |
|
run_reloader
¶
run_reloader(process: Popen)
Source code in hmr_daemon/posix/main.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|