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
- Host: GitHub
- URL: https://github.com/raspiduino/rpu
- Owner: raspiduino
- License: gpl-3.0
- Created: 2021-01-30T03:36:15.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-31T04:39:38.000Z (about 5 years ago)
- Last Synced: 2025-02-02T16:42:17.633Z (about 1 year ago)
- Topics: code, debug, python, wysiwyg
- Language: Python
- Homepage:
- Size: 20.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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