{"id":25899227,"url":"https://github.com/bpi-steam/mpy-editor","last_synced_at":"2026-04-30T16:33:18.148Z","repository":{"id":43248379,"uuid":"187489294","full_name":"BPI-STEAM/mpy-editor","owner":"BPI-STEAM","description":"💻 Simple! Easy! Quick! Start your micropython!","archived":false,"fork":false,"pushed_at":"2022-11-22T03:49:31.000Z","size":311,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-13T20:06:43.836Z","etag":null,"topics":["esp32","micropython","python3","tkinter-gui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BPI-STEAM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-19T14:46:00.000Z","updated_at":"2021-11-11T14:09:03.000Z","dependencies_parsed_at":"2023-01-21T15:17:24.129Z","dependency_job_id":null,"html_url":"https://github.com/BPI-STEAM/mpy-editor","commit_stats":null,"previous_names":["junhuanchen/mpy-editor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BPI-STEAM/mpy-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2Fmpy-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2Fmpy-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2Fmpy-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2Fmpy-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BPI-STEAM","download_url":"https://codeload.github.com/BPI-STEAM/mpy-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2Fmpy-editor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263882261,"owners_count":23524459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","micropython","python3","tkinter-gui"],"created_at":"2025-03-03T01:27:44.713Z","updated_at":"2026-04-30T16:33:18.117Z","avatar_url":"https://github.com/BPI-STEAM.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# \u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;一款易于使用的 MicroPython 编辑器\n\n[English Docs](English.md)\n\n[![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n[![PyPI version](https://badge.fury.io/py/mpy-editor.svg)](https://badge.fury.io/py/mpy-editor)\n\n\u003e “简单！容易！快速！开始你的 MicroPython 编程吧！”\n\n## 特点：\n\n1. 基于 TK 制作的简易代码编辑工具，类似：Mu-editor；\n\n2. 运行自动查找串口，提示连接硬件，理论上支持任何 MicroPython 固件的连接；\n\n3. 串口连接过程不添加任何判断机制，可以作为一般的串口工具接收数据使用；\n\n4. 连接 MicroPython 的硬件不会出现 upyCraft IDE 固件烧写的提示；\n\n5. Windows 下绿色单文件，下载即用，也可使用 Python 跨平台运行。\n\n## 系统要求\n\n- Python 3.5.4+\n- requirements.txt\n\n## 使用方法\n\n### 1. 到 [releases](https://github.com/junhuanchen/mpy-editor/releases) 下载 editor.exe。\n\n寻找你所用的系统版本并下载，如果下载很慢，可以用[微云地址](https://share.weiyun.com/5SVcIC3)，下载后双击运行它。\n\n### 2. 使用 PIP 安装\n\n使用 Python 的 PIP 工具下载并安装，在控制台中输入`pip install mpy-editor`，然后输入 `editor` 即可运行。\n\n```shell\npip install mpy-editor\n\neditor\n```\n\n![](readme/01.png)\n\n## 运行 mpy-editor 软件\n\n运行后会显示当前的设备列表，此时还未插入硬件。\n\n![](readme/02.png)\n\n## 连接你的硬件\n\n连接你的硬件，此时会出现当前硬件的端口号。\n\n![](readme/03.png)\n\n点击如图的 'COM5' 即可连接。\n\n![](readme/05.png)\n\n## 运行 MicroPython 代码\n\n点击 Run (运行)，如图的内置代码  `print('hello world!')` 即可运行。\n\n![](readme/07.png)\n\n## 查看运行的结果\n\n![](readme/09.png)\n\n## 新建、加载、保存 你的代码\n\n![](readme/11.png)\n\n# pyinstaller\n\n1. 生成 editor.spec\n\n```shell\npyinstaller -w -F editor.py -i logo.ico\n```\n\n2. 编辑 editor.spec，在文件第 9 行增加\n\n```shell\ndatas=[('mpy\\\\img','img')],\n```\n\n3. 生成 editor.exe\n\n```shell\npyinstaller -w -F editor.spec -i logo.ico\n```\n\n# upload pypi\n\n```shell\npython setup.py sdist build\n```\n\n```shell\n# pip install twine\ntwine upload dist/* --verbose\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpi-steam%2Fmpy-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpi-steam%2Fmpy-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpi-steam%2Fmpy-editor/lists"}