Skip to content

Commit f09ea5c

Browse files
authored
Merge pull request #649 from AnswerDotAI/llmstxt
docs: update documentation links and add tutorials to optional section
2 parents ba4544e + 1c53be4 commit f09ea5c

File tree

5 files changed

+7028
-55
lines changed

5 files changed

+7028
-55
lines changed

fasthtml/core.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""The `FastHTML` subclass of `Starlette`, along with the `RouterX` and `RouteX` classes it automatically uses."""
22
__all__ = ['empty', 'htmx_hdrs', 'fh_cfg', 'htmx_resps', 'htmx_exts', 'htmxsrc', 'fhjsscr', 'surrsrc', 'scopesrc', 'viewport', 'charset', 'cors_allow', 'iframe_scr', 'all_meths', 'parsed_date', 'snake2hyphens', 'HtmxHeaders', 'HttpHeader', 'HtmxResponseHeaders', 'form2dict', 'parse_form', 'flat_xt', 'Beforeware', 'EventStream', 'signal_shutdown', 'uri', 'decode_uri', 'flat_tuple', 'noop_body', 'respond', 'Redirect', 'get_key', 'qp', 'def_hdrs', 'FastHTML', 'nested_name', 'serve', 'Client', 'RouteFuncs', 'APIRouter', 'cookie', 'reg_re_param', 'MiddlewareBase', 'FtResponse', 'unqid', 'setup_ws']
3-
import json, uuid, inspect, types, uvicorn, signal, asyncio, threading, inspect
3+
import json, uuid, inspect, types, signal, asyncio, threading, inspect
44
from fastcore.utils import *
55
from fastcore.xml import *
66
from fastcore.meta import use_kwargs_dict
@@ -222,7 +222,7 @@ def _wrap_ex(f, status_code, hdrs, ftrs, htmlkw, bodykw, body_wrap):
222222
...
223223

224224
def qp(p: str, **kw) -> str:
225-
"""Add query parameters to path p"""
225+
"""Add parameters kw to path p"""
226226
...
227227

228228
def def_hdrs(htmx=True, surreal=True):

nbs/apilist.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
- `def __response__(self, req)`
9292

9393
- `def qp(p, **kw)`
94-
Add query parameters to path p
94+
Add parameters kw to path p
9595

9696
- `def def_hdrs(htmx, surreal)`
9797
Default headers for a FastHTML app
@@ -205,6 +205,13 @@
205205
- `def start(self)`
206206
- `def stop(self)`
207207

208+
- `class JupyUviAsync`
209+
Start and stop an async Jupyter compatible uvicorn server with ASGI `app` on `port` with `log_level`
210+
211+
- `def __init__(self, app, log_level, host, port, **kwargs)`
212+
- `def start(self)`
213+
- `def stop(self)`
214+
208215
- `def HTMX(path, app, host, port, height, link, iframe)`
209216
An iframe which displays the HTMX application in a notebook.
210217

0 commit comments

Comments
 (0)