A high-performance file watching and code reload library for Python, built with Rust for speed and reliability.
Watchfiles is a Python library for monitoring file system changes and automatically reloading code during development. It provides high-performance file watching capabilities using Rust under the hood, eliminating the need for manual restarts when source files are modified.
Python developers who need efficient file watching for development tools, auto-reload servers, or build automation scripts.
Developers choose Watchfiles for its speed, simplicity, and cross-platform reliability, offering both sync and async APIs with built-in code reloading functions out of the box.
Simple, modern and fast file watching and code reload for Python, written in Rust
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages the Rust `notify` library for efficient, low-level file system notifications, ensuring faster and more reliable event detection compared to pure Python solutions.
Provides both synchronous `watch` and asynchronous `awatch` functions, allowing seamless integration into any Python application architecture without forcing async adoption.
Includes `run_process` and `arun_process` to automatically restart Python processes on file changes, simplifying development workflows and reducing manual intervention.
Offers pre-built binaries for most architectures on Linux, macOS, and Windows, minimizing installation barriers and ensuring consistent performance across platforms.
Installing from source requires Rust stable, which can be a significant hurdle for teams without Rust expertise or in environments with restricted toolchains.
Focused solely on file system events, so projects needing to monitor other sources like APIs or databases require additional tooling or custom implementations.
Supports only Python 3.9 to 3.14, excluding older versions that legacy projects might depend on, potentially forcing upgrades or alternative solutions.