Module pyinotify
[hide private]
[frames] | no frames]

Module pyinotify

source code

pyinotify


Author: Sebastien Martini

License: MIT License

Contact: seb@dbzteam.org

Version: 0.9.0

Classes [hide private]
  PyinotifyError
Indicates exceptions raised by a Pyinotify class.
  UnsupportedPythonVersionError
Raised on unsupported Python versions.
  UnsupportedLibcVersionError
Raised on unsupported libc versions.
  PyinotifyLogger
Pyinotify logger used for logging unicode strings.
  SysCtlINotify
Access (read, write) inotify's variables through sysctl.
  EventsCodes
Set of codes corresponding to each kind of events.
  _Event
Event structure, represent events raised by the system.
  _RawEvent
Raw event, it contains only the informations provided by the system.
  Event
This class contains all the useful informations about the observed event.
  ProcessEventError
ProcessEventError Exception.
  _ProcessEvent
Abstract processing event class.
  _SysProcessEvent
There is three kind of processing according to each event:
  ProcessEvent
Process events objects, can be specialized via subclassing, thus its behavior can be overriden:
  PrintAllEvents
Dummy class used to print events strings representations.
  ChainIfTrue
Makes conditional chaining depending on the result of the nested processing instance.
  Stats
Compute and display trivial statistics about processed events.
  NotifierError
Notifier Exception.
  Notifier
Read notifications, process events.
  ThreadedNotifier
This notifier inherits from threading.Thread for instanciating a separate thread, and also inherits from Notifier, because it is a threaded notifier.
  AsyncNotifier
This notifier inherits from asyncore.file_dispatcher in order to be able to use pyinotify along with the asyncore framework.
  Watch
Represent a watch, i.e.
  ExcludeFilter
ExcludeFilter is an exclusion filter.
  WatchManagerError
WatchManager Exception.
  WatchManager
Provide operations for watching files and directories.
  Color
Internal class.
Functions [hide private]
 
STRERRNO() source code
 
logger_init()
Initialize logger instance.
source code
 
compatibility_mode()
Use this function to turn on the compatibility mode.
source code
 
command_line()
By default the watched path is '/tmp' and all types of events are monitored.
source code
Variables [hide private]
  __author__ = "seb@dbzteam.org (Sebastien Martini)"
  COMPATIBILITY_MODE = False
  LIBC = ctypes.CDLL(ctypes.util.find_library('c'), use_errno= T...
  LIBC_VERSION = LIBC_VERSION.decode()
  log = logger_init()
  ALL_EVENTS = reduce(lambda x, y: x | y, EventsCodes.OP_FLAGS.v...
Function Details [hide private]

compatibility_mode()

source code 

Use this function to turn on the compatibility mode. The compatibility mode is used to improve compatibility with Pyinotify 0.7.1 (or older) programs. The compatibility mode provides additional variables 'is_dir', 'event_name', 'EventsCodes.IN_*' and 'EventsCodes.ALL_EVENTS' as Pyinotify 0.7.1 provided. Do not call this function from new programs!! Especially if there are developped for Pyinotify >= 0.8.x.

command_line()

source code 

By default the watched path is '/tmp' and all types of events are monitored. Events monitoring serves forever, type c^c to stop it.


Variables Details [hide private]

LIBC

Value:
ctypes.CDLL(ctypes.util.find_library('c'), use_errno= True)

ALL_EVENTS

Value:
reduce(lambda x, y: x | y, EventsCodes.OP_FLAGS.values())