python-fasthtml 0.12.28__tar.gz → 0.12.29__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.28/python_fasthtml.egg-info → python_fasthtml-0.12.29}/PKG-INFO +1 -1
- python_fasthtml-0.12.29/fasthtml/__init__.py +2 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/_modidx.py +3 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/core.py +9 -1
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29/python_fasthtml.egg-info}/PKG-INFO +1 -1
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/settings.ini +1 -1
- python_fasthtml-0.12.28/fasthtml/__init__.py +0 -2
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/CONTRIBUTING.md +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/LICENSE +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/MANIFEST.in +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/README.md +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/authmw.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/basics.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/cli.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/common.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/components.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/components.pyi +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/core.pyi +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/fastapp.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/ft.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/js.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/jupyter.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/katex.js +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/live_reload.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/oauth.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/pico.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/starlette.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/stripe_otp.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/svg.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/toaster.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/xtend.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/fasthtml/xtend.pyi +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/pyproject.toml +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/SOURCES.txt +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/dependency_links.txt +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/entry_points.txt +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/not-zip-safe +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/requires.txt +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/top_level.txt +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/setup.cfg +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/setup.py +0 -0
- {python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/tests/test_toaster.py +0 -0
|
@@ -73,6 +73,9 @@ d = { 'settings': { 'branch': 'main',
|
|
|
73
73
|
'fasthtml.core.RouteFuncs.__getattr__': ('api/core.html#routefuncs.__getattr__', 'fasthtml/core.py'),
|
|
74
74
|
'fasthtml.core.RouteFuncs.__init__': ('api/core.html#routefuncs.__init__', 'fasthtml/core.py'),
|
|
75
75
|
'fasthtml.core.RouteFuncs.__setattr__': ('api/core.html#routefuncs.__setattr__', 'fasthtml/core.py'),
|
|
76
|
+
'fasthtml.core.StaticNoCache': ('api/core.html#staticnocache', 'fasthtml/core.py'),
|
|
77
|
+
'fasthtml.core.StaticNoCache.file_response': ( 'api/core.html#staticnocache.file_response',
|
|
78
|
+
'fasthtml/core.py'),
|
|
76
79
|
'fasthtml.core.StringConvertor.to_string': ('api/core.html#stringconvertor.to_string', 'fasthtml/core.py'),
|
|
77
80
|
'fasthtml.core._add_ids': ('api/core.html#_add_ids', 'fasthtml/core.py'),
|
|
78
81
|
'fasthtml.core._annotations': ('api/core.html#_annotations', 'fasthtml/core.py'),
|
|
@@ -8,7 +8,8 @@ __all__ = ['empty', 'htmx_hdrs', 'fh_cfg', 'htmx_resps', 'htmx_exts', 'htmxsrc',
|
|
|
8
8
|
'HtmxHeaders', 'HttpHeader', 'HtmxResponseHeaders', 'form2dict', 'parse_form', 'JSONResponse', 'flat_xt',
|
|
9
9
|
'Beforeware', 'EventStream', 'signal_shutdown', 'uri', 'decode_uri', 'flat_tuple', 'noop_body', 'respond',
|
|
10
10
|
'is_full_page', 'Redirect', 'get_key', 'qp', 'def_hdrs', 'FastHTML', 'nested_name', 'serve', 'Client',
|
|
11
|
-
'RouteFuncs', 'APIRouter', 'cookie', 'reg_re_param', '
|
|
11
|
+
'RouteFuncs', 'APIRouter', 'cookie', 'reg_re_param', 'StaticNoCache', 'MiddlewareBase', 'FtResponse',
|
|
12
|
+
'unqid']
|
|
12
13
|
|
|
13
14
|
# %% ../nbs/api/00_core.ipynb
|
|
14
15
|
import json,uuid,inspect,types,signal,asyncio,threading,inspect,random,contextlib
|
|
@@ -820,6 +821,13 @@ def static_route(self:FastHTML, ext='', prefix='/', static_path='.'):
|
|
|
820
821
|
@self.route(f"{prefix}{{fname:path}}{ext}")
|
|
821
822
|
async def get(fname:str): return FileResponse(f'{static_path}/{fname}{ext}')
|
|
822
823
|
|
|
824
|
+
# %% ../nbs/api/00_core.ipynb
|
|
825
|
+
class StaticNoCache(StaticFiles):
|
|
826
|
+
def file_response(self, *args, **kwargs):
|
|
827
|
+
resp = super().file_response(*args, **kwargs)
|
|
828
|
+
resp.headers.setdefault("Cache-Control", "no-cache")
|
|
829
|
+
return resp
|
|
830
|
+
|
|
823
831
|
# %% ../nbs/api/00_core.ipynb
|
|
824
832
|
class MiddlewareBase:
|
|
825
833
|
async def __call__(self, scope, receive, send) -> None:
|
|
@@ -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.29
|
|
5
5
|
min_python = 3.10
|
|
6
6
|
license = apache2
|
|
7
7
|
requirements = fastcore>=1.8.1 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.28 → python_fasthtml-0.12.29}/python_fasthtml.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_fasthtml-0.12.28 → python_fasthtml-0.12.29}/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
|