OmniPython
OmniPython is the portability layer for MicroPython, CircuitPython and CPython: the libraries your program imports to draw, play sound, take touch and talk USB, the same on a board, a desktop, a phone and a web page. This site is the manual for every one of them. The sidebar lists them, and search looks through all of them at once.
If you are new, start with the newcomer’s guide. To get it on your machine or your board, install it.
The libraries
The board contract, displaydev, audiodev, appdev, multimer and the drivers: what every program stands on.
2D drawing, bitmap fonts and blitting, in C and in Python. Bit World is built on it.
Color palettes for drawing: an HSV wheel, RGB cubes, Material Design swatches and RGB565 helpers.
The LVGL bindings, for MicroPython, CircuitPython and CPython: the UI toolkit to reach for.
A whole widget toolkit written in Python on the OmniPython core, with no C: a demonstration that the core can carry other UI frameworks.
The audio engine’s native modules: filters, delays, mixers, samplers and the pump.
Synthesizers, drum machines and samplers built on audiodsp.
Effects and pedals built on audiodsp.
The firmware builds and the native modules they carry: displayif, usbif, cameraif and the rest.
Try it before you install it
The gallery runs the same example programs that run on boards, in your browser. The first page of pygraphics, palettes and pdwidgets here carries a live demo you can edit and run.