python-fasthtml 0.12.37__tar.gz → 0.12.39__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_fasthtml-0.12.37/python_fasthtml.egg-info → python_fasthtml-0.12.39}/PKG-INFO +1 -1
- python_fasthtml-0.12.39/fasthtml/__init__.py +2 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/core.py +1 -1
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/live_reload.py +6 -1
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39/python_fasthtml.egg-info}/PKG-INFO +1 -1
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/settings.ini +1 -1
- python_fasthtml-0.12.37/fasthtml/__init__.py +0 -2
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/CONTRIBUTING.md +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/LICENSE +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/MANIFEST.in +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/README.md +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/_modidx.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/authmw.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/basics.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/cli.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/common.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/components.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/components.pyi +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/core.pyi +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/fastapp.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/ft.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/js.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/jupyter.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/katex.js +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/oauth.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/pico.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/starlette.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/stripe_otp.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/svg.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/toaster.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/xtend.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/fasthtml/xtend.pyi +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/pyproject.toml +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/SOURCES.txt +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/dependency_links.txt +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/entry_points.txt +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/not-zip-safe +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/requires.txt +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/top_level.txt +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/setup.cfg +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/setup.py +0 -0
- {python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/tests/test_toaster.py +0 -0
|
@@ -335,7 +335,7 @@ def url_path_for(self:HTTPConnection, name: str, **path_params):
|
|
|
335
335
|
return URLPath(f"{self.scope['root_path']}{lp}", lp.protocol, lp.host)
|
|
336
336
|
|
|
337
337
|
# %% ../nbs/api/00_core.ipynb
|
|
338
|
-
_verbs = dict(get='hx-get', post='hx-post', put='hx-
|
|
338
|
+
_verbs = dict(get='hx-get', post='hx-post', put='hx-put', delete='hx-delete', patch='hx-patch', link='href')
|
|
339
339
|
|
|
340
340
|
def _url_for(req, t):
|
|
341
341
|
"Generate URL for route `t` using request `req`"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from starlette.routing import WebSocketRoute
|
|
2
|
+
from starlette.websockets import WebSocketDisconnect
|
|
2
3
|
from fasthtml.basics import FastHTML, Script
|
|
3
4
|
|
|
4
5
|
__all__ = ["FastHTMLWithLiveReload"]
|
|
@@ -23,7 +24,11 @@ def LiveReloadJs(reload_attempts:int=20, reload_interval:int=1000, **kwargs):
|
|
|
23
24
|
"""
|
|
24
25
|
return Script(src % (reload_attempts, reload_interval))
|
|
25
26
|
|
|
26
|
-
async def live_reload_ws(websocket):
|
|
27
|
+
async def live_reload_ws(websocket):
|
|
28
|
+
await websocket.accept()
|
|
29
|
+
try:
|
|
30
|
+
while True: await websocket.receive()
|
|
31
|
+
except WebSocketDisconnect: pass
|
|
27
32
|
|
|
28
33
|
class FastHTMLWithLiveReload(FastHTML):
|
|
29
34
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[DEFAULT]
|
|
2
2
|
repo = fasthtml
|
|
3
3
|
lib_name = python-fasthtml
|
|
4
|
-
version = 0.12.
|
|
4
|
+
version = 0.12.39
|
|
5
5
|
min_python = 3.10
|
|
6
6
|
license = apache2
|
|
7
7
|
requirements = fastcore>=1.10.0 python-dateutil starlette>0.33 oauthlib itsdangerous uvicorn[standard]>=0.30 httpx fastlite>=0.1.1 python-multipart beautifulsoup4
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_fasthtml-0.12.37 → python_fasthtml-0.12.39}/python_fasthtml.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|