mpflash 0.7.6__py3-none-any.whl → 0.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mpflash/add_firmware.py +98 -0
- mpflash/ask_input.py +74 -111
- mpflash/cli_download.py +31 -21
- mpflash/cli_flash.py +64 -34
- mpflash/cli_group.py +14 -12
- mpflash/cli_list.py +39 -3
- mpflash/cli_main.py +16 -9
- mpflash/common.py +125 -12
- mpflash/config.py +2 -0
- mpflash/connected.py +74 -0
- mpflash/download.py +52 -42
- mpflash/downloaded.py +9 -9
- mpflash/flash.py +2 -2
- mpflash/flash_esp.py +1 -1
- mpflash/flash_uf2.py +15 -7
- mpflash/flash_uf2_linux.py +5 -16
- mpflash/flash_uf2_macos.py +78 -0
- mpflash/list.py +4 -45
- mpflash/mpboard_id/__init__.py +28 -38
- mpflash/mpboard_id/add_boards.py +255 -0
- mpflash/mpboard_id/board.py +37 -0
- mpflash/mpboard_id/board_id.py +18 -23
- mpflash/mpboard_id/board_info.zip +0 -0
- mpflash/mpboard_id/store.py +42 -0
- mpflash/uf2disk.py +12 -0
- mpflash/vendor/basicgit.py +288 -0
- mpflash/vendor/dfu.py +1 -0
- mpflash/vendor/versions.py +7 -3
- mpflash/worklist.py +70 -47
- {mpflash-0.7.6.dist-info → mpflash-0.8.0.dist-info}/METADATA +20 -7
- mpflash-0.8.0.dist-info/RECORD +47 -0
- mpflash/mpboard_id/board_info.csv +0 -2213
- mpflash/mpboard_id/board_info.json +0 -19910
- mpflash-0.7.6.dist-info/RECORD +0 -40
- {mpflash-0.7.6.dist-info → mpflash-0.8.0.dist-info}/LICENSE +0 -0
- {mpflash-0.7.6.dist-info → mpflash-0.8.0.dist-info}/WHEEL +0 -0
- {mpflash-0.7.6.dist-info → mpflash-0.8.0.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mpflash
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.8.0
|
4
4
|
Summary: Flash and download tool for MicroPython firmwares
|
5
5
|
Home-page: https://github.com/Josverl/micropython-stubber/blob/main/src/mpflash/README.md
|
6
6
|
License: MIT
|
@@ -19,9 +19,11 @@ Classifier: Topic :: Software Development :: Build Tools
|
|
19
19
|
Requires-Dist: beautifulsoup4 (>=4.12.3,<5.0.0)
|
20
20
|
Requires-Dist: bincopy (>=20.0.0,<21.0.0)
|
21
21
|
Requires-Dist: blkinfo (>=0.2.0,<0.3.0)
|
22
|
+
Requires-Dist: cachetools (>=5.3.0,<6.0.0)
|
22
23
|
Requires-Dist: esptool (>=4.7.0,<5.0.0)
|
23
24
|
Requires-Dist: inquirer (>=3.2.4,<4.0.0)
|
24
25
|
Requires-Dist: jsonlines (>=4.0.0,<5.0.0)
|
26
|
+
Requires-Dist: jsons (>=1.6.3,<2.0.0)
|
25
27
|
Requires-Dist: libusb (>=1.0.27,<2.0.0) ; sys_platform == "win32"
|
26
28
|
Requires-Dist: loguru (>=0.7.2,<0.8.0)
|
27
29
|
Requires-Dist: mpremote (>=1.22.0,<2.0.0)
|
@@ -31,20 +33,32 @@ Requires-Dist: psutil (>=5.9.8,<6.0.0)
|
|
31
33
|
Requires-Dist: pygithub (>=2.1.1,<3.0.0)
|
32
34
|
Requires-Dist: pyusb (>=1.2.1,<2.0.0)
|
33
35
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
34
|
-
Requires-Dist: rich-click (>=1.
|
36
|
+
Requires-Dist: rich-click (>=1.8.1,<2.0.0)
|
35
37
|
Requires-Dist: tenacity (==8.2.3)
|
36
38
|
Project-URL: Repository, https://github.com/Josverl/micropython-stubber
|
37
39
|
Description-Content-Type: text/markdown
|
38
40
|
|
39
41
|
# MPFLASH
|
42
|
+
[](https://pypi.org/project/mpflash/)
|
43
|
+
[](https://badgen.net/pypi/python/mpflash)
|
44
|
+
[](https://pepy.tech/project/mpflash)
|
45
|
+
|
40
46
|
|
41
47
|
`mpflash` is a command-line tool for working with MicroPython firmware. It provides features to help you flash and update Micropython on one or more .
|
42
48
|
|
43
|
-
This tool was initially created to be used in a CI/CD pipeline to automate the process of downloading and flashing MicroPython firmware to multiple boards, but it has been extend with a TUI to
|
49
|
+
This tool was initially created to be used in a CI/CD pipeline to automate the process of downloading and flashing MicroPython firmware to multiple boards, but it has been extend with a TUI to be used for manual downloadig, flashing and development.
|
44
50
|
|
45
|
-
`mpflash` has been tested on
|
46
|
-
|
51
|
+
`mpflash` has been tested on:
|
52
|
+
- OS: Windows x64, Linux X64, but not (yet) macOS.
|
53
|
+
- Micropython (hardware) ports:
|
54
|
+
- `rp2`, using `.uf2`, using filecopy (macos not tested yet)
|
55
|
+
- `samd`, using ` .uf2`, using filecopy (macos not tested yet)
|
56
|
+
- `esp32`, using `.bin`, using esptool,
|
57
|
+
- `esp8266`, using `.bin`, using esptool
|
58
|
+
- `stm32`, using ` .dfu`, using pydfu
|
47
59
|
|
60
|
+
Not yet implemented: `nrf`, `cc3200`, `mimxrt`
|
61
|
+
|
48
62
|
## Features
|
49
63
|
1. List the connected boards including their firmware details, in a tabular or json format
|
50
64
|
2. Download MicroPython firmware for versions, and matching a specified board or matches your current attached board.
|
@@ -72,8 +86,7 @@ On Windows this will not be an issue, but on Linux you can use udev rules to gi
|
|
72
86
|
## Detailed usage
|
73
87
|
You can list the connected boards using the following command:
|
74
88
|
```bash
|
75
|
-
|
76
|
-
D:\MyPython\micropython-stubber> mpflash list
|
89
|
+
$> mpflash list
|
77
90
|
Connected boards
|
78
91
|
┏━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━┓
|
79
92
|
┃ Serial ┃Family ┃Port ┃Board ┃CPU ┃Version ┃build ┃
|
@@ -0,0 +1,47 @@
|
|
1
|
+
mpflash/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
mpflash/add_firmware.py,sha256=u_g9mID557fptLEJ1Nld9n27V1R1og8uEkadm0O3YTw,3435
|
3
|
+
mpflash/ask_input.py,sha256=e54WfgktG7Ff8dBUknXioROq3lPNZ-eacUjfmUvFfS0,8496
|
4
|
+
mpflash/cli_download.py,sha256=6ctC4ga6q2LcpHUHMrz1trbePziQpuIFPbjcJnc3K7E,3645
|
5
|
+
mpflash/cli_flash.py,sha256=QHEb-e2ABjISfuGCWpTxOM7kkcTZSQxBXmVaWh3WVnE,7074
|
6
|
+
mpflash/cli_group.py,sha256=-qkR4ou7bmIwfDIzyL1s34z6ya1wckKtL22nanvyQGU,1974
|
7
|
+
mpflash/cli_list.py,sha256=Mdaf13gKZCoLp8Y2ja0L5rYMzkE_t3d4r62bF7isI3E,1997
|
8
|
+
mpflash/cli_main.py,sha256=yABFFf45TpPMcC1qEVARAWe4EI9zui2pUXjoPms0mq8,1030
|
9
|
+
mpflash/common.py,sha256=kanbO22SQDWb4ASQG8vLF0Z83ahujKPbrsCw3llN5T4,5594
|
10
|
+
mpflash/config.py,sha256=hBc1Hf4XQ0YIoeiPBbannnqDg0C7226Y7Vu8o4jUkBQ,495
|
11
|
+
mpflash/connected.py,sha256=CBG_DJ33OPWAPbX-ICQpL1LcFOhNYpLUSB0Q5v7gi9s,3029
|
12
|
+
mpflash/download.py,sha256=axAs30i7VZ0jQXY9MVOQB49JH6OCFxy5_zERfysF33I,11421
|
13
|
+
mpflash/downloaded.py,sha256=IYMyx_67paKFSKOg3whgwsWf8IlHaLgpmSlukMT7V9Q,3804
|
14
|
+
mpflash/errors.py,sha256=Q5LR12Wo8iUCg5n_qq4GjdBdBflbvCOdKsRJ5InYRfI,96
|
15
|
+
mpflash/flash.py,sha256=JoskuwaHVYqeG4YW8kgbv26vPFnqDmkTz1VRs-pTRiY,2468
|
16
|
+
mpflash/flash_esp.py,sha256=dEc_B7-f1BMUGBMrwIm83ulcCqaS5MlrPAp3FCNgNfk,2311
|
17
|
+
mpflash/flash_stm32.py,sha256=d4BoQl3a9Tchnvn2ZTuq2MpYBB4MTaRukwtEncI95k0,823
|
18
|
+
mpflash/flash_stm32_cube.py,sha256=w7aGWjReeWUKl0Q3ZjXH8BRqNO1Tk9AO7gtRNUg1c9Y,3970
|
19
|
+
mpflash/flash_stm32_dfu.py,sha256=G70EZodWb-aRi507Jxbys-VEwbBGU1oZacow3_nq-d4,2972
|
20
|
+
mpflash/flash_uf2.py,sha256=FFO2zpKFPdpEDi4aK1-JFsvPi8KEKLXXuOt_lXtI9tk,2508
|
21
|
+
mpflash/flash_uf2_boardid.py,sha256=WZKucGu_hJ8ymb236uuZbiR6pD6AA_l4LA-7LwtQhq8,414
|
22
|
+
mpflash/flash_uf2_linux.py,sha256=Oy9V4g7JSuks2hHFeO_OHdBKSGktbqZOtsivuxfl-xg,4055
|
23
|
+
mpflash/flash_uf2_macos.py,sha256=JButLjccuKlVyArwNkHDGjNMB_9ezyTKlbCWNia-R5Y,2696
|
24
|
+
mpflash/flash_uf2_windows.py,sha256=94YoO2UIzfyJs4CPJ9sjG_WY26SX8aUPl9mf9R9W5xk,1093
|
25
|
+
mpflash/list.py,sha256=0TawTkwhjKPPj7nTHoDn8nQ54WOkGRurP1BJVeg956g,2963
|
26
|
+
mpflash/logger.py,sha256=dI_H_a7EOdQJyvoeRHQuYeZuTKYVUS3DUPTLhE9rkdM,1098
|
27
|
+
mpflash/mpboard_id/__init__.py,sha256=QRLVUpeiXeiY3P-im2Bv8zX8xGS_MIqiH-3svuVoWyY,3576
|
28
|
+
mpflash/mpboard_id/add_boards.py,sha256=OWclyLWf9L-pCVmZ22b-xQYfvi3yQVsJHmGMgMzWxoU,9684
|
29
|
+
mpflash/mpboard_id/board.py,sha256=CwtBux8y7GDUe7CADVxL8YefGRl9Fg8OAJBUhgaBYCI,1151
|
30
|
+
mpflash/mpboard_id/board_id.py,sha256=63K91S_KWdSL5vHkZhpU-ibOhpOrUt0YPwxDsUBEmnc,2489
|
31
|
+
mpflash/mpboard_id/board_info.zip,sha256=F6YowS96DAqjten4ySe4MXgZwPtE-saZOUfY5OQkqKk,19759
|
32
|
+
mpflash/mpboard_id/store.py,sha256=hhNTPlraQYH_Tx3syoi_NBx8z13efkgXn433OZ2GjpU,1462
|
33
|
+
mpflash/mpremoteboard/__init__.py,sha256=fJ_N1F6R3CfP9F7pmocb5l8yRvzmSmtHi4u_uTQHR1w,7683
|
34
|
+
mpflash/mpremoteboard/mpy_fw_info.py,sha256=6AQbN3jtQgllqWQYl4e-63KeEtV08EXk8_JnM6XBkvo,4554
|
35
|
+
mpflash/mpremoteboard/runner.py,sha256=-PgzAeBGbyXaAUlwyiw4mcINsP2U1XRRjP1_QdBrxpg,4786
|
36
|
+
mpflash/uf2disk.py,sha256=4_P2l-kedM7VSliA2u706LQLxvu3xWSod1-lj-xjZis,298
|
37
|
+
mpflash/vendor/basicgit.py,sha256=sflgCv7apLbV2w8F6gmhc-3kuqDnnS4tdGol6JT2uTM,9545
|
38
|
+
mpflash/vendor/dfu.py,sha256=ZXMcE6aH4-43Wh4tbQT4U-q-BU3RUiL3JAxmP_QAK2s,5755
|
39
|
+
mpflash/vendor/pydfu.py,sha256=_MdBRo1EeNeKDqFPSTB5tNL1jGSBJgsVeVjE5e7Pb8s,20542
|
40
|
+
mpflash/vendor/readme.md,sha256=iIIZxuLUIGHQ0KODzYVtMezsztvyxCXcNJp_AzwTIPk,86
|
41
|
+
mpflash/vendor/versions.py,sha256=thk1a5wEEhXIQoL0zZ7oooeFyQeSoI00CIUbZF0b3rI,3783
|
42
|
+
mpflash/worklist.py,sha256=MKHDynttVP3lsHSfb7DEqeQ2mRV0da96lD4lIcS_zQY,5962
|
43
|
+
mpflash-0.8.0.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
|
44
|
+
mpflash-0.8.0.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
|
45
|
+
mpflash-0.8.0.dist-info/METADATA,sha256=soEShJBcun6aKy8U_eGxulIqTWlbPR9mWu6oahyaL1M,15224
|
46
|
+
mpflash-0.8.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
47
|
+
mpflash-0.8.0.dist-info/RECORD,,
|