Simple, modern and high performance file watching and code reload in python.
Documentation: watchfiles.helpmanual.io
Source Code: github.com/samuelcolvin/watchfiles
Underlying file system notifications are handled by the Notify rust library.
This package was previously named "watchgod", see the migration guide for more information.
watchfiles requires Python 3.9 - 3.14.
Binaries are available for most architectures on Linux, MacOS and Windows (learn more).
Otherwise, you can install from source which requires Rust stable to be installed.
Here are some examples of what watchfiles can do:
See watch docs for more details.
See awatch docs for more details.
See run_process docs for more details.
See arun_process docs for more details.
watchfiles also comes with a CLI for running and reloading code. To run some command when files in src change:
For more information, see the CLI docs.
Or run
.png)


