Skip to main content

Based on pyinotfy, simplify the module by removing unused class and add new useful function to implement the callback

Project description

Overview

Yinotify help user to create the callback function triggered when the monitor event detected by the linux Kernel. User could register the directoried for the watching and bing with the Event with the specified action. Internal Class Yivent could help to collect the statistics and status based on the events registered. That polling one or more directories to determine if anything has changed is the linux kernel interface, which help us control more from application level

the project based on inotify, and removed some unused function and class

Installing

Install via pip:

$ sudo pip install Yinotify

Example

Simple Usage::
exp1:
def printEvent():

print(“Action triggered!!”)

yiSample = Yinotify.fEvent(_target_folder,”IN_ISDIR”,printEvent)

exp2:
def printEvent(arg):

print(“Action triggered!!”,arg)

yiSample = Yinotify.fEvent(_target_folder,”IN_ISDIR”,printEvent,arg)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Yinotify-0.2.10.tar.gz (6.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page