Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

watcher-0.2.1.zip (13.1 kB view details)

Uploaded Source

Built Distributions

watcher-0.2.1.win32-py3.2.exe (210.3 kB view details)

Uploaded Source

watcher-0.2.1.win32-py3.1.exe (210.3 kB view details)

Uploaded Source

watcher-0.2.1.win32-py2.7.exe (217.8 kB view details)

Uploaded Source

watcher-0.2.1.win32-py2.6.exe (210.6 kB view details)

Uploaded Source

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

Hashes for watcher-0.2.1.zip
Algorithm Hash digest
SHA256 201626aad12fa1b60e3f87994aa42229ac531d94470e60a3c363306577b0cf5e
MD5 91bcfd2d2d1d0a02e11d65bcb314cf89
BLAKE2b-256 347ba52100ac55799f1e09a4b1f2629355ebbf6ec246dc462ad42ad9ea943287

See more details on using hashes here.

File details

Details for the file watcher-0.2.1.win32-py3.2.exe.

File metadata

File hashes

Hashes for watcher-0.2.1.win32-py3.2.exe
Algorithm Hash digest
SHA256 6d02c69dbc79654132f0a37f4e575c7fada30506ae8ac07d04ec46596ba2c5ce
MD5 5a2335e62a642dfc66575a772ee3ae6a
BLAKE2b-256 6a95ea38de823790af5868cddf51a03a36e89daf06e0d86f4b45392e9875b10f

See more details on using hashes here.

File details

Details for the file watcher-0.2.1.win32-py3.1.exe.

File metadata

File hashes

Hashes for watcher-0.2.1.win32-py3.1.exe
Algorithm Hash digest
SHA256 db537e3ac4ac17b404b0e750c5992378403d524836d9295bbc39e8fad8ab6a08
MD5 d191b4c4f41b8a4dad30281ce5bb92cc
BLAKE2b-256 8586ba900b9c8fa2a1fd1f02d53cc320ac7fa0cb6e7be0d4980bf6766d1a0486

See more details on using hashes here.

File details

Details for the file watcher-0.2.1.win32-py2.7.exe.

File metadata

File hashes

Hashes for watcher-0.2.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 a2da1305d50711feb5d8fbe63faf8ab6b9b5ee1a03721edbf60dcbbbc674fb09
MD5 16c6a2b01f268957995e59f70eb10054
BLAKE2b-256 66223606ece2c81c0986f1a555510e7945780615d26a5f37dfe2c94ade02ced5

See more details on using hashes here.

File details

Details for the file watcher-0.2.1.win32-py2.6.exe.

File metadata

File hashes

Hashes for watcher-0.2.1.win32-py2.6.exe
Algorithm Hash digest
SHA256 56ab0409212428a250d6e27298b08f92fc3655560a536a6ad0b2bfc03b091923
MD5 ffe724c40f50687ac25888265c1a3bff
BLAKE2b-256 42626318171b0db64fa9b354dca05504454b7176a2311079c36a458e1cd3a01c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page