CopyRun

This program runs Python code which is copied in clipboard

WARNING!!
USE AT YOUR OWN RISK! NO GUARANTIES IF ANYTHING GETS BROKEN. DO NOT COPY ANYTHING EXCEPT PYTHON CODE YOU HAVE REVIEWED!! FOR EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY.

Steps:

  1. Launch copyrun-1.2.0.py
  2. Copy valid Python code from anywhere
  3. Enjoy the code running instantly
  4. Pause the app when needed

This app automatically executes Python code after it is copied in clipboard. It saves the contents of the clipboard in file “testscript.py” and executes it. Saved code is located in the same directory as CopyRun.py program. It ONLY executes content which is different from previously copied content. The CopyRun app waits for the launched code to exit and then continues to work. At all times there is an app window visible, which indicates that this app is active and running. While active, CopyRun writes status messages and launched program’s output in terminal.

You can pause the CopyRun app if copying text other than Python programs, or code execution not needed at the moment. Do that by toggling the green switch!

GitHub

https://github.com/vertinski/copyrun