python-fasthtml 0.14.18__tar.gz → 0.14.19__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.14.18/python_fasthtml.egg-info → python_fasthtml-0.14.19}/PKG-INFO +1 -1
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/__init__.py +1 -1
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/jupyter.py +3 -4
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19/python_fasthtml.egg-info}/PKG-INFO +1 -1
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/CONTRIBUTING.md +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/LICENSE +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/MANIFEST.in +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/README.md +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/_modidx.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/authmw.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/basics.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/cli.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/common.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/components.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/components.pyi +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/core.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/core.pyi +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/fastapp.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/ft.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/js.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/katex.js +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/live_reload.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/oauth.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/pico.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/starlette.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/stripe_otp.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/svg.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/toaster.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/xtend.py +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/fasthtml/xtend.pyi +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/pyproject.toml +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/SOURCES.txt +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/dependency_links.txt +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/entry_points.txt +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/requires.txt +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/top_level.txt +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/setup.cfg +0 -0
- {python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/tests/test_toaster.py +0 -0
|
@@ -12,7 +12,7 @@ import asyncio, time, uvicorn
|
|
|
12
12
|
from threading import Thread
|
|
13
13
|
from fastcore.utils import *
|
|
14
14
|
from fastcore.meta import delegates
|
|
15
|
-
from fastcore.net import wait_port_free
|
|
15
|
+
from fastcore.net import wait_port_free
|
|
16
16
|
from .common import *
|
|
17
17
|
from .common import show as _show
|
|
18
18
|
from fastcore.parallel import startthread
|
|
@@ -32,7 +32,7 @@ def nb_serve(app, log_level="error", port=8000, host='0.0.0.0', daemon=False, **
|
|
|
32
32
|
async def nb_serve_async(app, log_level="error", port=8000, host='0.0.0.0', **kwargs):
|
|
33
33
|
"Async version of `nb_serve`"
|
|
34
34
|
server = uvicorn.Server(uvicorn.Config(app, log_level=log_level, host=host, port=port, **kwargs))
|
|
35
|
-
asyncio.get_running_loop().create_task(server.serve())
|
|
35
|
+
server._serve_task = asyncio.get_running_loop().create_task(server.serve())
|
|
36
36
|
while not server.started: await asyncio.sleep(0.01)
|
|
37
37
|
return server
|
|
38
38
|
|
|
@@ -112,8 +112,7 @@ class JupyUviAsync(JupyUvi):
|
|
|
112
112
|
|
|
113
113
|
async def stop(self):
|
|
114
114
|
self.server.should_exit = True
|
|
115
|
-
await
|
|
116
|
-
|
|
115
|
+
await self.server._serve_task
|
|
117
116
|
|
|
118
117
|
# %% ../nbs/api/06_jupyter.ipynb #a448e420
|
|
119
118
|
from starlette.testclient import TestClient
|
|
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
|
|
File without changes
|
{python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_fasthtml-0.14.18 → python_fasthtml-0.14.19}/python_fasthtml.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|