MPYTOOL

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
vlk
Posts: 3
Joined: Mon Dec 06, 2021 2:51 pm

MPYTOOL

Post by vlk » Sat Jan 01, 2022 9:57 pm

Hello, I just published yet another tool for manage files on MicroPython devices:

https://github.com/pavelrevak/mpytool

MPYTOOL has completely replaced AMPY for me, which is very slow, for comparison:
tested on ESP32S2 (2MB RAM, 2MB FLASH), connected using USB from MACOS
putting files from testing project, 4 directories and 30 files with total size 70KB
- AMPY: 79s
- MPYTOOL: 12s

This tool is currently very new and not well tested, so any feedback, issues and pull-requests are welcome.
Please report issues on github.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: MPYTOOL

Post by pythoncoder » Mon Jan 03, 2022 10:40 am

You might like to benchmark against the official mpremote and the unofficial but excellent and widely used rshell.
Peter Hinch
Index to my micropython libraries.

vlk
Posts: 3
Joined: Mon Dec 06, 2021 2:51 pm

Re: MPYTOOL

Post by vlk » Mon Jan 03, 2022 2:12 pm

mpremote: does not working on my mac os and has no debug printing to find reason why

mpremote running on Linux upload same project in 16.5 sec
mpytool do this on Linux same time like on mac os: in 12 sec

rshell: only connection takes more than 4 seconds
and uploaded whole project in 81 seconds
rshell is also quite difficult to understand how to control it

both (mpremote and rshell and also ampy) has no exclude option for copy files, so first I need to clean up my directory from __pycache__, .git, ...
also there is missing verbose output (except mpremote, this show file which is currently uploaded)
rshell has -d option like debug but this show too much info... ok, good for debugging
good feature in rshell is rsync, but the final speed is slover than uploading whole project using mpytool

also I tried mpfshell, but this is also difficult to controll and does not support recursive upload (or I not find this feature)

so, everything above (and more) are reasons for me to develop this tool

mpytool is possible to use also as python library with simple interface, is also easy to extend it for other functionality

seonr
Posts: 43
Joined: Mon Sep 10, 2018 6:54 am

Re: MPYTOOL

Post by seonr » Tue Jan 04, 2022 12:05 am

mpremote 100% works on a Mac. I've been using it for months.
What specifically is not working for you?

vlk
Posts: 3
Joined: Mon Dec 06, 2021 2:51 pm

Re: MPYTOOL

Post by vlk » Sun Jan 30, 2022 12:35 am

do not know what was wrong with mpremote now is working also on my Mac, (as I said, there is no debug output to see what was wrong)

mpremote looks good, but still there are reasons to prefer in some tasks mpytool. currently it cannot replace mpremote or other tools but it can complement it.
now is supported REPL mode (on UNIX platforms, Windows will come soon and also other features)

mpytool vs mpremote:
+ faster files uploading
+ exclude option for uploading files
+ support tree list files with sizes
+ verbose and debug printing
+ more intuitive commands (my point of view)
+ easy API for using it from other python programs
missing:
- REPL in Windows
- mount local directory
- setrtc

Post Reply