mpytool - alternative CLI tool for MicroPython file management #18787
Replies: 7 comments 15 replies
-
|
There is potential for name confusion with the official mpy-tool. |
Beta Was this translation helpful? Give feedback.
-
|
A personal observation. $ mpremote mount .This is quite astonishingly useful and transformed the way I work with MicroPython. For example I support a number of fairly substantial repos. I can now use a single piece of hardware, with the Flash containing only tiny hardware definition files (one for each repo). I can run demos simply by moving to the relevant repo on the PC and issuing something like $ mpremote mount . exec "import gui.demos.various"No mass erasing the previous repo, no copying of files to the device. A development environment that lacked this feature would be problematic. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @peterhinch for the comments. Mounting a local filesystem should not be hard to implement in mpytool, because MicroPython provides a very good API for this. Personally, I use another “killer” feature. Most of my development and testing is done on devices with external PSRAM (2MB+). Inside boot.py I implemented a simple filesystem stored as a dictionary structure: boot_ram.py Then in my IDE I have a shortcut that copies all files from my project to : (in this case it copies them to the CWD: /ramfs). by the way, Windows support is already done in latest release. |
Beta Was this translation helpful? Give feedback.
-
|
You can tell that a lot of things have been optimized quite drastically. I'm referring to the bit shifting of For the start, you could do this: The output: |
Beta Was this translation helpful? Give feedback.
-
|
Just for info, latest release Compiled files are cached in
If |
Beta Was this translation helpful? Give feedback.
-
v2.3.3although Windows is not my priority I made some fixes related to Windows. My question is: "What is missing you in this tool ?" Thanks to @Josverl for bug reports |
Beta Was this translation helpful? Give feedback.
-
|
Personally my preferred IDE is SublimeText, so, I created plugin for it which uses this mpytool. It allow to copy file/s to device (also with .mpy compilation), backup/restore, monitor output, run current file, reset, port detection/selection and other commands. Also uses own project file |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I've been working on a CLI tool called mpytool as an alternative to mpremote for file transfers and device interaction. I started writing it some years ago as a personal project to scratch my own itch.
Some features that might be useful:
replandmonitorcommands work standalonePlatforms: macOS, Linux and Windows
(Windows untested)GitHub: https://github.com/cortexm/mpytool
Install:
pip install mpytoolIf you're having connection issues with other tools, it might be worth trying.
Feedback welcome!
Beta Was this translation helpful? Give feedback.
All reactions