Skip to main content

nativehtmlkit_ui — Python UI toolkit

Development preview: not stable and not production-ready. NativeHTMLKit development is currently focused on Core. This UI library is under development: its API can change without notice, it is not supported, and it should not be used for production work. For supported use, build on the Python SDK directly. Project status: https://nativehtmlkit.github.io/status/

Small reactive layouts and controls over the public nativehtmlkit Python SDK: native desktop windows rendered from HTML/CSS by the NativeHTMLKit host, with no browser and no JavaScript. Python 3.10+, NativeHTMLKit SDK 0.1.x, Linux (KDE Plasma Wayland) and Windows.

uv init --app myapp && cd myapp     # a project for your app (https://docs.astral.sh/uv/)
uv add nativehtmlkit_ui
uv run app.py

Version 0.1.2 is a development preview. It changes only this notice and the package links; the code is the same as 0.1.1.

from nativehtmlkit import Application
from nativehtmlkit_ui import UI, computed, state

with Application.start(name="Hello UI") as app:
    name = state("Ada")
    greeting = computed(lambda: f"Hi, {name.value or 'stranger'}!")
    ui = UI(title="Hello", theme="cobalt", density="compact")
    with ui.column():
        ui.heading("Hello")
        ui.input(name, label="Name")
        ui.text(greeting)
        ui.button("Clear", variant="secondary", on_click=lambda event: name.set(""))
    ui.mount(app)
    app.run()
  • State in, window out. state() holds data, computed() derives values, components bind to either, and event handlers only change state. Updates are batched into document commands.
  • Components: row, column, grid (responsive), card, stack, heading, text, badge, alert, button, input, checkbox, select, when (conditional region), text_list, plus element and trusted raw_html for custom markup.
  • Threads: each window has its own UI owner thread; worker threads hand results over with ui.post().
  • Themes: cobalt, graphite, daylight; densities compact, regular, comfortable; your own CSS via extra_css.

Dialogs, the clipboard, live bitmaps and window management are SDK features you call next to the UI. Known open defects: concurrent updates to one Computed from several threads and accumulating shutdown callbacks with many mount cycles.

Documentation

The UI library's documentation and source are not public while it is in development. The SDK it builds on is documented at https://nativehtmlkit.github.io/.

Metadata

Release files for nativehtmlkit-ui 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for nativehtmlkit-ui 0.1.2
File Interpreter ABI Platform Actions
nativehtmlkit_ui-0.1.2-py3-none-any.whl Python 3 none any Details for nativehtmlkit_ui-0.1.2-py3-none-any.whl

Release files / nativehtmlkit_ui-0.1.2-py3-none-any.whl

Download URL nativehtmlkit_ui-0.1.2-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8b8c6f9b42c00354353abae835303ec619231ce06187a9adb34e03d998d5a78
BLAKE2b-256 checksum
How to use checksums
2ac01ebf2797e51879878531251a83f891cf7915f348824fa90bda838ae14a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for nativehtmlkit-ui 0.1.2

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

1 file in this release has been uploaded with provenance metadata.

Attestation for nativehtmlkit_ui-0.1.2-py3-none-any.whl

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 Nov 21, 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.

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