Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple wrapper around inotify. No fancy bells and whistles, just a literal wrapper with ctypes. Only 95 lines of code!

Project Description

inotify_init() is wrapped as a class that does little more than hold the resulting inotify file descriptor. A read() method is provided which reads available data from the file descriptor and returns events as namedtuples after unpacking them with the struct module. inotify_add_watch() and inotify_rm_watch() are wrapped with no changes at all, taking and returning watch descriptor integers that calling code is expected to keep track of itself, just as one would use inotify from C. Works with Python 2 or 3.

Fork me on github: https://github.com/chrisjbillington/inotify_simple

Read the docs: http://inotify_simple.readthedocs.org

Installation:

to install inotify_simple, run:

$ pip install inotify_simple

or to install from source:

$ python setup.py install

Note: If on Python < 3.4, you’ll need the backported enum34 module (https://pypi.python.org/pypi/enum34).

inotify_simple is a small amount of code and unlikely to change much in the future until inotify itself or Python changes, so you can also just copy and paste it into your project to avoid the extra dependency with pretty low risk.

See full documentation at http://inotify_simple.readthedocs.org

Release History

Release History

This version
History Node

1.1.1

History Node

1.1.0

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
inotify_simple-1.1.1.tar.gz (6.8 kB) Copy SHA256 Checksum SHA256 Source Mar 5, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting