Overview
MicroPython is a compact implementation of the Python 3 language, with a subset of the standard library, written to run on microcontrollers and other small devices. Instead of compiling C code and flashing it for every change, you copy Python scripts to the board or type commands straight into an interactive prompt on the device. It was created by Damien George and is developed in the open on GitHub.
The project says it fits in roughly 256k of code space and 16k of RAM. Despite the size it keeps much of what makes Python pleasant: arbitrary precision integers, closures, list comprehensions, generators and exception handling. Hardware such as pins, timers and buses is reached through a module called machine. The interactive prompt (REPL) has history, tab completion, auto-indent and a paste mode, and the board has a small built-in filesystem for scripts.
Firmware is published for many boards. The download page groups them by port, including ESP32, ESP8266, RP2 (the Raspberry Pi Pico family), STM32, nRF, SAMD, Renesas RA and NXP i.MX RT, with filters by vendor, feature and chip. The project's own board is the pyboard, sold through its store. The website also has a browser page that simulates a pyboard with LEDs, a servo, an ADC and an LCD, which lets you try scripts with no hardware.
Categories
Features
- Python 3 language with a subset of the standard library
- Interactive REPL with history, tab completion, auto-indent and paste mode
- machine module for pins, buses and other hardware
- Built-in filesystem for storing and importing scripts
- Firmware downloads filtered by port, vendor, feature and chip
- Ports for ESP32, ESP8266, RP2, STM32, nRF, SAMD and others
- Native code emitter and inline assembler for speed-critical parts
- Browser-based simulated pyboard for trying code without hardware
Privacy
See the official privacy policy. MicroPython runs on your own hardware and needs no account; no advertising or analytics scripts were found in the project home page HTML.
Pros & Cons
Pros
- Open source under the MIT licence, including for commercial products
- Runs in very little memory by the project's own figures
- Quick edit-and-test cycle thanks to the on-device prompt
- Wide choice of supported boards from many vendors
Cons
- Only a subset of the Python standard library is included
- Multithreading is available on selected ports only
- The inline assembler covers Thumb and Xtensa chips only
- Features differ from port to port, so check your board's page
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Configures ESP-based smart-home devices with YAML.
Open Source No Signup Windows Linux -
Flashes firmware to ESP8266/ESP32 microcontrollers.
Open Source No Signup Web -
Embedded Systems · PlatformIO
Develops, builds, and debugs embedded firmware.
Open Source No Signup Windows Linux -
Microcontrollers · STMicroelectronics eDesignSuite
Develops and debugs firmware for STM32 microcontrollers.
Free Web