| single |
Watchdog
========
|PyPI Version|
|PyPI Status|
|PyPI Python Versions|
|GitHub Build Status|
|Documentation Status|
|GitHub License|
.. :changelog:
Changelog
---------
7.1.0
~~~~~
2026-11-04 • [full history]
**Other Changes**
- [fsevents] Fix building the extension on PyPy 3.12 by updating the
bundled ``pythoncapi_compat.h``. (`#1397
`__)
- [inotify] Create the inotify instance lazily so observer and polling
imports succeed when the inotify instance limit is reached. (`#1389
`__)
- [inotify] Reconcile recursively watched directories renamed before their
source watch was registered, and simulate existing descendants so their
initial changes are reported. (`#1383
`__)
- [inotify] Reconcile recursive watches after the kernel reports an inotify
queue overflow so subsequent filesystem changes are observed. (`#654
`__)
- [inotify] Watch directories moved into a recursively watched directory
from outside of it, so that changes inside them are reported. (`#1094
`__)
- [inotify] Fix the inotify thread dying with a KeyError when a directory
tree is copied or extracted into a recursively watched directory, which
stopped all inotify observers in the process. (`#1388
`__)
- [observers] Align BaseObserver with BaseThread by using
``on_thread_start() instead of overriding start()``. (`#286
`__)
- [watchmedo] Fix ``watchmedo generate-tricks-yaml output so that watchmedo
tricks`` can load it: trick options are now nested under the trick name
instead of under unsupported args/kwargs keys. (`#1403
`__)
- Thanks to our beloved contributors: @BoboTiG, @prateek-dagar, @monosans,
@taltal-beep, @Aschenbath, @yangfan-yf-yf, @alexruperez, @PDGGK,
@Skeletor-Pirate
7.0.0
~~~~~
2026-10-31 • [full history]
**Breaking Changes**
- Drop support for Python 3.9 and 3.10.
- [core] Changed pattern matching mechanism from using ``path.match() to
path.full_match()``. Users must update patterns to glob-like syntax: e.g.,
`*.py` to `**/*.py`. (`#1101
`__)
- [core] Added FileAttribEvent and DirAttribEvent for file and directory
metadata modifications (such as permissions or timestamps), separate from
content modifications. These events no longer trigger ``on_modified()``;
implement ``on_attrib()`` to handle them. On Windows 10 (1709+) and Windows
Server 2016+, ReadDirectoryChangesExW is used to differentiate attribute
modifications, with fallback to ReadDirectoryChangesW on older versions or
unsupported file shares. (`#260
`__)
- [watchmedo] Changed the default ``--patterns value from "*" to "**"``, so
the default matches absolute paths at any depth under the ``full_match()``
semantics introduced by #1101, and updated the CLI help text and docs to
the ``**/`` glob syntax. (`#1212
`__)
**Other Changes**
- Add support for Python 3.15 (`#1226
`__)
- [core] Add context manager support to Observer class. The observer can
now be used with a with statement for automatic start/stop management.
(`#1090 `__)
- [core] Add support for the follow_symlink keyword argument to
ObservedWatch. (`#1086
`__)
- [core] Added the ignore_policy argument to PatternMatchingEventHandler
and RegexMatchingEventHandler to configure multi-path event filtering
(moves/renames). PatternMatchingEventHandler is now strict by default,
aligning with RegexMatchingEventHandler. (`#412
`__, `#423
`__)
- [core] Added the ``watchdog.utils.Seconds`` type alias and used it for
the time-duration parameters (timeout, polling_interval, kill_after, ...)
instead of documenting the unit in each docstring. Duration parameters
previously hinted as int now accept float.
|