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! ---
Contribute
Release files for nana 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nana-1.0.6.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nana-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / nana-1.0.6.tar.gz
| Download URL | nana-1.0.6.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86339ae2a552876c092eca7cb68e610454b4ada3162871732d3f7c2eedf82796
|
|
BLAKE2b-256 checksum How to use checksums |
64894ec316ccd1e951b43687cdf33ecd035ce2c6f64ef7a292c8fee55f603d35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / nana-1.0.6-py3-none-any.whl
| Download URL | nana-1.0.6-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c0d43406100e9016994ea7be61fd20c63defd022c063101a6a9cd99f2ef88fb
|
|
BLAKE2b-256 checksum How to use checksums |
8468168bb06de17740d6a1a33f63fca9f3b87e36a27c3fa1e2ec244e41c0056b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |