Registry / web-framework / htag

htag

JSON →
library2.0.27pypypi✓ verified 30d ago

htag is a Python GUI toolkit for building beautiful applications for mobile, web, and desktop from a single codebase, using a reactive component model similar to React. Version 2.0.27 runs on Python >= 3.10. It is actively maintained with regular releases.

web-framework
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from htag import App
from htag import Tag
from htag import Router

Create a simple app that displays 'Hello World!' in the browser.

from htag import HTag class MyApp(HTag): def init(self): self += "Hello World!" if __name__ == "__main__": from htag.runners import BrowserHTTP BrowserHTTP(MyApp).run()
Debug
Known footguns
breakinghtag 2.0 dropped the old imperative API. The `HTag` class now uses a reactive pattern; components must override `init()` instead of `__init__`.
breakingThe `run()` method signature changed. In htag 2.x, runners require an explicit import from `htag.runners`.
gotchaEvent handlers must be defined as methods of the HTag subclass, not as standalone functions or lambdas in some contexts.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
3
Resources