iconkit
iconkit is the part of OmniPython that gives a program Material Design icons as antialiased 8-bit alpha masks. Frozen into MicroPython-compatible firmware, an icon lives in flash and costs no RAM, and it draws in LVGL or in pygraphics on MicroPython-compatible boards, CircuitPython-compatible boards and CPython.
pip install --pre omnipython-iconkit
On a board, freeze it: include("/path/to/omnipython/packages/iconkit") from your
firmware's manifest.py. Without freezing, the masks load into RAM when
imported, so freeze them on a board that is short of it.
import iconkit
print(len(iconkit.names(24)), "icons at 24 px,", len(iconkit.names(48)), "at 48 px")
# A mask is w * h alpha bytes, row by row. Print every other row as text.
data, w, h = iconkit.mask("home", 24)
for y in range(0, h, 2):
row = data[y * w:(y + 1) * w]
print("".join(" .:#"[a * 4 // 256] for a in row))
129 icons at 24 px, 33 at 48 px
:##:
########
############
.################.
##############
##### #####
##### #####
##### #####
The picture at the top of this page is the 48 px set. Every icon in both sets is on the contact sheets.
OmniPython is made by PyDevices.
The icons
Two sets ship, filled style, from Google's Material Design Icons (Apache License 2.0, LICENSE-ICONS):
- 24 px: 129 general-purpose icons (72.6 KB), listed in icons_24.txt.
- 48 px: 33 app-tile icons (74.3 KB), listed in icons_48.txt. All 33 are in the 24 px set too.
Names are Material's own (home, wifi, battery_charging_full). WiFi
strength comes as network_wifi_1_bar, network_wifi_2_bar,
network_wifi_3_bar and network_wifi.
Draw an icon
In LVGL, an icon is an lv.image in the colour you give it:
import lvgl as lv
from iconkit import lvicons
lvicons.image(lv.screen_active(), "settings", size=48, color=lv.color_hex(0x40A0FF))
In pygraphics, draw blends the icon over what the framebuffer already shows.
It needs a pygraphics with FrameBuffer.blit_alpha, and raises without it:
from iconkit import gfx
gfx.draw(display, "home", 10, 10, 0xFFFF)
A display with no framebuffer can take the icon blended onto a flat background
as an RGB565 buffer: gfx.rgb565("home", color, bg). Pass the returned buffer
back as buf= to reuse it.
iconkit.mask("home") gives the raw (data, w, h) for anything else: data is
a memoryview of w * h alpha bytes, row by row.
An unknown name or size raises ValueError and lists what exists.
Your own icons
tools/make_icons.py builds a module in the same format from any Material icon names. It needs Pillow and a Material Design Icons checkout, which you name on the command line:
python tools/make_icons.py path/to/material-design-icons --size 24 \
--names home,wifi,sd_card --out myicons.py
Put myicons.py in your app and register it:
import iconkit
import myicons
iconkit.add(myicons)
iconkit.mask("sd_card")
A name that another module of the same size already has raises ValueError.
--names-file takes a list with one name per line and # comments, and
--budget 72k fails the run when the masks outgrow a size you set.
Fetch only the icons you need
The full repository is several gigabytes. A sparse checkout fetches just the PNGs of one size:
git clone --filter=blob:none --depth 1 --no-checkout https://github.com/google/material-design-icons.git
cd material-design-icons
git sparse-checkout set --no-cone /LICENSE '/png/*/*/materialicons/24dp/1x/'
git checkout
Some newer icons, such as instant_mix, exist only as Material Symbols. For a
name with no PNG, the generator draws the filled Outlined symbol's SVG instead,
which needs pip install resvg-py. Add each one to the checkout by name:
git sparse-checkout add '/symbols/web/instant_mix/materialsymbolsoutlined/'
That downloads about 125 MB (git's pack of the file listing, plus the 2,170 icons at 24 px, which are 430 KB themselves). Git still writes an index of the whole tree, so expect about 800 MB on disk. Each further size is one more pattern, and adds 2,170 files and about 0.7 MB:
git sparse-checkout add '/png/*/*/materialicons/48dp/1x/'
Metadata
Release files for omnipython-iconkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnipython_iconkit-0.1.0.tar.gz | 46.4 kB | With provenance | Details for omnipython_iconkit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnipython_iconkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for omnipython_iconkit-0.1.0-py3-none-any.whl |
Total release size: 91.2 kB
Release files / omnipython_iconkit-0.1.0.tar.gz
| Download URL | omnipython_iconkit-0.1.0.tar.gz |
|---|---|
| Size | 46.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39a3920bd3cae82f2f2809eeb43e397786e30fb57c7811cbb40b414a7217c8a7
|
|
BLAKE2b-256 checksum How to use checksums |
7efbe7b9d14442bbd348fa7c9ca26fb3219fe9acdd7c3eff122e0e8f25ba2fcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / omnipython_iconkit-0.1.0-py3-none-any.whl
| Download URL | omnipython_iconkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e064451a5ea1f0028b2160dc36c305f766c226b5d6656bdc3177e98010d348e
|
|
BLAKE2b-256 checksum How to use checksums |
82e956b18fe91afc1e6790a7c3b90374236e66481debc249ea1656e4ed586bde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for omnipython-iconkit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for omnipython_iconkit-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.