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).

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 details)

Uploaded Source

Built Distribution

pywater-1.0.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file pywater-1.0.2.tar.gz.

File metadata

  • Download URL: pywater-1.0.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for pywater-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0cca6d03a618ecf425fe4e995eced4e86ba42c68a21ecc217c4442388d8d8b51
MD5 0796e216be7626777ebb8d97542851ec
BLAKE2b-256 aabddfc5f9f05882727e9d2c89f256d8bdb8b414235bde25cdd89147f9718d77

See more details on using hashes here.

File details

Details for the file pywater-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pywater-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for pywater-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48ef944cc75b98ddc32318d48de43d4819cf28eac1851d268244538dada0cf14
MD5 dff5d3055b16d6485d82221d693d71de
BLAKE2b-256 dd78e079b5acf4dab22f8c64e3e57b981fd097ede367c93e84db11b452a52b0d

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