Skip to main content

pywatch

A python clone (almost) of the Linux watch command.

The pywatch.watcher.Watcher class can be told to watch a set of files, and given a set of commands to run whenever any of those files change.

It was inspired by Ruby’s ZenTest, but while it can be used for testing, pywatch is intended to run any command when files change… test runners or otherwise.

See pywatch.autotest for an example of a continously running watch-and-runner.

pywatch usage

Usage: pywatch [options] “command” file1 file2 …

Options:
-h, --help

show this help message and exit

-v, --verbose

Output timestamp when commands are run.

--version

Output version number and exit

Changelog

0.4

  • Directories are now walked recursively and all files are added and watched

0.3.2

  • Added –version

0.3.1

  • Changed setup.py to include proper url

  • Added error catching for os.stat calls

  • pywatch with no args displays usage

0.3

  • Added pywatch command line client

0.2

  • Fixed missing os import in setup.py

0.1

  • Initial release of python module

Metadata

Release files for pywatch 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywatch 0.4
File Size Uploaded Provenance Actions
pywatch-0.4.tar.gz 4.1 kB Without provenance Details for pywatch-0.4.tar.gz

Release files / pywatch-0.4.tar.gz

Download URL pywatch-0.4.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b853e12055fff62026ce0b7275fa97d2d2862a486fb9259700949cda5caee1cf
BLAKE2b-256 checksum
How to use checksums
c4ae5db78d952e0159d735222fb067664886536eb8fa9524c6eeaa546cec0909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pywatch 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page