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.
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.2.1.zip
.
File metadata
- Download URL: watcher-0.2.1.zip
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 201626aad12fa1b60e3f87994aa42229ac531d94470e60a3c363306577b0cf5e |
|
MD5 | 91bcfd2d2d1d0a02e11d65bcb314cf89 |
|
BLAKE2b-256 | 347ba52100ac55799f1e09a4b1f2629355ebbf6ec246dc462ad42ad9ea943287 |
File details
Details for the file watcher-0.2.1.win32-py3.2.exe
.
File metadata
- Download URL: watcher-0.2.1.win32-py3.2.exe
- Upload date:
- Size: 210.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d02c69dbc79654132f0a37f4e575c7fada30506ae8ac07d04ec46596ba2c5ce |
|
MD5 | 5a2335e62a642dfc66575a772ee3ae6a |
|
BLAKE2b-256 | 6a95ea38de823790af5868cddf51a03a36e89daf06e0d86f4b45392e9875b10f |
File details
Details for the file watcher-0.2.1.win32-py3.1.exe
.
File metadata
- Download URL: watcher-0.2.1.win32-py3.1.exe
- Upload date:
- Size: 210.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db537e3ac4ac17b404b0e750c5992378403d524836d9295bbc39e8fad8ab6a08 |
|
MD5 | d191b4c4f41b8a4dad30281ce5bb92cc |
|
BLAKE2b-256 | 8586ba900b9c8fa2a1fd1f02d53cc320ac7fa0cb6e7be0d4980bf6766d1a0486 |
File details
Details for the file watcher-0.2.1.win32-py2.7.exe
.
File metadata
- Download URL: watcher-0.2.1.win32-py2.7.exe
- Upload date:
- Size: 217.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2da1305d50711feb5d8fbe63faf8ab6b9b5ee1a03721edbf60dcbbbc674fb09 |
|
MD5 | 16c6a2b01f268957995e59f70eb10054 |
|
BLAKE2b-256 | 66223606ece2c81c0986f1a555510e7945780615d26a5f37dfe2c94ade02ced5 |
File details
Details for the file watcher-0.2.1.win32-py2.6.exe
.
File metadata
- Download URL: watcher-0.2.1.win32-py2.6.exe
- Upload date:
- Size: 210.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56ab0409212428a250d6e27298b08f92fc3655560a536a6ad0b2bfc03b091923 |
|
MD5 | ffe724c40f50687ac25888265c1a3bff |
|
BLAKE2b-256 | 42626318171b0db64fa9b354dca05504454b7176a2311079c36a458e1cd3a01c |