python-fasthtml 0.14.23__tar.gz → 0.14.24__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.23/python_fasthtml.egg-info → python_fasthtml-0.14.24}/PKG-INFO +1 -1
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/__init__.py +1 -1
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/jupyter.py +8 -2
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24/python_fasthtml.egg-info}/PKG-INFO +1 -1
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/CONTRIBUTING.md +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/LICENSE +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/MANIFEST.in +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/README.md +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/_modidx.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/authmw.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/basics.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/cli.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/common.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/components.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/components.pyi +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/core.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/core.pyi +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/fastapp.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/ft.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/js.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/katex.js +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/live_reload.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/oauth.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/pico.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/proxy.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/starlette.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/stripe_otp.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/svg.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/toaster.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/xtend.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/fasthtml/xtend.pyi +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/pyproject.toml +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/python_fasthtml.egg-info/SOURCES.txt +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/python_fasthtml.egg-info/dependency_links.txt +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/python_fasthtml.egg-info/entry_points.txt +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/python_fasthtml.egg-info/requires.txt +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/python_fasthtml.egg-info/top_level.txt +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/setup.cfg +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/tests/test_fh.py +0 -0
- {python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/tests/test_proxy.py +0 -0
|
@@ -32,8 +32,14 @@ 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
|
-
|
|
36
|
-
|
|
35
|
+
async def serve():
|
|
36
|
+
try: await server.serve()
|
|
37
|
+
except SystemExit as e: raise RuntimeError(f'Uvicorn exited with status {e.code}') from e
|
|
38
|
+
server._serve_task = asyncio.get_running_loop().create_task(serve())
|
|
39
|
+
while not server.started and not server._serve_task.done(): await asyncio.sleep(0.01)
|
|
40
|
+
if not server.started:
|
|
41
|
+
await server._serve_task
|
|
42
|
+
raise RuntimeError('Server exited before startup completed')
|
|
37
43
|
return server
|
|
38
44
|
|
|
39
45
|
# %% ../nbs/api/06_jupyter.ipynb #654b36bb
|
|
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
|
|
File without changes
|
{python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/python_fasthtml.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_fasthtml-0.14.23 → python_fasthtml-0.14.24}/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
|