pywatchman
Watchman client for Python
What it is and what it does
pywatchman is a Python client library for interacting with Watchman, Meta's file watching service. It provides a programmatic interface to monitor filesystem changes across Windows, macOS, and Linux. The package itself has no runtime dependencies and is maintained by Meta's source control team.
Watchman watches files and records when they change, then can trigger actions like rebuilding assets in response. The Python client lets developers integrate file-watching capabilities into build systems, development tools, and automation scripts. It supports modern Python versions and is marked as production-stable.
Use it for:
- Integrate file watching into build systems to trigger asset rebuilds when source files change
- Monitor project directories in development tools to detect when to re-run tests or linters
- Watch for filesystem changes in automation scripts that need to react to file modifications
- Build file-change-triggered workflows in IDEs or editor plugins via the Watchman service
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pywatchman is a Python client for Watchman, a file watching service that monitors filesystem changes and can trigger actions when matching files change.
Yes, if you need file-watching capabilities and are willing to manage the Watchman daemon separately. The client itself is stable, permissively licensed, actively maintained, and has no dependency overhead. Verify that Watchman is available on your target platform and that you understand the daemon-vs-client architecture before committing.
Install
pywatchman on PyPI
pip
pip install pywatchmanuv
uv add pywatchmanpoetry
poetry add pywatchmanInstalling pywatchman
Before you install
Medium install friction due to platform-specific wheels (macOS arm64 binaries provided); no runtime dependencies. Active maintenance with recent release 63 days ago and ongoing repository activity.
License in practice
Permissive BSD-style license (with portions under MIT from the 'six' project) allows commercial and private use with attribution; no copyleft restrictions.
Quickstart
pip install pywatchman
import pywatchman
client = pywatchman.client()
result = client.query('watch-project', '/path/to/watch')
Requires Watchman daemon to be installed and running on the system; pywatchman is only the client library.
Verify before relying
- Whether Watchman daemon must be installed separately on the system for pywatchman to function
- Supported platforms beyond the macOS arm64 wheels shown in friction evidence
- Whether this is a pure Python client or requires compiled components on other platforms
Package facts
| License | The following license applies to all files within this directory and any subdirectories: Copyright 2014-present Meta Platforms, Inc. All rights reserved. Redistribution and use in source and binary… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 63 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 493,246/month — #6,356 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pywatchman-4.0.0-cp310-cp310-macosx_11_0_arm64.whl; pywatchman-4.0.0-cp311-cp311-macosx_11_0_arm64.whl; pywatchman-4.0.0-cp312-cp312-macosx_11_0_arm64.whl; pywatchman-4.0.0-cp313-cp313-macosx_11_0_arm64.whl; pywatchman-4.0.0-cp314-cp314-macosx_11_0_arm64.whl; pywatchman-4.0.0-cp38-cp38-macosx_11_0_arm64.whl; pywatchman-4.0.0-cp39-cp39-macosx_11_0_arm64.whl
Keywords: watchman, inotify, fsevents, kevent, kqueue, portfs, filesystem, watcher
Tags
More Filesystems packages
Watches file system changes and triggers…
permissive · top 1,000 on PyPI
watchdogWatchdog monitors file system events across…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
filetypeInfers file type and MIME type by examining…
permissive · top 1,000 on PyPI
pathvalidateSanitize and validate filenames and file paths…
permissive · top 5,000 on PyPI
pathlibProvides object-oriented filesystem path…
permissive · top 5,000 on PyPI
django-watchfilesReplaces Django's default file-change watcher…
permissive · top 15,000 on PyPI
pyinotifyMonitors Linux filesystem events (file…
permissive · top 5,000 on PyPI
watchgodWatches a directory for file changes and…
permissive · top 15,000 on PyPI
django-watchmandjango-watchman exposes a status endpoint that…
permissive · top 15,000 on PyPI
asyncinotifyProvides async and sync Python bindings to…
copyleft · top 15,000 on PyPI
pyobjc-framework-FSEventsProvides Python bindings to macOS's FSEvents…
permissive · top 15,000 on PyPI
inotifyWraps Linux kernel inotify to watch directories…
copyleft · top 15,000 on PyPI
inotify-simpleA lightweight Python wrapper around the Linux…
permissive · top 5,000 on PyPI