# MicroPython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems

Repository: https://github.com/micropython/micropython
Canonical: https://ross.abutalabs.com/products/micropython
Homepage: https://micropython.org
Language: C
License: NOASSERTION
License Family: other
Topics: micropython, python, embedded, microcontroller
Last push: 2026-08-26T04:08:53+00:00
Link (homepage): https://micropython.org
Link (site_page): https://docs.micropython.org
Link (site_page): http://docs.micropython.org

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 4639, "days_push": 7, "days_rel": 9, "gap_med": 116, "n_releases_24m": 8}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 22012, forks 8948 (observed 2026-08-28T04:11:32.254315+00:00)

## What it is
MicroPython is a lean, efficient implementation of Python 3 designed to run on microcontrollers and other constrained systems, fitting in as little as 256K of code space and 16K of RAM. It includes a compiler, runtime, interactive REPL, a subset of the standard library, and hardware-specific modules for GPIO, SPI, I2C, PWM, Bluetooth, and other peripherals.

## Use cases
- program microcontrollers in python
- control gpio pins with python on esp32
- run python on embedded hardware with limited ram
- prototype iot devices with a repl
- blink leds and read sensors using python
- flash firmware onto rp2040 or stm32 boards
- write scripts for constrained embedded systems

## When to choose
- you know python and want to program microcontrollers without learning c
- you need an interactive repl on bare-metal hardware
- your device has very limited flash and ram
- you want hardware peripheral access (i2c, spi, pwm) from a high-level language

## When to avoid
- you need the full cpython standard library or third-party c-extension ecosystem
- you need maximum performance or hard real-time guarantees
- you are targeting desktop or server applications
- you need large memory footprints or heavy multithreading

## Facets
- artifact type: library
- maturity: stable
- function: interpreter, compiler, programming-language, embedded
- domain: embedded-systems, programming-languages, iot, hardware
- platform: embedded, iot, cross-platform, windows, cpp, c
- tags: micropython, microcontroller, python-implementation, bare-metal, firmware, esp32, esp8266, rp2040, stm32, cpython-compatible, linux, macos

## Member repositories
- micropython/micropython (main) score 91
- micropython/micropython-lib (sdk) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:32.254315+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:20:53.085912+00:00, confidence not recorded.
  - readme: https://github.com/micropython/micropython (fetched 2026-08-28T04:11:32.254315+00:00, sha 78495728ba24)
  - homepage: https://micropython.org (fetched 2026-08-29T07:56:05.182893+00:00, sha a9cff59f66e7)
  - site_page: https://docs.micropython.org (fetched 2026-08-29T07:56:05.192449+00:00, sha 051076a5de02)
  - site_page: http://docs.micropython.org (fetched 2026-08-29T07:56:05.194466+00:00, sha 1c82a3f8f537)
- Data as of 2026-08-30T08:39:29.467469+00:00.
