Skip to main content

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.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tesserae-engine 0.5.5
File Size Uploaded
tesserae_engine-0.5.5.tar.gz 2.6 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for tesserae-engine 0.5.5
File
tesserae_engine-0.5.5-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 Details
tesserae_engine-0.5.5-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.17+ x86-64 Details
tesserae_engine-0.5.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details
tesserae_engine-0.5.5-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
tesserae_engine-0.5.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
tesserae_engine-0.5.5-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
tesserae_engine-0.5.5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
tesserae_engine-0.5.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
tesserae_engine-0.5.5-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
tesserae_engine-0.5.5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
tesserae_engine-0.5.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
tesserae_engine-0.5.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details

Total release size: 154.9 MB

Release files / tesserae_engine-0.5.5.tar.gz

Download URL tesserae_engine-0.5.5.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
00a1a78f519464d3cadb6960538e382bf2c878c9dacacb4f476856b0a2b11b38
BLAKE2b-256 checksum
How to use checksums
f1f4c0de76f285a83bb812009be17abe6d1bfeccad707254cc44f79944bd3ad7
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tesserae_engine-0.5.5-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.1 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cf8b344e31bfc7884ef14a1a78fcb0921e2e1410038f7e74ea909a47bc289afa
BLAKE2b-256 checksum
How to use checksums
471809bf1e5c669338b8dbccc3e2dd52f590c92a717ffe81eb4e1ab91232bd40
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tesserae_engine-0.5.5-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.0 MB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2727fcbd101832e0fc1192b6274be8259d0eaf9b864d75d60f341ef00fb43002
BLAKE2b-256 checksum
How to use checksums
40046b3facac7dfecc22b92b2aa8d970bf3ac43a30a53f9019d968f3086f813c
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tesserae_engine-0.5.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a1a6240c408b80892829fef32c052f7c2b603c0cb0072a955bcfbc8e32c64885
BLAKE2b-256 checksum
How to use checksums
15b58706df6466bd77026d6c7e7a3360080b8112f85694a49993b4ca8b8189d6
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp314-cp314-win_amd64.whl

Download URL tesserae_engine-0.5.5-cp314-cp314-win_amd64.whl
Size 10.6 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
1a9ad90fc11b5b0469023b242fb7517d96934687ecc8d7be9db4ddbfec427b2c
BLAKE2b-256 checksum
How to use checksums
ed0400d1fdee9fd9b60585d01cd4cba01ca0c7fae0000cf4b63b164829fb2ba0
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tesserae_engine-0.5.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.0 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e95678791d52f6a581f22f7acf0706a3e550215489c650254ae65bbe72867242
BLAKE2b-256 checksum
How to use checksums
a738e6c608a24635552183e57b592d6644bc39057d70b37262b2ba54c7d47570
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp314-cp314-macosx_11_0_arm64.whl

Download URL tesserae_engine-0.5.5-cp314-cp314-macosx_11_0_arm64.whl
Size 10.1 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
75e42772298d1c1700d5a7212793a7e09b78311c6e796ddcedaa1671ae3c12a6
BLAKE2b-256 checksum
How to use checksums
e8ef32c262825c444aaefb650a178f0c85d027b65faedbada86cac754bc02f1f
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp313-cp313-win_amd64.whl

Download URL tesserae_engine-0.5.5-cp313-cp313-win_amd64.whl
Size 10.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
11ed1321bfaa3743442b0f2817a2315242ffa8ff679a3d5d53b9a45217fdf66f
BLAKE2b-256 checksum
How to use checksums
7e47f92cd8d56dbda9840ef993ca1794e02b1825fefba7e8d46c581c8d15c486
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tesserae_engine-0.5.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
04b6d2932acf52bcda34423e564329d53ad0c8c059993715441f0e15c52df196
BLAKE2b-256 checksum
How to use checksums
e1ba32a557a42841ccfceacf5f355e1c954adebd41a08092e3f7aad6728f5b4c
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp313-cp313-macosx_11_0_arm64.whl

Download URL tesserae_engine-0.5.5-cp313-cp313-macosx_11_0_arm64.whl
Size 10.1 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4ba518ff984fb84c8ec29b4837f281c6d25d975397e56e787a3350fe13f9c75e
BLAKE2b-256 checksum
How to use checksums
03ff2701a80299dadaa1111f7047cbe546e2d4d452e2a5759f3bcc912610af4d
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp312-cp312-win_amd64.whl

Download URL tesserae_engine-0.5.5-cp312-cp312-win_amd64.whl
Size 10.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a633090ebaa0ea655c2a1043dcf9fea7458bf32b7217d1381111fb054bb21cd9
BLAKE2b-256 checksum
How to use checksums
4dd64d90b59162a41c7d6ac932eb5ab2ef2a77221d40fee81f7ab0a5db29099d
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tesserae_engine-0.5.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b79b0b3426bf6d462ed9e58c28fb7efcae6e929527c30ebfd3077543d7010bf0
BLAKE2b-256 checksum
How to use checksums
0e542683be0191127bec897c458175a24fd100518a965bd8a79b1deac57d523a
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 7, 2026.

Transparency log

Release files / tesserae_engine-0.5.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL tesserae_engine-0.5.5-cp312-cp312-macosx_11_0_arm64.whl
Size 10.1 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3a981bf731080efa7d4ab09d341ce21fa8f420d967320b64797a764529d70220
BLAKE2b-256 checksum
How to use checksums
ab90a9daef374e648996cb0b26498096c4e36497496e9e641c8294d332046452
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.6

13 release files

This release

0.5.5 This release

13 release files

0.5.0

23 release files

0.4.4

23 release files

0.4.3

23 release files

0.4.2

23 release files

0.4.1

23 release files

0.4.0

23 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page