Last modified 2 days ago
Pyinotify short examples
| Examples Files | Descriptions |
| loop.py | Minimal example, should be read first |
| daemon.py | Simple example demonstrating how to daemonize pyinotify |
| chain.py | Show how to chain together several processing methods for the same event |
| exclude.py and exclude.lst | Show how to exclude a list of files from being watched |
| not_quiet.py | Demonstrate how to raise Exceptions on errors |
| stats.py | Simple example for displaying statistics, but it is a pretext for using processing methods, as well as chaining and callback functions on notifier.loop() |
| stats_threaded.py | Has the same purpose than stats.py but use a separate thread instead, this demonstrate how to use ThreadedNotifier |
| transient_file.py and transient_file.sh | Used for watching a transient file |
| tutorial_asyncnotifier.py | Simple example using AsyncNotifier class as notifier (relies over asyncore module) |
| tutorial_notifier.py and tutorial_threadednotifier.py | Used as examples in the tutorial |
| autocompile.py | Can be used to recompile a target automatically when monitored files are modified. |
| coalesce.py | Coalescing events. |
Directly browse examples files from Pyinotify's repository.
