Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Automatically re-run Python applications when files change.

Project description

repyt

Automatically re-run Python commands when files change.

Installation

pip install repyt

Usage

repyt [-h] [--command COMMAND] [args]

Where:

COMMAND             Any command to execute in the shell, as a string. This
                    doesn't even have to be a Python command!
args                Arguments as you would normally pass to the `python`
                    command.
-h or --help        Show this help message and exit.

Example

Use it just like you would use the python command:

repyt hello_world.py

Including args is totally fine:

repyt hello_world.py --world="Earth"

This is equivalent to:

repyt -c 'python hello_world.py --world="Earth"'

The command arg doesn’t even have to be a Python command:

repyt -c 'echo "Yo Adrian! I did it!"'

Description

repyt detects changes in the current directory and sub-directories, and re-runs your Python script, application, or any other command when files are changed by you or your editor.

It kindly ignores hidden files and a bunch of other stuff that probably isn’t important.

You should use it just like you use the python command, if possible.

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 repyt, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size repyt-0.1.1.tar.gz (3.0 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page