micropython(1)
π micropython π
okay bestie, welcome to the micropython(1) era of the General Commands Manual β this is the page for the micropython command, and yes it's giving main character energy from the very first line π«Ά
β¨ NAME β¨
micropython β a lean and efficient Python implementation for microcontrollers and constrained systems
πΈ SYNOPSIS πΈ
micropython [<opts>] [-X <implopt>] [-c <command>] [<filename>]
like, that's the whole vibe. flags, impl options, a command, a filename, go off π
π¦ DESCRIPTION π¦
so. MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. no cap. it's literally Python but tiny and living its best life on hardware.
and the way it's packed full of advanced features?? an interactive prompt, arbitrary precision integers, closures, list comprehension, generators, exception handling and more β all of it, iconic. yet it is compact enough to fit and run within just 256k of code space and 16k of RAM. 256k. sixteen k of RAM. bestie that's not even a photo on your phone. obsessed π
MicroPython aims to be as compatible with normal Python as possible to allow you to transfer code with ease from the desktop to a microcontroller or embedded system. so you can write it on your laptop and then yeet it onto a chip and it just works. periodt.
π OPTIONS π
-vβ verbose (trace various operations); can be multiple. so like,-v,-vv,-vvvβ¦ the more v's the more it tells you what it's doing. it's giving "tell me everything" π₯-O[N]β apply bytecode optimizations of levelN. theNis optional, iykyk.-Xβ Implementation specific options. ooh, the spicy ones π the details:compile-onlyβ parse and compile only. no running, just vibes (and compiling).emit={bytecode,native,viper}β set the default code emitter. pick your fighter:bytecode,native, orviperβ¨heapsize=<n>[w][K|M]β set the heap size for the GC (default2097152). you can tack on aw, and aKorMsuffix, and the default is literally2097152so don't come for me when you change it π
π SEE ALSO π
http://docs.micropython.org/β the docs, the lore, the sacred texts π- On Debian systems, the HTML manuals can be found in
/usr/share/doc/micropython/. local copy bestie, no wifi required π
π AUTHOR π
micropython is written by Damien P. George. absolute legend, we stan π«Ά
This manual page was written by Yangfl for the Debian Project (and may be used by others). slay.
fr fr if you made it this far, you're officially a MicroPython girlie now. go flash something π
and that's a wrap on the micropython(1) page from the General Commands Manual β this cutie came to you courtesy of the micropython source, and it's dated micropython(1), so go forth and be efficient, bestie πβ¨π¦
π¦ where this page comes from
- debian trixie: micropython 1.25.0+ds-1 Β· MIT
- ubuntu jammy: micropython 1.17+ds-1.1ubuntu2 Β· MIT
- ubuntu noble: micropython 1.22.1+ds-1build2 Β· MIT
- ubuntu questing: micropython 1.25.0+ds-1
- ubuntu resolute: micropython 1.26.1+ds-1 Β· MIT
- ubuntu stonking: micropython 1.26.1+ds-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms