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!

FileSystemWatcher clone for CPython

Project Description

watcher is a low-level C extension for receiving file system updates using the ReadDirectoryChangesW API on Windows systems.:

import watcher
w = watcher.Watcher(dir, callback)
w.flags = watcher.FILE_NOTIFY_CHANGE_FILE_NAME
w.start()

The package also includes a high-level interface to emulate most of the .NET FileSystemWatcher API. The callback adding and removing mirrors how the same would be done on IronPython. Additionally, enabling and disabling of the callbacks is the same.:

import FileSystemWatcher
fsw = FileSystemWatcher("somedir")
fsw.NotifyFilter = FileSystemWatcher.NotifyFilters.FileName
fsw.Created += your_callback
fsw.EnableRaisingEvents = True

The project is still in progress. Development occurs at https://bitbucket.org/briancurtin/watcher.

Changes

0.2.1

  • 2.6 compatibility fixes from Jo Jurgens.

0.2

  • Support for Python 2 (only tested with 2.7). It probably works with older versions as well.
  • Support for bytes paths on Python 3.

0.1

  • Initial release, Python 3 only.
Release History

Release History

This version
History Node

0.2.1

History Node

0.2

History Node

0.1

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
watcher-0.2.1.win32-py2.6.exe (210.6 kB) Copy SHA256 Checksum SHA256 2.6 Windows Installer Feb 25, 2011
watcher-0.2.1.win32-py2.7.exe (217.8 kB) Copy SHA256 Checksum SHA256 2.7 Windows Installer Feb 25, 2011
watcher-0.2.1.win32-py3.1.exe (210.3 kB) Copy SHA256 Checksum SHA256 3.1 Windows Installer Feb 25, 2011
watcher-0.2.1.win32-py3.2.exe (210.3 kB) Copy SHA256 Checksum SHA256 3.2 Windows Installer Feb 25, 2011
watcher-0.2.1.zip (13.1 kB) Copy SHA256 Checksum SHA256 Source Feb 25, 2011

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