$npx skillfedfor your agent

pytest-watcher

Automatically rerun your tests on file modifications

With conditionsPyPI UtilitiesReleased Jan 20261.8M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_watcher-0.6.3-py3-none-any.whl
v0.6.3 · released 2026-01-10 · Python >=3.9 · 2 runtime deps: tomli, watchdog

Yes, if you want a lightweight, low-friction way to automatically rerun tests during development. The aging maintenance status (last release 216 days ago) means you should not expect rapid bug fixes, but the package is stable and has no known vulnerabilities. Install it for active development workflows where continuous test feedback is valuable.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later
  • Low install friction with only two runtime dependencies (tomli and watchdog).
  • Maintenance status is aging—last release was 216 days ago—so expect slower response to issues, though the package is stable enough for established workflows.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal legal friction.

last release 2026-01-10 (216 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,808,295 downloads/mo, #3,532 on PyPI

Verify before relying

pip install pytest-watcher
ptw .
  • Whether interactive mode keyboard shortcuts work reliably on all POSIX systems
  • Performance characteristics when watching large codebases or many file patterns simultaneously
  • Compatibility with test runners other than pytest
Same gist for agents: .md · .json

What it is and what it does

pytest-watcher is a command-line tool that monitors your Python project for file changes and automatically reruns your tests. It watches for new, modified, deleted, or moved .py files by default, though you can customize the patterns. The tool uses native system file monitoring APIs (via watchdog) instead of polling, making it efficient on supported platforms including Unix and Windows.

You run it with `ptw .` to watch your current directory, and it passes any additional arguments to pytest or your chosen test runner. It includes a configurable delay (default 0.2 seconds) to account for post-processors like code formatters, optional screen clearing, and terminal notifications on test failure. Configuration can be set in pyproject.toml, and it requires Python 3.9 or later.

Use it for

  • Rapid feedback loop during test-driven development where you want tests to run immediately after saving code
  • Continuous validation of a specific directory or file pattern while refactoring
  • Running alternative test runners with the same watch-and-rerun workflow
  • Ignoring certain files while watching the rest of your codebase

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you want a lightweight, low-friction way to automatically rerun tests during development.

The aging maintenance status (last release 216 days ago) means you should not expect rapid bug fixes, but the package is stable and has no known vulnerabilities. Install it for active development workflows where continuous test feedback is valuable.

Install

pytest-watcher on PyPI

Before you install

Low install friction with only two runtime dependencies (tomli and watchdog). Maintenance status is aging—last release was 216 days ago—so expect slower response to issues, though the package is stable enough for established workflows.

Requires Python 3.9 or later

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal legal friction.

Quickstart

pip install pytest-watcher
ptw .

Verify before relying

  • Whether interactive mode keyboard shortcuts work reliably on all POSIX systems
  • Performance characteristics when watching large codebases or many file patterns simultaneously
  • Compatibility with test runners other than pytest

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
tomliwatchdog
MaintenanceAging 216 days since the last release
First released
Downloads1,808,295 / month, #3,532 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_watcher-0.6.3-py3-none-any.whl

Tags

Capabilities
auto-rerun tests on file changepytest watch file changescontinuous test runnertest watcher toolpytest auto-rerun
Topics
test-automationfile-watcherdev-tools
PyPI keywords
pytestwatchwatcher

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “auto-rerun tests on file change”

  • pytest-watcherAutomatically reruns pytest (or another test runner) whenever your…
  • pytest-watchRuns pytest continuously, re-executing tests whenever project files…
  • pywatchmanpywatchman is a Python client for Watchman, a file watching service…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also pytest-hot-reloading · pytest-watch · watchgod · watchfiles · hupper · pywatchman · pytest-retry · pytest-rerunfailures · pyinotify · sphinx-autobuild