watchdog_gevent is a gevent-based observer for watchdog.
pip install watchdog_gevent
Just import and use its observer:
from watchdog_gevent import Observer
This will automatically import the best observer for the current
platform, preferring a gevent-based observer if gevent is installed
and the threading
module has been monkeypatched. This library
only works if the threading module has been monkeypatched.
The package only works if you use gevent to monkeypatch the threading module. Additionally, file and directory events are not emitted.
watchdog_event is licensed under Apache 2.0. Please see license for licensing details.