# MicroPython

> Python for microcontrollers

Source: https://talira.ai/catalog/micropython-brxwnp98
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Firmware, Command-line tool
- Categories: [engineering / embedded / runtimes](https://talira.ai/categories/engineering/embedded/runtimes), [languages / python](https://talira.ai/categories/languages/python)
- Platforms: linux, macos[^3]
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source. The pyboard and other hardware are sold separately in the MicroPython store.
- Free tier: yes[^1]
- Runs on: ESP32, ESP8266 and ESP8285, RP2040, RP2350, STM32, Microchip SAM D, SAM C and SAM E5x, Nordic nRF51, Nordic nRF52, Nordic nRF91, NXP i.MX RT, Renesas RA, TI CC32xx, Infineon PSoC, Alif Ensemble[^4][^5]
- Flashed with: UF2 drag and drop, USB DFU, USB serial[^6][^7][^8]
- Configured with: Source code, commands[^1]
- Devices: [Supported devices](https://micropython.org/download/)[^4]
- Implements: [Python](https://talira.ai/catalog/python-tgjs08pq.md)
- Backed by: [George Robotics](https://talira.ai/orgs/george-robotics.md)
- Creator: Damien George

MicroPython is a lean implementation of Python 3 with a small subset of the standard library, written in C99 and optimised to run on the bare metal of microcontrollers in as little as 256k of code space and 16k of RAM. Flashed onto a board, it gives an interactive prompt (the REPL) and runs scripts from the board's own filesystem, with modules such as `machine` for the hardware. It has ports for ESP32, ESP8266, Raspberry Pi RP2040 and RP2350, STM32, SAMD, nRF, i.MX RT, Renesas RA, CC3200, PSoC and Alif chips, plus a Unix port that runs on a computer, and the mpremote tool manages a connected board's files and REPL over USB serial. Its official board is the pyboard.

## Links

- Website: https://micropython.org/
- GitHub: https://github.com/micropython/micropython
- Docs: https://docs.micropython.org/

## Problems it solves

- program a microcontroller in Python instead of C
- try out a sensor interactively from a prompt on the board itself instead of compiling and flashing every change
- run Python on a Raspberry Pi Pico or an ESP32
- reuse what I know of Python to build an electronics project
- teach kids to program hardware without making them learn embedded C
- copy a script onto my board over USB and have it run at boot
- manage the files on a microcontroller from my laptop's terminal
- a small Python interpreter to embed in a device with only a few hundred kilobytes of flash
- run Python code on a chip with 16KB of RAM

## Features

- Python 3 compiler and runtime that runs on the bare metal
- interactive REPL with history, tab completion, auto-indent and paste mode
- runs and imports scripts from the board's built-in filesystem
- machine module and other hardware-specific modules
- fits in 256k of code space and 16k of RAM
- cross-compiler and frozen bytecode for pre-compiled scripts that use no RAM
- native code emitter and inline assembler for Thumb and Xtensa
- mpremote tool to manage a device's filesystem, REPL and scripts over a serial connection
- Unix port that runs on Linux, BSD and macOS
- multithreading via the _thread module on selected ports

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by George Robotics
- created by Damien George

Warnings:

- GitHub activity not fetched yet

## Forks

- [CircuitPython](https://talira.ai/catalog/circuitpython-vzvv6wwp.md): A Python implementation for teaching coding with microcontrollers. Its own project since 2016.

## Related

- Implements [Python](https://talira.ai/catalog/python-tgjs08pq.md)

## Alternatives

- [CircuitPython](https://talira.ai/catalog/circuitpython-vzvv6wwp.md): A Python implementation for teaching coding with microcontrollers
- [Espruino](https://talira.ai/catalog/espruino-gqnqqmy5.md): JavaScript for microcontrollers

## Sources

[^1]: https://micropython.org/ (checked 23 Nov 2026)
[^2]: https://github.com/micropython/micropython/blob/master/LICENSE (checked 23 Nov 2026)
[^3]: https://github.com/micropython/micropython/blob/master/ports/unix/README.md (checked 23 Nov 2026)
[^4]: https://micropython.org/download/ (checked 23 Nov 2026)
[^5]: https://github.com/micropython/micropython/blob/master/ports/nrf/README.md (checked 23 Nov 2026)
[^6]: https://micropython.org/download/RPI_PICO2/ (checked 23 Nov 2026)
[^7]: https://micropython.org/download/PYBV11/ (checked 23 Nov 2026)
[^8]: https://micropython.org/download/ESP32_GENERIC/ (checked 23 Nov 2026)
