Escaper.py - escape, reduce, copy files to mp-devices

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
butzel
Posts: 3
Joined: Sat Jun 10, 2017 10:02 pm

Escaper.py - escape, reduce, copy files to mp-devices

Post by butzel » Fri Sep 08, 2017 10:25 pm

Hi,
some time ago, I wrote a small Python script, which should escape the special-chars (like ',",\n). I wanted to copy my MicroPython sources and paste it into the REPL to save it on my MicroPython-device.
Over time, it got some more features.
My script isn't as powerful as the rshell, but perhaps its usefull for someone else too.

:: Some features
- transfer files to device (-d)
- it tries to recude the length of code (-r)
- also it tries to find and copy all imports (-i)
- copy files from micropython-device (-g)

:: Usage
./escaper.py --help
:: Source
https://gitlab.com/butzel/escaper.py
:: Download
https://gitlab.com/butzel/escaper.py/bl ... .5_1FE.tgz

Greetings

butzel

Post Reply