This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
# gevent_inotifyx

[gevent][1] compatibility module for the [inotifyx][2] Python inotify bindings.

This module is designed as a drop-in replacement for inotifyx.
Calling `gevent_inotifyx.get_events()` will only block the current greenlet
instead of the current thread.

[1]: http://www.gevent.org/
[2]: http://www.alittletooquiet.net/software/inotifyx/

## Installation

$ pip install gevent_inotifyx

From source:

$ python setup.py install

To run the tests:

$ python setup.py test

You can also test the module from the command line:

$ python -m gevent_inotifyx /some/path

will print inotify events for `/some/path`

## Example

Watch for newly created files and directories in `/tmp`:

import gevent
import gevent_inotifyx as inotify
from gevent.queue import Queue

def event_producer(fd, q):
while True:
events = inotify.get_events(fd)
for event in events:
q.put(event)

q = Queue()
fd = inotify.init()
wd = inotify.add_watch(fd, '/tmp', inotify.IN_CREATE)

gevent.spawn(event_producer, fd, q)
while True:
event = q.get()
print "received event:", event.get_mask_description(), event.name

Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gevent_inotifyx-0.1.1.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Apr 12, 2013

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