watching
Class info¶
Re-exported classes¶
| Class | Module | Description |
|---|---|---|
| ResourceWatcher | llmling.resources.watching.watcher | Manages file system watching for resources. |
🛈 DocStrings¶
File system watching for resources.
ResourceWatcher
¶
Manages file system watching for resources.
Source code in src/llmling/resources/watching/watcher.py
add_watch
¶
add_watch(name: str, resource: BaseResource) -> None
Add a watch for a resource.
Source code in src/llmling/resources/watching/watcher.py
remove_watch
¶
Remove a watch for a resource.
Source code in src/llmling/resources/watching/watcher.py
start
async
¶
Start the file system monitor.
Source code in src/llmling/resources/watching/watcher.py
stop
async
¶
Stop the file system monitor.
Source code in src/llmling/resources/watching/watcher.py
load_patterns
¶
load_patterns(
patterns: Sequence[str] | None = None, ignore_file: JoinablePathLike | None = None
) -> list[str]
Load and combine watch patterns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
patterns
|
Sequence[str] | None
|
List of patterns from config |
None
|
ignore_file
|
JoinablePathLike | None
|
Optional path to .gitignore style file |
None
|
Returns:
| Type | Description |
|---|---|
list[str]
|
Combined list of patterns |