rcmpy.watch
index
/home/vkottler/src/vkottler/workspace/rcmpy/rcmpy/watch/__init__.py

An interface for implementing file-system watching tasks.

 
Package Contents
       
params

 
Functions
       
async command(*args: str, shell: bool = False) -> int
Run a subprocess and return the return code.
async entry(stop_sig: asyncio.locks.Event, params: rcmpy.watch.params.WatchParams) -> int
The async entry-point for the watch command.
get_event_loop()
Return an asyncio event loop.
 
When called from a coroutine or a callback (e.g. scheduled with
call_soon or similar API), this function will always return the
running event loop.
 
If there is no running event loop set, the function will return
the result of `get_event_loop_policy().get_event_loop()` call.
getpid()
Return the current process id.
watch(params: rcmpy.watch.params.WatchParams) -> int
Watch a directory for changes.
watch_cache() -> pathlib.Path
Obtain a file path to use as a cache.

 
Data
        LOG = <Logger rcmpy.watch (WARNING)>