mpypack: project packup and upload tool for mpy

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
User avatar
Dreagonmon
Posts: 7
Joined: Thu Mar 04, 2021 10:18 am

mpypack: project packup and upload tool for mpy

Post by Dreagonmon » Thu Aug 12, 2021 12:47 pm

mpypack is a micropython project packing tool. this will make the development of big project more easily.

The whole project folder will sync to the mpy board, you can upload the folder with a single command.
mpypack will only upload the necessary files, so a big project in a folder will not be a problem.
And it can also compile the code automatically before upload (with mpy-cross).

Details on github: mpypack

The useage is simple, to build the project:

Code: Select all

mpypack build
to upload the project to board:

Code: Select all

mpypack -p [port] sync
with the config file .mpypack.conf, you can skip the "port" parameter, and test your code easily. the project will be upload to the board, and open a "REPL" for you to test your code:

Code: Select all

mpypack sync; mpypack repl
Here is an example project that using mpypack as its packing tool: play32_framework

PM-TPI
Posts: 75
Joined: Fri Jun 28, 2019 3:09 pm

Re: mpypack: project packup and upload tool for mpy

Post by PM-TPI » Thu Aug 12, 2021 1:21 pm

I'm interested in this tool.
Will you be producing a YouTube video to demonstrate its features?

Thanks

User avatar
Dreagonmon
Posts: 7
Joined: Thu Mar 04, 2021 10:18 am

Re: mpypack: project packup and upload tool for mpy

Post by Dreagonmon » Fri Aug 13, 2021 5:50 am

PM-TPI wrote:
Thu Aug 12, 2021 1:21 pm
Will you be producing a YouTube video to demonstrate its features?
I`m sorry but YouTube is not available in China.

Why not have a try? You can install mpypack from pypi.

Ctreate main.py inside an empty folder, and run mpypack -p [port] sync, it will be uploaded to the board.
Connect the board using mpypack -p [port] repl, and restart with Ctrl + D, the code would run.

Post Reply