Htag

Latest version: v0.113.0

Safety actively analyzes 682471 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 24 of 35

0.8.0

- All runners only accept only one Htag class by default : simpler !
- Runner `AndroidApp` could `self.exit()` (to test !)
- Runner `ChromeApp` accept port (`app.run(port=9999)`)
- Runner `WebHTTP` don't accept multiple htag classes anymore ! Just one (like others !), but got a `serve(...)` method to allow to hook new http endpoints on others Htag Class (using starlette.add_route(...)): giving a lot more of possibilities ;-)
- Runner `DevApp` (like WebHTTP) provide a `serve(...)` method, (so you can dev WebHTTP app with DevApp)
- Runner `BrowserHTTP` manage only the main class/route ("/")
- all runners (except `PyWebView`) accept query params from url !!! (ex: "/?John%20Doey&p=1" -> (("John Doe",{p:1}) -> can call TagClass(name,p=None) )
(in the past, only WebHTTP could, but it was complicate). IT WAS MY MOST WANTED/NEEDED FEATURE ;-)
(All runners manage only one user (except WebHTTP, which can serve multiple clients))
- the `__main__` on module, create an empty app, with DevApp (if it can pip) or BrowserHTTP (if not)

0.7.8

- runner `DevApp` can work again on chromebook/penguin (no more weakref/loop/asyncio pickable trouble)

0.7.7

- Runner `PyScript` don't accept multiple htag classes anymore ! Just one (like others !)
(the feature can be done with a simple htag.Tag component (see `examples/navigate_with_hashchange.py`, see Example2 (at top level))
- So `WebHTTP` runner is the last to accept multiple htag'classes ...

0.7.6

- BIG CHANGES on how "inherited Tag" allows auto-init property & html_attribut : more consistent (need to have a "**kargs" in init/constructor)
(could break things on old htag app !!!)
- remove the old "def _majVersion()", and put it in task/build !
- add a `__main__` on module, which just create a main.py with "hello world" app, with DevApp runner (and install uvicorn+starlette if needed)

0.7.5

- bye bye GuyApp ... htag is free from guy !
- more intelligent htag.runners importing (the runner broke with the real exception, and does'nt
show a warning when external lib is not present)
- the "Elements" class (the list of tags, created using "+" operator) has now a __str__ method, and should render well ;-)
- the Caller.prior() method disappear (useless, and htbulma doesn't use it anymore)
- attrs "on[event]" are now, not None (like "style" & "class"), and can now be used/chained easier

0.7.4

- can add str to Caller/BaseCaller (new `self.bind(action)` and old `self.bind.<action>()` ) with `+` operator

Page 24 of 35

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.