<?xml version="1.0" ?>
<?xml-stylesheet type='text/xsl' href='interface.xsl'?>
<interface uri="http://gfxmonk.net/dist/0install/simple_notify.xml" xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
	<name>simple_notify</name>
	<summary>A simple python-inotify wrapper</summary>
	<homepage>https://github.com/gfxmonk/simple_notify</homepage>
	<description>
**Note**: I have discontinued development of simple_notify,
          in favour of using the cross-platform `watchdog` library:
          https://github.com/gorakhargosh/watchdog



Example:

import simple_notify
def on_change(event):
	print &quot;event &quot; + event.event + &quot; occurred to &quot; + event.path

watcher = simple_notify.watch(&quot;/tmp&quot;, callback=on_change)
raw_input(&quot;press enter to quit...&quot;)

-----
watch() spawns a new thread that will watch for inotify events and
call your callback function.

Directories are tracked recursively, so when watching &quot;/tmp&quot; you would
see everything that happens in /tmp and any of its subdirectories

Your callback receives as its single argument an Event instance.
Event instances have the following fields:
 - path: path to file (relative to the watched root)
 - base: relative path to directory containing this node (from watch root)
 - name: name of this node
 - exists: (boolean) whether the file in this event now exists.
   False for REMOVED and
   MOVED_FROM events, True for ADDED, MODIFIED and MOVED_TO events
 - is_dir: boolean

You can pass `ignore_modifications=True` to `watch` if you don't wish
to be nodified of file modification events (merely additions, removals
and moves).
	</description>
	<group main="simple_notify.py">
		<requires interface="http://gfxmonk.net/dist/0install/pyinotify.xml"/>
		<implementation id="sha1new=76a65e479954cce747d6241c30f69f6a6f2a15b4" released="2010-12-04" version="0.1">
			<manifest-digest sha256="55921e2027116bdbcff702812ccdac6b55a913c91c565035440b30be5eec4a92"/>
			<archive href="http://gfxmonk.net/dist/0install/simple_notify/simple_notify-0.1.tgz" size="1247"/>
		</implementation>
		<implementation id="sha1new=2af74108cc883500c9dbca42ce9813366d4b97d1" released="2010-12-05" version="0.1.1">
			<manifest-digest sha256="3063dd5d1cb3b18a1c35a0d083aca6bb03ec84c05c7be28905ef7a534f5f2680"/>
			<archive href="http://gfxmonk.net/dist/0install/simple_notify/simple_notify-0.1.1.tgz" size="1184"/>
		</implementation>
		<implementation id="sha1new=3bcd50420ac6ee1dd13360b7cc886e49b788ace8" released="2011-01-11" version="0.2">
			<manifest-digest sha256="87640da53b4e889aa43e4222837704a66d961902c2c4bb842f5def1eb4470fd6"/>
			<archive href="http://gfxmonk.net/dist/0install/simple_notify/simple_notify-0.2.tgz" size="2155"/>
		</implementation>
	</group>
</interface>
<!-- Base64 Signature
iEYEABECAAYFAk0wWiUACgkQ/lhgK1iJTtIn/gCeOE1WcdvqPI0GLdntMeDpgi2oR3EAn3CXf8CN
75wvEUBoCJ4He5cq3Eiy

-->

