qmetrics.net

watchfiles

Rust-backed Python file watch and reload

watchfiles screenshot

watchfiles watches paths and reloads or restarts Python processes when files change, with sync and async APIs.

Overview

watchfiles is a Python package for file system watching and developer-oriented code reload. OS notifications are delegated to the Notify Rust library, which handles platform integration and polling fallbacks; change debouncing is also handled in Rust for batched updates.

Synchronously, watch() iterates over change sets for one or more files or directories. Asynchronously, awatch() provides the same for asyncio code. runprocess() and arunprocess() restart a target function or process when watched paths change, which suits local development servers and scripts.

A CLI can run arbitrary commands and reload them when files under configured paths change. Prebuilt wheels are offered for common Linux, macOS, and Windows CPU architectures; source installs require a stable Rust toolchain. The project was formerly named watchgod and documents migration from that name.

watchfiles supports Python 3.10 through 3.15 per its documentation and is imported or invoked as a CLI rather than operated as deployed server software.

Key features

  • Sync and async watch iterators
  • Process reload on changes
  • Rust Notify for OS events
  • Debounced change batches
  • CLI for command reloading
  • Prebuilt binaries on major OSes

Use cases

  • Dev server auto-reload
  • Watching config or source trees
  • Asyncio file change handling
  • CLI-driven reload workflows

Tags

Similar software

gulp.js

Streaming JavaScript toolkit for development workflow automation

Gulp automates repetitive development tasks by chaining streaming file transformations. It offers a small API, thousands of plugins, and runs with Node.js and other platforms used in major IDEs.

★ 32.9k⟳ 9 months agoMIT
Build & DeploymentDesktop/CLI app

Task

Cross-platform YAML task runner inspired by Make

Task runs project commands defined in a Taskfile.yml with a single CLI binary. It is intended as a readable alternative to Make for local workflows and CI.

★ 16.4k⟳ todayMIT
Build & DeploymentDesktop/CLI app

yq

Portable CLI processor for YAML, JSON, and XML

yq is a command-line processor for YAML, JSON, XML, CSV, TOML, HCL, properties, and related formats. It uses jq-like expressions for reading and editing structured files.

★ 16.4k⟳ 2 days agoMIT
Build & DeploymentDesktop/CLI app

Chocolatey

Command-line package manager for Windows software

Chocolatey installs, upgrades, and manages Windows software from the command line, wrapping installers, executables, archives, and scripts into packages.

★ 11.6k⟳ 8 days agoApache-2.0
Build & DeploymentDesktop/CLI app

Conda

Cross-platform binary package and environment manager

Conda installs and updates packages, resolves dependencies, and manages isolated environments on major operating systems. Its CLI is open source and language-agnostic.

★ 7.6k⟳ 2 days agoBSD-3-Clause
Build & DeploymentDesktop/CLI app

Clasp

Command-line Google Apps Script project manager

clasp develops and deploys Google Apps Script from your terminal. It syncs local folders with script.google.com, manages versions and deployments, and supports standalone or container-bound projects.

★ 5.9k⟳ 3 months agoApache-2.0
Build & DeploymentDesktop/CLI app