Skip to main content

Sisyphus command runner

Project description

Sisyphus is a little helper script to re-run arbitrary commands over and over again. Poor Sisyphus will execute the argument list as a command, monitor the current directory for changes and re-run the command each time a modification is detected. Also, it will terminate a long-running command when a modification is detected and start over.

It is based on the pyinotify example script “[autocompile.py](https://github.com/seb-m/pyinotify/blob/master/python2/examples/autocompile.py)”.

You can use Sisyphus to

  • auto-compile your program

  • auto-run your test suite

  • auto-restart your development server

  • auto-refresh your browser (i.e., via [MozRepl](https://github.com/bard/mozrepl/wiki)) when doing web development

  • auto-restart your unsuccessful shell command until it succeeds.

It can be convenient to see the output of your program as soon as you save it, without leaving your editor. But remember: Your actions might put Sisyphus in an existential crisis where it is faced with questions about the absurdity of life.

Requirements

Installation

pip install sis

Examples

sis -d src make sis -e hs cabal test

Ignore patterns

Sisyphus will ignore changes in files matching any regex pattern found in the following files:

  • /etc/sisignore

  • ~/.sisignore

  • .sisignore

Project details


Download files

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

Source Distribution

sis-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file sis-0.1.3.tar.gz.

File metadata

  • Download URL: sis-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sis-0.1.3.tar.gz
Algorithm Hash digest
SHA256 62472f2721beba94e58341678f2a828ab441e83741b5d390321795c2ce82486c
MD5 130018d33e191a2c1d0e1b36c54ab25d
BLAKE2b-256 a66d11c6dbd78d41056f5b16eedf4c1c5e96fcff85c131eaff64975cc4d548d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page