nativehtmlkit_ui — Python
Pure Python UI primitives over the public nativehtmlkit SDK.
No dependency on Rust sources, Core internals, the CLI, Qt, Chromium, JavaScript, Node or web servers.
- Python >=3.10; SDK
nativehtmlkit0.1.xis required (qualified with 0.1.0; source-checked with 0.1.1). - Install a qualified
nativehtmlkitplatform wheel first, thenpython -m pip install --no-index --no-deps ./dist/nativehtmlkit_ui-0.1.0-py3-none-any.whl. - Host-first runner:
python -m nativehtmlkit run mymodule:main --name MyApp;main(app)builds/mounts UI then returns; the SDK runner ownsapp.run(). - For a script using direct
Application.start(), keep side effects afterstart(); SDK re-executes the script in its backend process.
from nativehtmlkit_ui import UI, state, computed
def main(app):
counter = state(0)
name = state("world")
greeting = computed(lambda: f"Hello, {name.value} ({counter.value})")
ui = UI(title="Hello", theme="cobalt", density="compact")
with ui.column():
ui.heading("Hello")
ui.text(greeting)
ui.input(name, label="Name")
ui.button("Add", on_click=lambda e: counter.set(counter.value + 1))
ui.mount(app)
Text and attribute values are escaped. ui.raw_html() and extra_css accept trusted source content only. Runtime values should go through state/bindings, never raw markup.
One UI UI instance owns one SDK window/document. Create another UI instance for another window. ui.post(callback, *args) safely marshals work from background Python threads to the UI owner thread. ui.sync() is a test/explicit flush helper; ui.dispose() unsubscribes and stops the UI owner (it does not terminate the underlying SDK application).
See the repository root docs for SDK integration, limitations, packaging and qualification. The initial text_list replaces its local region; it is not a virtualized/keyed data grid. when toggles visibility but keeps its subtree mounted. No router, extension system, dynamic DOM reconciliation or generic persistence layer is included.
Metadata
Release files for nativehtmlkit-ui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nativehtmlkit_ui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nativehtmlkit_ui-0.1.0-py3-none-any.whl |
Release files / nativehtmlkit_ui-0.1.0-py3-none-any.whl
| Download URL | nativehtmlkit_ui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a99580ba55ebfc52c28767a12c3253c49b98772bb1bf5a7e6e0f8e102e018289
|
|
BLAKE2b-256 checksum How to use checksums |
793185886bb4b0e08d82993ef616f87bb287148a5812843337ca74d7766dbcef
|
| 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 16, 2026.
Transparency logSecurity for nativehtmlkit-ui 0.1.0
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.0-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 16, 2026.
Transparency logA 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.