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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file watcher-0.1.zip
.
File metadata
- Download URL: watcher-0.1.zip
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c40bfa02811a18efabead77d9d319bedeae8258192503e5f9c43a3d4ebe5fdbd |
|
MD5 | 9a29cd602a83e87ca4eec90400517f24 |
|
BLAKE2b-256 | c214ce380756dd744b12fae62930d0ca6e41545d393b67be5e2ef6eb0778182b |
Provenance
File details
Details for the file watcher-0.1.win32-py3.2.exe
.
File metadata
- Download URL: watcher-0.1.win32-py3.2.exe
- Upload date:
- Size: 209.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 417bc9365a55211392a6ca6097f93430b67dc6f89d7ecdc096e29e852fbd24af |
|
MD5 | ff97d1dea405e5fcfe9c6a14aef7af79 |
|
BLAKE2b-256 | c90d5785d64bf0cceb4aea81b2b6b5b35b0ec677138f76b61eaaef5c1bad596c |
Provenance
File details
Details for the file watcher-0.1.win32-py3.1.exe
.
File metadata
- Download URL: watcher-0.1.win32-py3.1.exe
- Upload date:
- Size: 209.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 437e51f345700668516fb1ef7cb055a9cb600e56be5cf048148559fb903f8339 |
|
MD5 | 7a46337e39d0a9406b8dedd7f26dd607 |
|
BLAKE2b-256 | 694da453163201158c48dffcc76c02bb0f4f4bef5ce7dfca6395d9ada50889ee |