Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tempest_core-0.3.0.tar.gz (191.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tempest_core-0.3.0-py3-none-any.whl (146.1 kB view details)

Uploaded Python 3

File details

Details for the file tempest_core-0.3.0.tar.gz.

File metadata

  • Download URL: tempest_core-0.3.0.tar.gz
  • Upload date:
  • Size: 191.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tempest_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4b6a3b55f05a6b1a2e6dc9c904516d98ee924806bf35f3eb07d0c58ea0c8865a
MD5 978b7b93b2f8e7a545e8c9d10cec51bb
BLAKE2b-256 0d5e6d26910d634e83db1ea801986d32d9e685cd93e443ab24735dbb3d2ec40a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tempest_core-0.3.0.tar.gz:

Publisher: publish.yml on mauriciobenjamin700/tempest-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tempest_core-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tempest_core-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 146.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tempest_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 268d4dca1a69a9ca63d104e54060676609a2ac675d9541369fdfc3aa9aecfe84
MD5 7530b83d45aa38b53aee9e6e63565512
BLAKE2b-256 79c81f1978dc46743bffa12509a0cf7923a396e8c0fe5b0bb454ec710dbeaa13

See more details on using hashes here.

Provenance

The following attestation bundles were made for tempest_core-0.3.0-py3-none-any.whl:

Publisher: publish.yml on mauriciobenjamin700/tempest-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page