python-fasthtml 0.0.6__tar.gz → 0.0.8__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.
Files changed (25) hide show
  1. {python-fasthtml-0.0.6/python_fasthtml.egg-info → python-fasthtml-0.0.8}/PKG-INFO +2 -1
  2. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/__init__.py +1 -1
  3. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/_modidx.py +1 -0
  4. python-fasthtml-0.0.8/fasthtml/cli.py +8 -0
  5. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/core.py +1 -1
  6. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/fastapp.py +0 -1
  7. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8/python_fasthtml.egg-info}/PKG-INFO +2 -1
  8. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/python_fasthtml.egg-info/SOURCES.txt +1 -0
  9. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/python_fasthtml.egg-info/requires.txt +1 -0
  10. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/settings.ini +2 -2
  11. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/LICENSE +0 -0
  12. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/MANIFEST.in +0 -0
  13. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/README.md +0 -0
  14. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/all.py +0 -0
  15. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/authmw.py +0 -0
  16. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/components.py +0 -0
  17. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/oauth.py +0 -0
  18. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/starlette.py +0 -0
  19. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/fasthtml/xtend.py +0 -0
  20. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/python_fasthtml.egg-info/dependency_links.txt +0 -0
  21. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/python_fasthtml.egg-info/entry_points.txt +0 -0
  22. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/python_fasthtml.egg-info/not-zip-safe +0 -0
  23. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/python_fasthtml.egg-info/top_level.txt +0 -0
  24. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/setup.cfg +0 -0
  25. {python-fasthtml-0.0.6 → python-fasthtml-0.0.8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-fasthtml
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: The fastest way to create an HTML app
5
5
  Home-page: https://github.com/AnswerDotAI/fasthtml
6
6
  Author: Jeremy Howard
@@ -23,6 +23,7 @@ Requires-Dist: itsdangerous
23
23
  Requires-Dist: uvicorn
24
24
  Requires-Dist: httpx
25
25
  Requires-Dist: fastlite
26
+ Requires-Dist: python-multipart
26
27
  Provides-Extra: dev
27
28
  Requires-Dist: ipython; extra == "dev"
28
29
  Requires-Dist: lxml; extra == "dev"
@@ -1,4 +1,4 @@
1
- __version__ = "0.0.6"
1
+ __version__ = "0.0.8"
2
2
  from .core import *
3
3
  from .authmw import *
4
4
  from .components import *
@@ -7,6 +7,7 @@ d = { 'settings': { 'branch': 'main',
7
7
  'lib_path': 'fasthtml'},
8
8
  'syms': { 'fasthtml.all': {},
9
9
  'fasthtml.authmw': {},
10
+ 'fasthtml.cli': {},
10
11
  'fasthtml.components': { 'fasthtml.components._FindElems': ('components.html#_findelems', 'fasthtml/components.py'),
11
12
  'fasthtml.components._FindElems.__init__': ( 'components.html#_findelems.__init__',
12
13
  'fasthtml/components.py'),
@@ -0,0 +1,8 @@
1
+ # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/04_cli.ipynb.
2
+
3
+ # %% auto 0
4
+ __all__ = []
5
+
6
+ # %% ../nbs/04_cli.ipynb 1
7
+ from fastcore.utils import *
8
+ import json
@@ -95,7 +95,7 @@ async def _from_body(req, arg, p):
95
95
 
96
96
  async def _find_p(req, arg:str, p):
97
97
  anno = p.annotation
98
- if arg.lower()=='auth': return req.scope['auth']
98
+ if arg.lower()=='auth': return req.scope.get('auth', None)
99
99
  if isinstance(anno, type):
100
100
  if issubclass(anno, Request): return req
101
101
  if issubclass(anno, HtmxHeaders): return _get_htmx(req)
@@ -30,4 +30,3 @@ target = dict(hx_target='main', hx_swap='outerHTML')
30
30
 
31
31
  def Container(*cs, **kwargs): return Main(*cs, **kwargs, cls='container', hx_push_url='true', hx_swap_oob='true', id='main')
32
32
  def Page(title, *con): return Title(title), Container(H1(title), *con)
33
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-fasthtml
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: The fastest way to create an HTML app
5
5
  Home-page: https://github.com/AnswerDotAI/fasthtml
6
6
  Author: Jeremy Howard
@@ -23,6 +23,7 @@ Requires-Dist: itsdangerous
23
23
  Requires-Dist: uvicorn
24
24
  Requires-Dist: httpx
25
25
  Requires-Dist: fastlite
26
+ Requires-Dist: python-multipart
26
27
  Provides-Extra: dev
27
28
  Requires-Dist: ipython; extra == "dev"
28
29
  Requires-Dist: lxml; extra == "dev"
@@ -7,6 +7,7 @@ fasthtml/__init__.py
7
7
  fasthtml/_modidx.py
8
8
  fasthtml/all.py
9
9
  fasthtml/authmw.py
10
+ fasthtml/cli.py
10
11
  fasthtml/components.py
11
12
  fasthtml/core.py
12
13
  fasthtml/fastapp.py
@@ -6,6 +6,7 @@ itsdangerous
6
6
  uvicorn
7
7
  httpx
8
8
  fastlite
9
+ python-multipart
9
10
 
10
11
  [dev]
11
12
  ipython
@@ -1,10 +1,10 @@
1
1
  [DEFAULT]
2
2
  repo = fasthtml
3
3
  lib_name = fasthtml
4
- version = 0.0.6
4
+ version = 0.0.8
5
5
  min_python = 3.10
6
6
  license = apache2
7
- requirements = fastcore python-dateutil starlette oauthlib itsdangerous uvicorn httpx fastlite
7
+ requirements = fastcore python-dateutil starlette oauthlib itsdangerous uvicorn httpx fastlite python-multipart
8
8
  dev_requirements = ipython lxml
9
9
  black_formatting = False
10
10
  conda_user = fastai
File without changes