[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6040":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":15,"starSnapshotCount":15,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},6040,"micropython","micropython\u002Fmicropython","MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems","https:\u002F\u002Fmicropython.org",null,"C",21798,8858,711,1216,0,3,23,115,15,97.5,"Other",false,"master",true,[26,27,5,28],"embedded","microcontroller","python","2026-06-12 04:00:27","[![Unix CI badge](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Factions\u002Fworkflows\u002Fports_unix.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Factions?query=branch%3Amaster+event%3Apush) [![STM32 CI badge](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Factions\u002Fworkflows\u002Fports_stm32.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Factions?query=branch%3Amaster+event%3Apush) [![Docs CI badge](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Factions\u002Fworkflows\u002Fdocs.yml\u002Fbadge.svg)](https:\u002F\u002Fdocs.micropython.org\u002F) [![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fmicropython\u002Fmicropython\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg?token=I92PfD05sD)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fmicropython\u002Fmicropython)\n\nThe MicroPython project\n=======================\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fmicropython\u002Fmicropython\u002Fmaster\u002Flogo\u002Fupython-with-micro.jpg\" alt=\"MicroPython Logo\"\u002F>\n\u003C\u002Fp>\n\nThis is the MicroPython project, an implementation of Python 3.x for\nmicrocontrollers, embedded systems and other constrained platforms.\nYou can find the official website at [micropython.org](http:\u002F\u002Fwww.micropython.org).\n\nMicroPython implements the entire Python 3.4 syntax (including exceptions,\n`with`, `yield from`, etc., and additionally `async`\u002F`await` keywords from\nPython 3.5 and some select features from later versions). The following core\ndatatypes are provided: `str`(including basic Unicode support), `bytes`,\n`bytearray`, `tuple`, `list`, `dict`, `set`, `frozenset`, `array.array`,\n`collections.namedtuple`, classes and instances. Builtin modules include\n`os`, `sys`, `time`, `re`, and `struct`, etc. Some ports have support for\n`_thread` module (multithreading), `socket` and `ssl` for networking, and\n`asyncio`. Note that only a subset of Python 3 functionality is implemented\nfor the data types and modules.\n\nMicroPython can execute scripts in textual source form (.py files) or from\nprecompiled bytecode (.mpy files), in both cases either from an on-device\nfilesystem or \"frozen\" into the MicroPython executable.\n\nMicroPython also provides a set of MicroPython-specific modules to access\nhardware-specific functionality and peripherals such as GPIO, Timers, ADC,\nDAC, PWM, SPI, I2C, CAN, Bluetooth, and USB.\n\nGetting started\n---------------\n\nSee the [online documentation](https:\u002F\u002Fdocs.micropython.org\u002F) for the API\nreference and information about using MicroPython and information about how\nit is implemented.\n\nWe use [GitHub Discussions](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Fdiscussions)\nas our forum, and [Discord](https:\u002F\u002Fdiscord.gg\u002FRB8HZSAExQ) for chat. These\nare great places to ask questions and advice from the community or to discuss your\nMicroPython-based projects.\n\nFor bugs and feature requests, please [raise an issue](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Fissues\u002Fnew\u002Fchoose)\nand follow the templates there.\n\nFor information about the [MicroPython pyboard](https:\u002F\u002Fstore.micropython.org\u002Fpyb-features),\nthe officially supported board from the\n[original Kickstarter campaign](https:\u002F\u002Fwww.kickstarter.com\u002Fprojects\u002F214379695\u002Fmicro-python-python-for-microcontrollers),\nsee the [schematics and pinouts](http:\u002F\u002Fgithub.com\u002Fmicropython\u002Fpyboard) and\n[documentation](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fpyboard\u002Fquickref.html).\n\nMicroPython design values\n-------------------------\n\n\"Perfection is achieved, not when there is nothing more to add, but when there\nis nothing left to take away.\" ―- Antoine de Saint-Exupéry.\n\nFor its design and implementation, MicroPython aims to follow a set of values.\nAlthough not a strict set of rules, these values and principles serve as a\nuseful guide for new and seasoned contributors, as well as maintainers.\n\nMicroPython is at heart a combination of \"Micro\" and \"Python\": it's about\nresource constrained systems running the Python programming language.  Both of\nthese concepts balance off against each other in all parts of MicroPython's\ndesign and implementation.\n\nThe key concepts that focus the development of MicroPython are:\n- Minimalism: do lots with little.\n- Efficiency: engineering, build, execution, storage, power consumption.\n- Consistency: the whole system feels like it was designed at once.\n\nWhen using MicroPython, the Python language is used as the human interface to a\nsystem, giving fine control over the entities attached to that system.\nIn a hardware setting, MicroPython aims to give the user a bare-metal feeling:\none should feel like they have complete control over the system, with very\nlittle between the programmer and the physical world.\n\nMicroPython recognises that systems can be very complex.  The existing Python\nlibraries in combination with the MicroPython-specific libraries provide a\nuser-friendly way to harness the complexity of a system.\n\nPython language compatibility is very important to MicroPython, and at first\nglance MicroPython should look just like regular Python.  In the first instance,\nmost Python scripts should run unchanged on MicroPython, even on devices with very\ntight resources.  Beyond that, there are ways to extend MicroPython if needed to\nbetter match Python.  The provided built-in modules are an efficient subset of\nthe corresponding Python ones, without duplication of functionality, and allow\nextension in Python if needed.\n\nContributing\n------------\n\nMicroPython is an open-source project and welcomes contributions. To be\nproductive, please be sure to follow the\n[Contributors' Guidelines](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Fwiki\u002FContributorGuidelines)\nand the [Code Conventions](https:\u002F\u002Fgithub.com\u002Fmicropython\u002Fmicropython\u002Fblob\u002Fmaster\u002FCODECONVENTIONS.md).\nNote that MicroPython is licenced under the MIT license, and all contributions\nshould follow this license.\n\nAbout this repository\n---------------------\n\nThis repository contains the following components:\n- [py\u002F](py\u002F) -- the core Python implementation, including compiler, runtime, and\n  core library.\n- [mpy-cross\u002F](mpy-cross\u002F) -- the MicroPython cross-compiler which is used to turn scripts\n  into precompiled bytecode.\n- [ports\u002F](ports\u002F) -- platform-specific code for the various ports and architectures that MicroPython runs on.\n- [lib\u002F](lib\u002F) -- submodules for external dependencies.\n- [tests\u002F](tests\u002F) -- test framework and test scripts.\n- [docs\u002F](docs\u002F) -- user documentation in Sphinx reStructuredText format. This is used to generate the [online documentation](http:\u002F\u002Fdocs.micropython.org).\n- [extmod\u002F](extmod\u002F) -- additional (non-core) modules implemented in C.\n- [tools\u002F](tools\u002F) -- various tools, including the pyboard.py module.\n- [examples\u002F](examples\u002F) -- a few example Python scripts.\n\n\"make\" is used to build the components, or \"gmake\" on BSD-based systems.\nYou will also need bash, gcc, and Python 3.3+ available as the command `python3`.\nSome ports (rp2 and esp32) additionally use CMake.\n\nSupported platforms & architectures\n-----------------------------------\n\nMicroPython runs on a wide range of microcontrollers, as well as on Unix-like\n(including Linux, BSD, macOS, WSL) and Windows systems.\n\nMicrocontroller targets can be as small as 256kiB flash + 16kiB RAM, although\ndevices with at least 512kiB flash + 128kiB RAM allow a much more\nfull-featured experience.\n\nThe [Unix](ports\u002Funix) and [Windows](ports\u002Fwindows) ports allow both\ndevelopment and testing of MicroPython itself, as well as providing\nlightweight alternative to CPython on these platforms (in particular on\nembedded Linux systems).\n\nOver twenty different MicroPython ports are provided in this repository,\nsplit across three\n[MicroPython Support Tiers](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fdevelop\u002Fsupport_tiers.html).\n\nTier 1 Ports\n============\n\n👑 Ports in [Tier 1](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fdevelop\u002Fsupport_tiers.html)\nare mature and have the most active development, support and testing:\n\n| Port                     | Target                                                                                 | Quick Reference                                                      |\n|--------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------------------------|\n| [esp32](ports\u002Fesp32)*    | Espressif ESP32 SoCs (ESP32, ESP32S2, ESP32S3, ESP32C3, ESP32C6)                       | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fesp32\u002Fquickref.html)   |\n| [mimxrt](ports\u002Fmimxrt)   | NXP m.iMX RT                                                                           | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fmimxrt\u002Fquickref.html)  |\n| [rp2](ports\u002Frp2)         | Raspberry Pi RP2040 and RP2350                                                         | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Frp2\u002Fquickref.html)     |\n| [samd](ports\u002Fsamd)       | Microchip (formerly Atmel) SAMD21 and SAMD51                                           | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fsamd\u002Fquickref.html)    |\n| [stm32](ports\u002Fstm32)     | STMicroelectronics STM32 MCUs (F0, F4, F7, G0, G4, H5, H7, L0, L1, L4, N6, WB, WL)     | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fpyboard\u002Fquickref.html) |\n| [unix](ports\u002Funix)       | Linux, BSD, macOS, WSL                                                                 | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Funix\u002Fquickref.html)    |\n| [windows](ports\u002Fwindows) | Microsoft Windows                                                                      | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Funix\u002Fquickref.html)    |\n\nAn asterisk indicates that the port has ongoing financial support from the vendor.\n\nTier 2 Ports\n============\n\n✔ Ports in [Tier 2](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fdevelop\u002Fsupport_tiers.html)\nare less mature and less actively developed and tested than Tier 1, but\nstill fully supported:\n\n| Port                             | Target                                                      | Quick Reference                                                         |\n|----------------------------------|-------------------------------------------------------------|-------------------------------------------------------------------------|\n| [alif](ports\u002Falif)               | Alif Semiconductor Ensemble MCUs (E3, E7)                   |                                                                         |\n| [embed](ports\u002Fembed)             | Generates a set of .c\u002F.h files for embedding into a project |                                                                         |\n| [nrf](ports\u002Fnrf)                 | Nordic Semiconductor nRF51 and nRF52                        |                                                                         |\n| [renesas-ra](ports\u002Frenesas-ra)   | Renesas RA family                                           | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Frenesas-ra\u002Fquickref.html) |\n| [webassembly](ports\u002Fwebassembly) | Emscripten port targeting browsers and NodeJS               |                                                                         |\n| [zephyr](ports\u002Fzephyr)           | Zephyr RTOS                                                 | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fzephyr\u002Fquickref.html)     |\n\nTier 3 Ports\n============\n\nPorts in [Tier 3](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fdevelop\u002Fsupport_tiers.html)\nare built in CI but not regularly tested by the MicroPython maintainers:\n\n| Port                       | Target                                                            | Quick Reference                                                         |\n|----------------------------|-------------------------------------------------------------------|-------------------------------------------------------------------------|\n| [cc3200](ports\u002Fcc3200)     | Texas Instruments CC3200                                          | [For WiPy](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fwipy\u002Fquickref.html)   |\n| [esp8266](ports\u002Fesp8266)   | Espressif ESP8266 SoC                                             | [here](https:\u002F\u002Fdocs.micropython.org\u002Fen\u002Flatest\u002Fesp8266\u002Fquickref.html)    |\n| [pic16bit](ports\u002Fpic16bit) | Microchip PIC 16-bit                                              |                                                                         |\n| [powerpc](ports\u002Fpowerpc)   | IBM PowerPC (including Microwatt)                                 |                                                                         |\n\nAdditional Ports\n================\n\nIn addition to the above there is a Tier M containing ports that are used\nprimarily for maintenance, development and testing:\n\n- The [\"bare-arm\"](ports\u002Fbare-arm) port is an example of the absolute minimum\n  configuration that still includes the compiler, and is used to keep track\n  of the code size of the core runtime and VM.\n\n- The [\"minimal\"](ports\u002Fminimal) port provides an example of a very basic\n  MicroPython port and can be compiled as both a standalone Linux binary as\n  well as for ARM Cortex-M4. Start with this if you want to port MicroPython\n  to another microcontroller.\n\n- The [qemu](ports\u002Fqemu) port is a QEMU-based emulated target for Cortex-A,\n  Cortex-M, RISC-V 32-bit and RISC-V 64-bit architectures.\n\nThe MicroPython cross-compiler, mpy-cross\n-----------------------------------------\n\nMost ports require the [MicroPython cross-compiler](mpy-cross) to be built\nfirst.  This program, called mpy-cross, is used to pre-compile Python scripts\nto .mpy files which can then be included (frozen) into the\nfirmware\u002Fexecutable for a port.  To build mpy-cross use:\n\n    $ cd mpy-cross\n    $ make\n\nExternal dependencies\n---------------------\n\nThe core MicroPython VM and runtime has no external dependencies, but a given\nport might depend on third-party drivers or vendor HALs. This repository\nincludes [several submodules](lib\u002F) linking to these external dependencies.\nBefore compiling a given port, use\n\n    $ cd ports\u002Fname\n    $ make submodules\n\nto ensure that all required submodules are initialised.\n","MicroPython 是一个专为微控制器和资源受限系统设计的精简高效 Python 3.x 实现。它支持完整的 Python 3.4 语法，包括异常处理、`with` 语句、`yield from` 以及 `async`\u002F`await` 等关键字，并提供了丰富的内置数据类型和模块，如 `os`、`sys`、`time`、`re` 和 `struct` 等。此外，MicroPython 还包含特定于硬件的模块，用于访问 GPIO、定时器、ADC、DAC、PWM、SPI、I2C、CAN、蓝牙和 USB 等外设。该项目适用于需要在嵌入式设备上运行 Python 代码的各种场景，如物联网项目、教育工具或快速原型开发。",2,"2026-06-11 03:05:28","top_language"]