python-inotify /

Filename Size Date modified Message
examples
inotify
53 B
25.8 KB
178 B
2.0 KB
885 B

About python-inotify

This is python-inotify, a Python interface to the Linux 2.6 kernel's inotify subsystem. The inotify subsystem provides an efficient way to let a process watch for changes to files and directories.

This package provides both low- and high-level interfaces to inotify.

The low-level interface is provided through the inotify module. It provides wrappers around the inotify system calls, a read function that returns useful event objects, and relevant constants.

The higher-level interface is more useful, and is provided through the inotify.watcher package. It provides two classes, Watcher and AutoWatcher, which allow you to not worry about file descriptor management, and a third, Threshold, which lets you decide whether you want to read queued events yet.

This package is not pyinotify

To confuse matters a little, there's another Python inotify interface available, called pyinotify. I wrote python-inotify as a reaction to pyinotify, after trying to use pyinotify a little and finding it lacking. In my admittedly brief experience, pyinotify was buggy and slow to the extent that I stopped trying to fix its problems and wrote a new implementation instead.

You can find pyinotify at http://pyinotify.sourceforge.net/

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.