An open API service indexing awesome lists of open source software.

https://github.com/raspiduino/rpu

The stupid realtime Python code updater
https://github.com/raspiduino/rpu

code debug python wysiwyg

Last synced: 12 months ago
JSON representation

The stupid realtime Python code updater

Awesome Lists containing this project

README

          

# rpu - The stupid realtime Python code updater
## What is this?
rpu is a realtime Python code updater. It means your code's result will be display right after you edit your code. You can use it for GUI editing (I personally use for pygame), preview your code,...
## How this work?
First, the script will import your python script as a module (using importlib). Then it will read your script's content. Some seconds later, it will read again, and if you edit your code, the content will change and your script will be imported again. By that, it keeps your program updated. You can change the delay time between updates.
## Usage
```cmd
rpu.py yourpythonscript.py [delaytime]
```

Delay time is in second. Default is 5 sec

If you just enter ```rpu.py``` or ```rpu.py help```, it will display a simple help.


In your editor, you can use CTRL+S for saving and update the program, or you can install autosave extentions, like this for Visual Studio/Visual Studio Code, or this for Notepad++, or the sublimetext.py for Sublime Text.

## Demo


You can download the video here or here

Or you can watch the video in Release

You can try hello.py or pygametest.py in the repo.

## License
Under GPLv3