class documentation

class ReloaderLoop:

Known subclasses: werkzeug._reloader.StatReloaderLoop, werkzeug._reloader.WatchdogReloaderLoop

View In Hierarchy

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):
Do any setup, then run one step of the watch to populate the initial filesystem state.
Returns
ReloaderLoopUndocumented
def __exit__(self, exc_type, exc_val, exc_tb):
Clean up any resources associated with the reloader.
def __init__(self, extra_files=None, exclude_patterns=None, interval=1):

Undocumented

Parameters
extra​_files:t.Optional[t.Iterable[str]]Undocumented
exclude​_patterns:t.Optional[t.Iterable[str]]Undocumented
interval:t.Union[int, float]Undocumented
def log_reload(self, filename):

Undocumented

Parameters
filename:strUndocumented
def restart_with_reloader(self):
Spawn a new Python interpreter with the same arguments as the current one, but running the reloader thread.
Returns
intUndocumented
def run(self):
Continually run the watch step, sleeping for the configured interval after each step.
def run_step(self):
Run one step for watching the filesystem. Called once to set up initial state, then repeatedly to update it.
def trigger_reload(self, filename):

Undocumented

Parameters
filename:strUndocumented
exclude_patterns: t.Set[str] =

Undocumented

extra_files: t.Set[str] =

Undocumented

interval =

Undocumented