Skip to main content

Nana keeps an eye on a directory and reacts when anything changes

Project description

Latest Version Downloads License
Nana the Dog

Nana keeps an eye on a directory and reacts when anything changes.

Usage

Nana requires Python 2.6 or better (including 3).

Install Nana from PyPI:

$ pip install nana

Tell Nana what to do when anything changes in the current directory:

# Rebuild Sphinx docs on every change in the current directory:
$ nana "sphinx-build -a docs/ docs/_build/html"
^.   .  ^

You can specify the directory to monitor with the -d option:

# Rebuild Sphinx docs on every change in the "docs" directory:
$ nana "sphinx-build -a docs/ docs/_build/html" -d docs
^.   .  ^

You can also tell Nana how many seconds she should wait between the checks with the -t option:

# Check the current directory once a minute:
$ nana "echo Updated!" -t 60
^.   .  ^

By default, Nana checks the directory every second.

To quit Nana, press Ctrl+C:

--- Ruff-Ruff! ---

Project details


Download files

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

Files for nana, version 1.0.6
Filename, size File type Python version Upload date Hashes
Filename, size nana-1.0.6-py3-none-any.whl (4.2 kB) File type Wheel Python version 3.5 Upload date Hashes View hashes
Filename, size nana-1.0.6.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page