Skip to main content

water - watch execute repeat

Reason this release was yanked:

renamed to foremon

Project description

water

water is a tool to help develop python projects by executing build tasks when file changes are detected.

water intends to have feature parity to nodemon, a similar tool for the NodeJS ecosystem, but provide those features within a python toolchain. To use water run your script or module as water [script or module] or run water --help for advanced usage.

File monitoring for water is provided by watchdog which provides its own shell-utility, watchmedo.

water is currently in beta.

Installation

Clone water with git or install it using pip (recommended):

pip install pywater

Usage

water will bootstrap your module or script with the arguments you normally pass to it:

water [script or module] [args]

For CLI options, use -h or --help:

water -h

Using water is simple. It will guess if you are running a module or python script and adjust the command-line arguments accordingly. To disable this feature, add the -n (--no-guess) option.

# Executes `script.py`
water -n script.py

# Executes `python3 script.py`
water script.py

# Does not try to guess command
water node server.js

water runs scripts the python interpreter of the environment it is installed in (sys.executable).

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

pywater-1.0.2.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

pywater-1.0.2-py3-none-any.whl (9.8 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