Skip to main content

Run commands when files change

Project description

watch-fs on PyPI watch-fs on PyPI Travis-CI build status for watch-fs GitHub issues for watch-fs

watch-fs is a command line tool to run commands when files change.

Usage

watch-fs will watch any number of directories and files, and run a command when any of them are changed. By default, watch-fs will watch the current directory.

Usage: watch-fs [OPTIONS] COMMAND

Options:
  -d, --directory DIRECTORY  A directory to watch for file changes - can be
                             used multiple times, and defaults to the current
                             directory.
  -c, --clear                Clear the terminal before running the command
  -w, --wait FLOAT           A minium wait before running the command again,
                             in seconds
  -v, --verbose              -v prints commands before running, and -vv shows
                             debug information

Installation

I recommend you use pipsi to install watch-fs in it’s own virtualenv and link it from ~/.local/bin:

pipsi install watch-fs

Alternatively, you can install system-wide using pip:

pip install watch-fs

Licence

watch-fs is licensed under the MIT Licence.

Author

watch-fs was written by Sam Clements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

watch-fs-1.4.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

watch_fs-1.4.1-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file watch-fs-1.4.1.tar.gz.

File metadata

  • Download URL: watch-fs-1.4.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for watch-fs-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f4da030c9378604e4004dc6f8b7659dee7d7eb1f598c44fa8a680a76c013dbdc
MD5 e2f7cfe33c91f3500781d68765d77281
BLAKE2b-256 57da5cdb9961996af3baa5bffec36fbd5a3859407786db8731dfb26af7c7beab

See more details on using hashes here.

File details

Details for the file watch_fs-1.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for watch_fs-1.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fdbb00ca7bafc5e7fd7b0a9fddbbb8fc55874c96dc3fabc4c5bc02bf0ea41c23
MD5 ae5ae4df74a9ba79393e46d19cd0ffca
BLAKE2b-256 6508054a352ad411e147b5523105d8ed723ccd32c24d849de047acdba298c24c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page