PRO is a Python module that restarts processes and executes them when a change is detected.
Installation
pip install pro
Usage
pro runfile.py
Example runfile.py:
import os
from pro import CMD, run
run(CMD('python manage.py runserver 8080', cd='example_project'))
run('python -m SimpleHTTPServer 8888', watch_list=['watchme'])
sass_file = 'static/css/style.sass'
run('sass %s' % sass_file, watch_list=[sass_file])
template_dir="static/templates"
handlebars_inputs=os.path.join(template_dir, '*.handlebars')
handlebars_output=os.path.join(template_dir, 'templates.js')
cmd = 'handlebars `ls %s` -f "%s"' % (handlebars_inputs, handlebars_output)
run(cmd, watch_list=[handlebars_inputs])
Product's homepage
Requirements:
· Python