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.
Contact
- On PyPI:
- Souce:
- Issues:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file repyt-0.1.0.tar.gz
.
File metadata
- Download URL: repyt-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dff5334a3d0d3406d0ac0f32f0dc143d26cab7107133a03f95b30950c85e7500 |
|
MD5 | 4a25a4e99e48af964885cc1e362292a3 |
|
BLAKE2b-256 | 2d078ed37a4eaa9b8217795a6cbd1f6ad11e90dcf39aa806716a8c27aa5cba55 |