skip to navigation
skip to content

nana 1.0.6

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


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! ---
 
File Type Py Version Uploaded on Size
nana-1.0.6-py3-none-any.whl (md5) Python Wheel 3.5 2015-11-14 4KB
nana-1.0.6.tar.gz (md5) Source 2015-11-14 2KB