Classes
SnapshotEntry
dataclass
SnapshotEntry
dataclass Attributes
| Name | Type | Description |
|---|---|---|
size |
int |
|
mtime |
float |
OutputSnapshot
dataclass
OutputSnapshot
dataclass Attributes
| Name | Type | Description |
|---|---|---|
files |
dict[str, SnapshotEntry] |
ReloadDecision
dataclass
ReloadDecision
dataclass Attributes
| Name | Type | Description |
|---|---|---|
action |
str |
|
reason |
str |
|
changed_paths |
list[str] |
ReloadController
ReloadController
Methods 5
set_min_notify_interval_ms
set_min_notify_interval_ms
def set_min_notify_interval_ms(self, value: int) -> None
Parameters 1
value |
int |
set_ignored_globs
set_ignored_globs
def set_ignored_globs(self, globs: list[str] | None) -> None
Parameters 1
globs |
list[str] | None |
set_hashing_options
set_hashing_options
def set_hashing_options(self) -> None
decide_and_update
decide_and_update
def decide_and_update(self, output_dir: Path) -> ReloadDecision
Parameters 1
output_dir |
Path |
Returns
ReloadDecision
decide_from_changed_paths
Classify a given list of changed output paths.
Applies ignore globs and thrott…
decide_from_changed_paths
def decide_from_changed_paths(self, changed_paths: list[str]) -> ReloadDecision
Classify a given list of changed output paths.
Applies ignore globs and throttling consistently with decide_and_update.
Parameters 1
changed_paths |
list[str] |
Returns
ReloadDecision
Internal Methods 1
__init__
__init__
def __init__(self, min_notify_interval_ms: int = 300, ignored_globs: list[str] | None = None, hash_on_suspect: bool = True, suspect_hash_limit: int = 200, suspect_size_limit_bytes: int = 2000000) -> None
Parameters 5
min_notify_interval_ms |
int |
|
ignored_globs |
list[str] | None |
|
hash_on_suspect |
bool |
|
suspect_hash_limit |
int |
|
suspect_size_limit_bytes |
int |