rshell - Remote Shell
Posted: Fri May 22, 2015 1:00 am
I'm happy to release rshell, a remote shell for MicroPython.
rshell is a python program which runs on the host and connects to the pyboard over uart or USB serial. No extra software needs to be isntalled on the pyboard. rshell uses the raw-repl to upload any python snippets it needs on the fly.
rshell doesn't need USB Mass Storage, and you can turn off USB Mass Storage if you desire.
rshell allows you to copy files to and from the pyboard's file system, show the contents of files, and to use the repl.
I've done most of my testing under Linux, and I did a small amount of testing under Windows using a cygwin version of python3 and the Win32 version of python3. So far, I haven't been able to get colorized output to work with the Win32 version of python3, but it seems to work properly with the cygwin version.
There is a --nocolor option to disable colorized output.
You can find rshell.py here: https://github.com/dhylands/upy-shell/t ... ter/rshell
You'll need getch.py and for convenience I also include pyboard.py (which is a copy of the one in micropython/tools/pyboard.py)
Note when using the REPL, I decided to make Control-X be the character which exits the REPL since Control-D does a soft-reboot of the pyboard and I didn't want to lose that functionality.
rshell is a python program which runs on the host and connects to the pyboard over uart or USB serial. No extra software needs to be isntalled on the pyboard. rshell uses the raw-repl to upload any python snippets it needs on the fly.
rshell doesn't need USB Mass Storage, and you can turn off USB Mass Storage if you desire.
rshell allows you to copy files to and from the pyboard's file system, show the contents of files, and to use the repl.
I've done most of my testing under Linux, and I did a small amount of testing under Windows using a cygwin version of python3 and the Win32 version of python3. So far, I haven't been able to get colorized output to work with the Win32 version of python3, but it seems to work properly with the cygwin version.
There is a --nocolor option to disable colorized output.
You can find rshell.py here: https://github.com/dhylands/upy-shell/t ... ter/rshell
You'll need getch.py and for convenience I also include pyboard.py (which is a copy of the one in micropython/tools/pyboard.py)
Note when using the REPL, I decided to make Control-X be the character which exits the REPL since Control-D does a soft-reboot of the pyboard and I didn't want to lose that functionality.