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, on Wayland, bars, panels and menus placed by the compositor — 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.9

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.9
File Size Uploaded Provenance Actions
tesserae_engine-0.5.9.tar.gz 2.8 MB With provenance Details for tesserae_engine-0.5.9.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tesserae-engine 0.5.9
File Actions
tesserae_engine-0.5.9-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 for tesserae_engine-0.5.9-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tesserae_engine-0.5.9-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.17+ x86-64 Details for tesserae_engine-0.5.9-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tesserae_engine-0.5.9-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 for tesserae_engine-0.5.9-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tesserae_engine-0.5.9-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for tesserae_engine-0.5.9-cp314-cp314-win_amd64.whl
tesserae_engine-0.5.9-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for tesserae_engine-0.5.9-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tesserae_engine-0.5.9-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for tesserae_engine-0.5.9-cp314-cp314-macosx_11_0_arm64.whl
tesserae_engine-0.5.9-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for tesserae_engine-0.5.9-cp313-cp313-win_amd64.whl
tesserae_engine-0.5.9-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for tesserae_engine-0.5.9-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tesserae_engine-0.5.9-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for tesserae_engine-0.5.9-cp313-cp313-macosx_11_0_arm64.whl
tesserae_engine-0.5.9-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for tesserae_engine-0.5.9-cp312-cp312-win_amd64.whl
tesserae_engine-0.5.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for tesserae_engine-0.5.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tesserae_engine-0.5.9-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for tesserae_engine-0.5.9-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 160.7 MB

Release files / tesserae_engine-0.5.9.tar.gz

Download URL tesserae_engine-0.5.9.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
6b3ddf258b57a8c5f48334a229ab414d56b6c2170cd4068e5c6467d944a44bd2
BLAKE2b-256 checksum
How to use checksums
9c79c2806a99ca21d6c7c51099022b765d92297bc4cb69c2bffe98b6df6920d1
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.7 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2ac1a96c870ec7ce2e1372a34a1360daa815c32ea3f343a435c6c0ba9be9d7c4
BLAKE2b-256 checksum
How to use checksums
a0465ed97b0d31ee98e25cbf0bdec5ef2d527b830aaa9afa03a7f68386f2e6ce
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.7 MB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4076d06dd6e5febe7125a82508f4d6615b6fa9f132c702c0e46d07bbad14575a
BLAKE2b-256 checksum
How to use checksums
484b8b7153d4bc6d09416545f2df4ed959e16e6798e73252fb9906be73bcdd8b
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e6c3185d5956139037128417cc150ffc8b644871bb6bbfa8406a68dc82ac24ea
BLAKE2b-256 checksum
How to use checksums
4c3ad084048a564d4c12c84679fd9d9cbb0825bb17446e2597f97cc80535754e
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp314-cp314-win_amd64.whl
Size 10.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
744c54a70a3583e1039bd4d2481674f028f3502b42c8e64191f842d0f4db6133
BLAKE2b-256 checksum
How to use checksums
81f6cde3660616087c7dfe2724cc6cb889a8f45eace37334bc907c6ba403f08f
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.7 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3174d37d457d16dbe5a4c903e6efe693bc34b57706f18475e64ac2c96b440150
BLAKE2b-256 checksum
How to use checksums
0b888a16da5c307c686833423608574a94e5c4ca0d6dde6326b014d6e23c7e89
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp314-cp314-macosx_11_0_arm64.whl
Size 10.3 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
425e812721f651670cd66dd21317f04dfc36de7350e617ac632fd9baaa2c26b3
BLAKE2b-256 checksum
How to use checksums
ed4eed2cd1fc8b13373f4e6cff2eae2017d0b930dc0cf7875188a0acf3ed3644
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp313-cp313-win_amd64.whl
Size 10.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
40402413686b0141d31ddef0716b0295917bcb47513a9b9680f995d7e1ed9eca
BLAKE2b-256 checksum
How to use checksums
c9e3ea8777d8869f8c42c3d535d7a58c769cd3188e84bedbb5d099c123daa5b4
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.7 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2b3809fe5508f2e17144bd3ebcd41954c0ae695f122c0428d72fd4c572752ec3
BLAKE2b-256 checksum
How to use checksums
cd886dc404a30242868c7387f0d276d837a8f525ab7de6c4df5018439875780a
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp313-cp313-macosx_11_0_arm64.whl
Size 10.3 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7cb3d478b6de55b0a3520bc280a937a2be8a8952747b16d3a8b4171b2ce3db20
BLAKE2b-256 checksum
How to use checksums
feb471c94f2215ca0c153ffbfd02036c9ba7328897a6150e9dee3194db42247c
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp312-cp312-win_amd64.whl
Size 10.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
388f0cf528091303fbe985889b406cc9cb89d7424e8f86c3525105672e8f4513
BLAKE2b-256 checksum
How to use checksums
506430321380d8af7e09cf1900a6478cfc57964d1e7327fd5b3ec4dcd9d5a0a2
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.7 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
995a940660c3b68b6f1fe47fb2eb31f5c67ed0b4a67a6c5f33e09da1a346ccbd
BLAKE2b-256 checksum
How to use checksums
5787a932342eb8023b16ee51aaa4003c97e6598d780e768d000b6c00b7db1b18
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 27, 2026.

Transparency log

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

Download URL tesserae_engine-0.5.9-cp312-cp312-macosx_11_0_arm64.whl
Size 10.3 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
77414502ac0cbab1a30ad41ed9748774e37dfb48b7f1fa2a0c891d1cd8ef924b
BLAKE2b-256 checksum
How to use checksums
0559909ea40e9efa0d760f9e1d7015ab6d7234a969696fa19499774146467fe8
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 27, 2026.

Transparency log

Security for tesserae-engine 0.5.9

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 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for tesserae_engine-0.5.9.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 Oct 27, 2026.

Transparency log

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

Release history Release notifications | RSS feed

This release

0.5.9 This release

13 release files Full provenance

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