Tesserae Engine
A GPU-rendered retained-mode UI engine for Python, written in Rust.
Tesserae Engine (imported as tre) gives Python the building blocks of a desktop UI — nodes, flexbox
and grid layout, paint, animation, input and events, text, accessibility, layers,
and threading — and renders them on the GPU, redrawing only what changed, with
vello_gpu, laid out by
taffy, shaped by
parley, and exposed to screen
readers through AccessKit.
It has no widgets and no theme of its own. A UI library or application built on it turns the blocks into buttons, dialogs, and design systems.
from tre import App, Window
window = Window(width=320, height=120, title="Hello")
button = window.create("box", width=120, height=40, corner_radius=20,
fill=(0x67, 0x50, 0xA4, 0xFF), role="button",
label="Say hello", focusable=True)
button.on("click", lambda: print("hello"))
window.root.add_child(button)
app = App()
app.add_window(window)
app.run()
Installing
pip install tesserae-engine
On PyPI it's tesserae-engine (the name tre there is another
project's); you still import tre. Wheels cover CPython 3.12+ on Linux
(x86_64), macOS (arm64), and Windows (x64); other platforms build from
source. See
Installation for the
details.
Documentation
The guide, API reference, and migration notes are at
mindderivative.github.io/tre, and
their source is in docs/,
built with MkDocs:
pip install mkdocs mkdocs-material
mkdocs serve # http://127.0.0.1:8000
Start with Getting Started, then the guide's page for each building block; Building a Widget puts them together. Upgrading from 0.4.x? See Upgrading to 0.5.x; from 0.3.5, Upgrading to 0.4.x; from 0.3.4, Migrating to 0.3.5.
Building from source
python -m venv .venv
source .venv/bin/activate # .venv\Scripts\activate on Windows
pip install maturin
maturin develop --release -m crates/engine-py/Cargo.toml
python examples/switch.py
Each script in examples/ is a small, runnable demonstration
of one building block.
Development
cargo test --workspace --release
cargo clippy --workspace --all-targets --release -- -D warnings
cargo fmt --all --check
pytest tests/
mkdocs build --strict
mypy --strict python/tre
python -m mypy.stubtest tre --allowlist tools/stubtest_allowlist.txt
cargo +1.90 check --workspace --all-targets # MSRV
Every rendering capability has a headless, GPU-backed pixel test under
crates/engine-render/tests/, and the Python suite drives input and time
headlessly through window.simulate and window.advance.
ARCHITECTURE.md is the design reference, and
the GitHub project Tesserae Rendering Engine tracks the work from 0.5.0 on; the 0.4.x line is in
BUILD_TRACKER_ARCHIVE_0.4.md, and the
milestone-by-milestone history through v0.3.5.2 is in
BUILD_TRACKER_ARCHIVE_0.3.md.
Tesserae Engine is a from-scratch second iteration of an earlier Vulkan engine,
archived under archive/ with its lessons learned.
Metadata
Release files for tesserae-engine 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tesserae_engine-0.5.3.tar.gz | 2.4 MB | Details |
Built distributions (wheels)
Total release size: 116.7 MB
Release files / tesserae_engine-0.5.3.tar.gz
| Download URL | tesserae_engine-0.5.3.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecdee7f531158485183e5c887315b3af526e825bb02f597931c5a16dadaa811e
|
|
BLAKE2b-256 checksum How to use checksums |
5e64f66dcc9dcce7beaadf1342a9252533bd054413fba06e668eb2bb5ff149e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tesserae_engine-0.5.3-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
9600bb580a02675ca1e80ee02f58250e4accbad7062e43f045c480fdc89a0771
|
|
BLAKE2b-256 checksum How to use checksums |
f11ce09d1efa33f6d94ed5c68851de9d4f4c05599427710e5a23c73d790e15d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tesserae_engine-0.5.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3ab4eb60fad849a1b6952d5317c0bec20e0d1114996f1f9647983d85bf6112ad
|
|
BLAKE2b-256 checksum How to use checksums |
d75be9609de83ba537b3a15018309e52feab6c3cd7109667f5cc8d8b777b7766
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tesserae_engine-0.5.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
be1fad8db77f0a392efcaa9bf209b7749f13adc9a2745af08ab23f2c0cacefd8
|
|
BLAKE2b-256 checksum How to use checksums |
2eff0148e213c8cd40978a817c803033274a1bdc452ce0eacc9707e5da7c3777
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp314-cp314-win_amd64.whl
| Download URL | tesserae_engine-0.5.3-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
00635536975ccd13c296d0fb54723321428646eb6daeeda90843538fd2ec9522
|
|
BLAKE2b-256 checksum How to use checksums |
4e1aa4344fae3ddf9ea5b420fa6cf9586d4a5041bb457fb3ef1f4ca92b994941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tesserae_engine-0.5.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a7c7cd11e2bc2b66ff2501a7eba4b2e9c7b853af9dadaae450f37cb9584aa613
|
|
BLAKE2b-256 checksum How to use checksums |
e400103a7cf0e91fbce5b3880411872e9479847d008c11df10ce6ade7a95f3f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | tesserae_engine-0.5.3-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c8724a943c3d74ce6acc3d1e2db35926a13dfdf22e745bd14ff59ad30cf1cc32
|
|
BLAKE2b-256 checksum How to use checksums |
f57c046d354a691b8646168bab84a6ec8eb63051d2e06a289843ab22c17d74a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp313-cp313-win_amd64.whl
| Download URL | tesserae_engine-0.5.3-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b31c74418fd6e9db242d3ca916e988a375c045823f9ef9ddd72eafd9c619cf39
|
|
BLAKE2b-256 checksum How to use checksums |
a1151094552d4ed04e8bcd74a0c5ea0f2cae497b07734b325dc3b293c12ee2dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tesserae_engine-0.5.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8e4e972f13463cd8da2dae75d01b1ce97ce95272aefc1722e1a3b683855fc6c7
|
|
BLAKE2b-256 checksum How to use checksums |
763b77dc490639ba33a1190e0d1a54d7903b8c9a1521f118caa1229e16a71133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | tesserae_engine-0.5.3-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b42265de9f245afd38c799a8234619cae6c2066b6cb91e1893c2bcc22f06bfac
|
|
BLAKE2b-256 checksum How to use checksums |
9577a9e5bb7fa92f605253edf4aaf61452967f68029fe2adbc696408acf8b1ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp312-cp312-win_amd64.whl
| Download URL | tesserae_engine-0.5.3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
84d14c028420e91a284c574676d1f537ff850ab55f5fa15b9fefbbc7ec849511
|
|
BLAKE2b-256 checksum How to use checksums |
2d6c6c33cc4f3742bf8926438718a1b1616d47978358bb08b997f3c4ef5076c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tesserae_engine-0.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
73d92b014c7c6a74ad28c8f4fe3067a32897e3559a05c75d0f33472d273b369a
|
|
BLAKE2b-256 checksum How to use checksums |
de6dc41eef78df3b332a49699fd11fca2bfbb961125534e2f77078a5d892fc02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / tesserae_engine-0.5.3-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | tesserae_engine-0.5.3-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
67f28e7ab9f8493e6e7a789620f889e50adf3723b2d293f6bf408312b90e0ab5
|
|
BLAKE2b-256 checksum How to use checksums |
d4791d1616c3045a5006aefc58c7498cae92f1bb873ae1859b81c9619c64f65b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency log