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 level N. the N is 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, or viper ✨
    • heapsize=<n>[w][K|M] β€” set the heap size for the GC (default 2097152). you can tack on a w, and a K or M suffix, and the default is literally 2097152 so 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 πŸ’–βœ¨πŸ¦‹