Renderer-agnostic UI core (IR, reconciler, state, style, widgets) shared by tempestroid and tempestweb.
Project description
tempest-core
📚 Documentation: Português (Brasil) · English (US) — bilingual, on GitHub Pages.
Renderer-agnostic UI core shared across the tempest stack — the engine behind both tempestroid (native renderers: Qt / Compose / Android) and tempestweb (DOM, WASM + server modes).
It is the one tree, many renderers core: the IR, the reconciler (build /
diff), the state model (App), the typed style model (Style, Color, Edge),
the widget and component trees, plus the cross-cutting helpers (animation, i18n,
navigation, theme, validators). It carries no platform-coupled code — no Qt, no
JNI, no Android, no DOM — so it imports cleanly under CPython, Pyodide and a
headless server. Renderers live in the consumers; this package only produces and
diffs the tree.
from tempest_core import App, Column, Text, Button, Style, build, diff
old = build(Column(children=[Text(content="Count: 0", key="label")]))
new = build(Column(children=[Text(content="Count: 1", key="label")]))
patches = diff(old, new) # -> [Update(set_props={"content": "Count: 1"})]
Install
pip install tempest-core
Requires Python >=3.11. Only hard dependency: pydantic>=2.
Status
Extracted from tempestroid's vendored core. tempestweb consumes it directly (no vendored copy). tempestroid's own migration to depend on this package — with its full Qt↔Compose conformance suite green — is the next phase.
Develop
uv sync --extra dev
ruff check . && ruff format --check .
mypy tempest_core
pytest -q
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tempest_core-0.1.0.tar.gz.
File metadata
- Download URL: tempest_core-0.1.0.tar.gz
- Upload date:
- Size: 104.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d04cfbce515f75478d0eefa233693efb3cc22bc3862296fb1279f80c03f106a1
|
|
| MD5 |
6cc837e3f2c2fdca946babf240adddd6
|
|
| BLAKE2b-256 |
8a9a1b5be903256f285d47a712a8928eb0dd2d73361375905969868a74bb8adc
|
Provenance
The following attestation bundles were made for tempest_core-0.1.0.tar.gz:
Publisher:
publish.yml on mauriciobenjamin700/tempest-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tempest_core-0.1.0.tar.gz -
Subject digest:
d04cfbce515f75478d0eefa233693efb3cc22bc3862296fb1279f80c03f106a1 - Sigstore transparency entry: 1803104501
- Sigstore integration time:
-
Permalink:
mauriciobenjamin700/tempest-core@58302b89955860b1a97895f67b057ebcf2b394f5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/mauriciobenjamin700
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@58302b89955860b1a97895f67b057ebcf2b394f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tempest_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tempest_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 124.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c547881e33ce8abee100e84c88f070c80253320b0d0146aaf596d48b8bc963
|
|
| MD5 |
92e9a75eb2f0fb5d8cf27f9987c0d81a
|
|
| BLAKE2b-256 |
50fb7ef61bd963f0f1a0a540c05143df33ea8b338eac7239bf3127c157bd28b1
|
Provenance
The following attestation bundles were made for tempest_core-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on mauriciobenjamin700/tempest-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tempest_core-0.1.0-py3-none-any.whl -
Subject digest:
e3c547881e33ce8abee100e84c88f070c80253320b0d0146aaf596d48b8bc963 - Sigstore transparency entry: 1803104528
- Sigstore integration time:
-
Permalink:
mauriciobenjamin700/tempest-core@58302b89955860b1a97895f67b057ebcf2b394f5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/mauriciobenjamin700
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@58302b89955860b1a97895f67b057ebcf2b394f5 -
Trigger Event:
push
-
Statement type: