Skip to main content

A watch plugin for the Python task manager doit

Project description

doit_watch

A watch plugin for the Python task manager doit.

How to use

Run doit watch, or doit watch <TASK>, to run the tasks once if necessary, and then run them again when any of the input files change.

$ doit watch
.  MyTask
-> Watching 324 files for changes...

How to install

To install, add the following to your config files:

# requirements.txt
doit-watch>=0.1.0
# pyproject.toml (if using)
[tool.doit.plugins.command]
watch = "doit_watch:Watch"
# doit.cfg (if using)
[COMMAND]
watch = "doit_watch:Watch"

Credits

I didn't write this plugin myself. I took the source code of the doit-auto1 plugin, and combined the PR of @bollwyvl and the PR of @jguillon into a new package, with the name that we all agree the command should have.

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

doit_watch-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

doit_watch-0.1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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