Skip to main content

GUI toolkit for building GUI toolkits (and create beautiful applications for mobile, web, and desktop from a single python3 codebase)

Project description

HTag : "H(tml)Tag"

Test

Package version

A new python library to create UI (or UI toolkit), which can be rendered in anything which can render html/js/css. Thoses can be a browser, a pywebview, an android/apk, or anything based on cef, depending on an htag runner !

  • For a desktop app : You can use the PyWebView runner, which will run the UI in a pywebview container (or "ChromeApp runner", in a local chrome app mode). 
  • For a web app : You can use the WebHTTP runner, which will run the UI in a web server, and serve the UI on client side, in a browser. 
  • For a android app : You can use the AndroidApp runner, which will run the UI in a kiwi webview thru tornado webserver, and can be embedded in an apk (recipes)
  • For a pyscript app : you can use the PyScript runner, which will run completly in client side

But yes … the promise is here : it's a GUI toolkit for building "beautiful" applications for mobile, web, and desktop from a single codebase.

DOCUMENTATION

DEMO/TUTORIAL

Changelog

Available on pypi.org

To have a look

See the demo source code

To try it :

$ pip3 install htag pywebview
$ wget https://raw.githubusercontent.com/manatlan/htag/main/examples/demo.py
$ python3 demo.py

ROADMAP to 1.0.0

  • rock solid (need more tests)
  • setup minimal docs ;-)
  • top level api could change (Tag() -> create a Tag, Tag.mytag() -> create a TagBase ... can be a little bit ambiguous)
  • add a runner with WS with stdlib ? (not starlette!)
  • I don't really like the current way to generate js in interaction : need to found something more solid.
  • the current way to initiate the statics is odd (only on real (embedded) Tag's) : should find a better way (static like gtag ?!)

History

At the beginning, there was guy, which was/is the same concept as python-eel, but more advanced. One day, I've discovered remi, and asked my self, if it could be done in a guy way. The POC was very good, so I released a version of it, named gtag. It worked well despite some drawbacks, but was too difficult to maintain. So I decided to rewrite all from scratch, while staying away from guy (to separate, rendering and runners)... and htag was born. The codebase is very short, concepts are better implemented, and it's very easy to maintain.

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

htag-0.7.1.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

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

htag-0.7.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file htag-0.7.1.tar.gz.

File metadata

  • Download URL: htag-0.7.1.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.10 Linux/5.13.0-52-generic

File hashes

Hashes for htag-0.7.1.tar.gz
Algorithm Hash digest
SHA256 45907f3115bf0795abd8a3a69db49ff7bf228020b45a80a45ca4292d9cd490e9
MD5 2fc4e4ee67d4fc8c209d945f0f0c181c
BLAKE2b-256 1a26d016a1c8617e4d6e8245adc3261d93517ac7cf9a8a626572eb6ad3138b51

See more details on using hashes here.

File details

Details for the file htag-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: htag-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.10 Linux/5.13.0-52-generic

File hashes

Hashes for htag-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 208fcd01a7fbabb4642a466debbf8e4b98373565b5c2878df23bc4bc1b0d296e
MD5 cae40a3d23d528512b04d4657397c35d
BLAKE2b-256 8d8c3defc8bc9723773efc83cc63049b262e063381f0511482ab4a3203aa2382

See more details on using hashes here.

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