module documentation

Undocumented

Class ReloaderLoop No class docstring; 0/3 instance variable, 0/1 class variable, 5/8 methods documented
Class StatReloaderLoop Undocumented
Class WatchdogReloaderLoop Undocumented
Function ensure_echo_on Ensure that echo mode is enabled. Some tools such as PDB disable it which causes usability issues after a reload.
Function run_with_reloader Run the given function in an independent Python interpreter.
Variable prefix Undocumented
Variable reloader_loops Undocumented
Function _find_common_roots Undocumented
Function _find_stat_paths Find paths for the stat reloader to watch. Returns imported module files, Python files under non-system paths. Extra files and Python files under extra directories can also be scanned.
Function _find_watchdog_paths Find paths for the stat reloader to watch. Looks at the same sources as the stat reloader, but watches everything under directories instead of individual files.
Function _get_args_for_reloading Determine how the script was executed, and return the args needed to execute it again in a new process.
Function _iter_module_paths Find the filesystem paths associated with imported modules.
Function _remove_by_pattern Undocumented
Variable _ignore_always Undocumented
Variable _ignore_common_dirs Undocumented
Variable _stat_ignore_scan Undocumented
def ensure_echo_on(): (source)

Ensure that echo mode is enabled. Some tools such as PDB disable it which causes usability issues after a reload.

def run_with_reloader(main_func: t.Callable[[], None], extra_files: t.Optional[t.Iterable[str]] = None, exclude_patterns: t.Optional[t.Iterable[str]] = None, interval: t.Union[int, float] = 1, reloader_type: str = 'auto'): (source)

Run the given function in an independent Python interpreter.

Undocumented

Undocumented

def _find_common_roots(paths: t.Iterable[str]) -> t.Iterable[str]: (source)

Undocumented

def _find_stat_paths(extra_files: t.Set[str], exclude_patterns: t.Set[str]) -> t.Iterable[str]: (source)

Find paths for the stat reloader to watch. Returns imported module files, Python files under non-system paths. Extra files and Python files under extra directories can also be scanned. System paths have to be excluded for efficiency. Non-system paths, such as a project root or ``sys.path.insert``, should be the paths of interest to the user anyway.

def _find_watchdog_paths(extra_files: t.Set[str], exclude_patterns: t.Set[str]) -> t.Iterable[str]: (source)

Find paths for the stat reloader to watch. Looks at the same sources as the stat reloader, but watches everything under directories instead of individual files.

def _get_args_for_reloading() -> t.List[str]: (source)

Determine how the script was executed, and return the args needed to execute it again in a new process.

def _iter_module_paths() -> t.Iterator[str]: (source)

Find the filesystem paths associated with imported modules.

def _remove_by_pattern(paths: t.Set[str], exclude_patterns: t.Set[str]): (source)

Undocumented

_ignore_always = (source)

Undocumented

_ignore_common_dirs: set[str] = (source)

Undocumented

_stat_ignore_scan = (source)

Undocumented