pygraphics
pygraphics is the part of OmniPython that draws: shapes, text and images into a framebuffer, with the same code on MicroPython-compatible boards, CircuitPython-compatible boards and CPython.
pip install omnipython-pygraphics
import omip
omip.install("pygraphics")
omip comes with OmniPython firmware. On other MicroPython firmware, run
mip.install("github:PyDevices/omnipython/lib/omip.py") once to put it on the board.
import pygraphics
from pygraphics import FrameBuffer, RGB565
fb = FrameBuffer(bytearray(160 * 80 * 2), 160, 80, RGB565)
fb.fill(0x0000)
card = fb.round_rect(8, 8, 64, 40, 8, 0xF800, f=True)
dot = fb.circle(116, 28, 20, 0x07E0, f=True)
label = pygraphics.text16(fb, "Hello", 8, 56, 0xFFFF)
print("changed:", card + dot + label)
fb.save("hello.bmp")
changed: Area(8, 8, 128, 64)
hello.bmp is the picture at the top of this page, shown at three times its
size.
OmniPython is made by PyDevices.
Metadata
Release files for omnipython-pygraphics 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 2.9 MB
Release files / omnipython_pygraphics-0.2.1-cp314-cp314-win_amd64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 74.7 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c9028cbd19b740351e222837f6b9e3d4ccf4087fe6b12107506836db6106acd5
|
|
BLAKE2b-256 checksum How to use checksums |
f7d09e7e8cfa6cec6eaf8fc0d03e5e32eeca406d577247f6849fabe2ae673574
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl
| Download URL | omnipython_pygraphics-0.2.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl |
|---|---|
| Size | 47.6 kB |
| Tags | CPython 3.14 PyEmscripten 2026.0+ WebAssembly |
|
SHA-256 checksum How to use checksums |
bbdd8310f6968e393443018734907db1ad5daf1bc873adb3af70415d052efd4a
|
|
BLAKE2b-256 checksum How to use checksums |
0893d4d290e8dff7f9e63b554032df4b3a29b004c43057443317d59b7509dab4
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 275.0 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4ad021dab9a2830f2dfc1f99844246033fbbd3cd4fa03b89bab26adedccbf715
|
|
BLAKE2b-256 checksum How to use checksums |
c29b5943429d6b43b49bb52273551415f64786d8a38f66c3caae5ee5bcb6f75f
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 271.7 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
870faeaf05fcea7ec5fc923256ea8544a78d53329982ce5b66cc1843dc574b06
|
|
BLAKE2b-256 checksum How to use checksums |
3de357e9095d1bbc9d4dbbebc7def39d036fb9ae6d89b989c44ecd99ac52e6b3
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp314-cp314-android_21_x86_64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp314-cp314-android_21_x86_64.whl |
|---|---|
| Size | 82.5 kB |
| Tags | Android API level 21+ x86-64 CPython 3.14 |
|
SHA-256 checksum How to use checksums |
17794b7a1842a0296c9c81f5d234fb88d12556e4d7c020160f110b3460bfd735
|
|
BLAKE2b-256 checksum How to use checksums |
ec9cc4ef125aa07af1683fe1b3e2ea4302bfd6a5cf08923ad7b2f75080878ea1
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp314-cp314-android_21_arm64_v8a.whl
| Download URL | omnipython_pygraphics-0.2.1-cp314-cp314-android_21_arm64_v8a.whl |
|---|---|
| Size | 77.8 kB |
| Tags | Android API level 21+ ARM64 v8a CPython 3.14 |
|
SHA-256 checksum How to use checksums |
11f21795f41fb11925eda47cc3d035439aa2edea798e93e024c780c9c34035df
|
|
BLAKE2b-256 checksum How to use checksums |
192e010afeb905eb92887d0376b0b08a4fe3fa7cb7de802a64414e9c45426346
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp313-cp313-win_amd64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 72.9 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b49d1174820dbf3bf2b13109f9b71583ffb0da7a3eb55044ed9fdb8ff3c483a5
|
|
BLAKE2b-256 checksum How to use checksums |
3753ea7acc5e4ea36631a44a564b985a9160c95d29184f219e0ab175c3f9f923
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp313-cp313-pyemscripten_2025_0_wasm32.whl
| Download URL | omnipython_pygraphics-0.2.1-cp313-cp313-pyemscripten_2025_0_wasm32.whl |
|---|---|
| Size | 47.7 kB |
| Tags | CPython 3.13 PyEmscripten 2025.0+ WebAssembly |
|
SHA-256 checksum How to use checksums |
a9706212e4673f400c30ea968bec2f8b8b7b5c64b7b9bffd7ff936fde26ffafb
|
|
BLAKE2b-256 checksum How to use checksums |
f4a49957865a1d7ec799c593435570918f5a1e630daf830fbec131b4e4652611
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 275.1 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
00eff8f54b8fde0389bf6fdd442866a695415a07a5425ef3d946365b01f27fb6
|
|
BLAKE2b-256 checksum How to use checksums |
322cee2bfdadfb14c54be926032751bf43c4366aa64c7423bb42c41ed94cf1a1
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 271.5 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
03567de511b9b1135c910ff3437e88fe91107ee748677a2d3718b3cf156f8a1b
|
|
BLAKE2b-256 checksum How to use checksums |
fac6de02ab1cad74621d9795a115eabdb7b5e48a552d48640d85a70e222dc4a1
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp313-cp313-android_21_x86_64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp313-cp313-android_21_x86_64.whl |
|---|---|
| Size | 82.5 kB |
| Tags | Android API level 21+ x86-64 CPython 3.13 |
|
SHA-256 checksum How to use checksums |
ff081595d0c683d5acd856156ee99ca521b75f97b0731f8b872587a19531a6ba
|
|
BLAKE2b-256 checksum How to use checksums |
c8c97aa0a68e848f60ce6e1f74861e56d2f3ff411afb8a6115dfbc7f03366cbe
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp313-cp313-android_21_arm64_v8a.whl
| Download URL | omnipython_pygraphics-0.2.1-cp313-cp313-android_21_arm64_v8a.whl |
|---|---|
| Size | 77.6 kB |
| Tags | Android API level 21+ ARM64 v8a CPython 3.13 |
|
SHA-256 checksum How to use checksums |
2775eb76f1e64d33f4285633de799fbc2f94c4ca17df8950cf8bc81f88bb84c9
|
|
BLAKE2b-256 checksum How to use checksums |
0b701c8a70246bda322fba8070c9a1220ca6bb9952485901becd6fb1e5be5228
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp312-cp312-win_amd64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 72.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
386fc87437c56aaca9b6b8cc606589753790dd241dcf46319b041fbe56719734
|
|
BLAKE2b-256 checksum How to use checksums |
2c7dbdb55d78f9968fa132ca269064714d286b1ddcd838d8cd9acd2d243dcd63
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 275.0 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
50c31abd5691f9088640d770e39974636219f94f47ce09d55a47d80d0d8a70ed
|
|
BLAKE2b-256 checksum How to use checksums |
704abe07dd099de84123edbb8e6d3bc0869f620ae50f760e704ccf4e680820d1
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 271.4 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
e2d76ae6b85defd012ed62246ef736eb408beaa685a5b7ce6a1349c5b875f5e9
|
|
BLAKE2b-256 checksum How to use checksums |
73cc5847f19bcae3a0b5349ef9df750fa1933f6ecbe5e08240627223640328c8
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp311-cp311-win_amd64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 72.8 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a365c317979b1ab20fe585100e9d2b0e549dc1f9f15574a6b45831ff77b599c1
|
|
BLAKE2b-256 checksum How to use checksums |
e358fc82b0605d9c958ef52a9fb9ddd058ccbfa011e07dc74c1951fa066e7c84
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 273.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e5d714d9df8f46d4a39c889df4accfc07a9965bd3f1321f6ae202ddaa2665b99
|
|
BLAKE2b-256 checksum How to use checksums |
0e0d21d70459e35d799dba2818d1dd0aa9f9b526730811800ac8e28a9a45f051
|
| 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 26, 2026.
Transparency logRelease files / omnipython_pygraphics-0.2.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | omnipython_pygraphics-0.2.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 273.6 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
3885b51c3c4859d82053510f66632014f22b42ea187526be0088e886181bdaea
|
|
BLAKE2b-256 checksum How to use checksums |
a81f7734f16d63fb9a148981f4e053089dd4b59d793b63a66c2a45b716339ca5
|
| 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 26, 2026.
Transparency logSecurity for omnipython-pygraphics 0.2.1
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
All 18 files in this release have been uploaded with provenance metadata.
Attestation for omnipython_pygraphics-0.2.1-cp314-cp314-win_amd64.whl
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 26, 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.