Skip to main content


Project description

PRO runs processes and restarts them when it observes file changes.

PRO only does two things, but it does them well: it runs processes,
and restarts select processes when their dependent files change.
PRO is designed to be useful for running processes in development, but
there are probably better options for running your processes in production.


pip install pro



Your runfile contains the description of which processes to run, and
an optional list of files to observe for each process group. A process
can be defined as a command to run as a string, or as a CMD object,
which can specify a directory in which to run.


import os
from pro import CMD, run

run(CMD('python 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])

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

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pro-0.1.2.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None Oct 4, 2012

Supported by

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