mpy
mpy is the term used in MicroPython to denote the bytecode format and the associated file extension for precompiled modules. Files with the .mpy extension are produced from Python source files (.py) by the mpy-cross compiler and are intended to be run by MicroPython runtimes on microcontrollers and other constrained devices.
The primary purpose of compiling to .mpy is to reduce startup time and memory usage. Precompiled modules
Using mpy typically involves compiling modules with mpy-cross and then transferring the resulting .mpy files to
Limitations include compatibility constraints: not all Python features are available in MicroPython, and .mpy files are
---