FileWatchConfig
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| EventSourceConfig evented_config.configs Base configuration for event sources. |
⋔ Inheritance diagram¶
graph TD
3205037684["configs.FileWatchConfig"]
711273161["configs.EventSourceConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
711273161 --> 3205037684
330168112 --> 711273161
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: EventSourceConfig
File watching event source.
Source code in src/evented_config/configs.py
debounce
class-attribute
instance-attribute
¶
Minimum time (ms) between trigger events.
extensions
class-attribute
instance-attribute
¶
extensions: list[str] | None = Field(
default=None,
examples=[[".py", ".md"], [".js", ".ts", ".json"], [".yaml", ".yml"]],
title="File extensions",
)
File extensions to monitor (e.g. ['.py', '.md']).
ignore_paths
class-attribute
instance-attribute
¶
ignore_paths: list[str] | None = Field(
default=None,
examples=[["__pycache__", ".git"], ["node_modules"], ["*.tmp"]],
title="Ignore patterns",
)
Paths or patterns to ignore.
paths
class-attribute
instance-attribute
¶
paths: list[str] = Field(
examples=[["./src", "./docs"], ["/home/user/projects"], ["*.py", "config/*.yaml"]],
title="Watch paths",
)
Paths or patterns to watch for changes.
recursive
class-attribute
instance-attribute
¶
Whether to watch subdirectories.
type
class-attribute
instance-attribute
¶
File / folder content change events.
get_event_source
¶
get_event_source() -> FileSystemEventSource
Create file system event source instance.