https://github.com/bipes/socketserverwebrepl
Interactive Python Console over a WebSocket connection. Based on socketserverREPL.
https://github.com/bipes/socketserverwebrepl
Last synced: 6 months ago
JSON representation
Interactive Python Console over a WebSocket connection. Based on socketserverREPL.
- Host: GitHub
- URL: https://github.com/bipes/socketserverwebrepl
- Owner: BIPES
- License: gpl-3.0
- Created: 2020-03-22T20:25:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T17:13:46.000Z (about 4 years ago)
- Last Synced: 2024-05-31T18:46:01.426Z (over 1 year ago)
- Language: Python
- Size: 80.1 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SocketServerWebREPL
Interactive Python Console over a WebSocket connection, allowing users to acces a Python REPL (read–eval–print loop) from any web browser, interacting with the Python interpreter in real time from anywhere. Part of BIPES Project - Block based Integrated Platform for Embedded Systems (http://www.bipes.net.br), which allows a block based program to be translated into Python code, and sent to a device that has a Python interpreter, such as a Raspberry Pi, BeagleBone or even a PC, to be executed quickly from the blocks.
Usage:
1. Download this Python Code: git clone https://github.com/BIPES/SocketServerWebREPL.git
2. Run this program (cd SocketServerWebREPL; python2 socketserverWebREPL.py)
3. Access the Interactive Console and remotely run Python code or block program
4. Web client example: https://micropython.org/webrepl/#127.0.0.1:1338/ (replace 127.0.0.1:1338 with the correct port and IP)
5. Use BIPES to program, monitor and control your Linux device: http://www.bipes.net.br/beta2/ui/
== More info
This code is base / has parts of code from the projects: socketserverREPL and PyWSocket.
PyWSocket by Sanket
https://superuser.blog/websocket-server-python/
https://tools.ietf.org/id/draft-ietf-hybi-thewebsocketprotocol-09.html
https://github.com/sanketplus/PyWSocket
SocketserverREPL by Ivor Wanders
https://github.com/iwanders/socketserverREPL
WebSocket Protocol
https://tools.ietf.org/html/rfc6455
#Security Alert:
Use at your own risk! Opening a Python console to be accessed from any web browser is a security risk, depending on the device you are running SocketServerWebREPL and the used network. Please, use it for development and test in controlled environments.