Module

pyinc_docs.watch

Portable SHA-256 polling and debounce outside the query graph.

function

source_poll_state

def source_poll_state(source: str) -> PollState

Hash Python bytes and all entry identities without following links.

function

watch_loop

def watch_loop(session: CacheSession, source: str, output_root: str, *, interval_ms: int, debounce_ms: int, on_success: Callable[[ReconcileResult, tuple[str, ...]], None], on_error: Callable[[BaseException], None], sleep: Callable[[float], None] = time.sleep, clock: Callable[[], float] = time.monotonic, max_cycles: int | None = None) -> None

Build immediately, then reconcile each settled source change.