class documentation

Undocumented

Method __enter__ Do any setup, then run one step of the watch to populate the initial filesystem state.
Method __exit__ Clean up any resources associated with the reloader.
Method __init__ Undocumented
Method log_reload Undocumented
Method restart_with_reloader Spawn a new Python interpreter with the same arguments as the current one, but running the reloader thread.
Method run Continually run the watch step, sleeping for the configured interval after each step.
Method run_step Run one step for watching the filesystem. Called once to set up initial state, then repeatedly to update it.
Method trigger_reload Undocumented
Class Variable name Undocumented
Instance Variable exclude_patterns Undocumented
Instance Variable extra_files Undocumented
Instance Variable interval Undocumented
def __enter__(self) -> ReloaderLoop: (source)

Do any setup, then run one step of the watch to populate the initial filesystem state.

def __exit__(self, exc_type, exc_val, exc_tb): (source)

Clean up any resources associated with the reloader.

def __init__(self, extra_files: t.Optional[t.Iterable[str]] = None, exclude_patterns: t.Optional[t.Iterable[str]] = None, interval: t.Union[int, float] = 1): (source)

Undocumented

def log_reload(self, filename: str): (source)

Undocumented

def restart_with_reloader(self) -> int: (source)

Spawn a new Python interpreter with the same arguments as the current one, but running the reloader thread.

def run(self): (source)

Continually run the watch step, sleeping for the configured interval after each step.

def run_step(self): (source)

Run one step for watching the filesystem. Called once to set up initial state, then repeatedly to update it.

def trigger_reload(self, filename: str): (source)

Undocumented

exclude_patterns: t.Set[str] = (source)

Undocumented

extra_files: t.Set[str] = (source)

Undocumented

interval = (source)

Undocumented