python-fasthtml 0.6.6__tar.gz → 0.6.7__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 (40) hide show
  1. {python-fasthtml-0.6.6/python_fasthtml.egg-info → python-fasthtml-0.6.7}/PKG-INFO +1 -1
  2. python-fasthtml-0.6.7/fasthtml/__init__.py +2 -0
  3. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/_modidx.py +2 -2
  4. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/fastapp.py +1 -9
  5. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/jupyter.py +11 -30
  6. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7/python_fasthtml.egg-info}/PKG-INFO +1 -1
  7. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/settings.ini +1 -1
  8. python-fasthtml-0.6.6/fasthtml/__init__.py +0 -2
  9. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/CONTRIBUTING.md +0 -0
  10. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/LICENSE +0 -0
  11. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/MANIFEST.in +0 -0
  12. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/README.md +0 -0
  13. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/authmw.py +0 -0
  14. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/basics.py +0 -0
  15. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/cli.py +0 -0
  16. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/common.py +0 -0
  17. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/components.py +0 -0
  18. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/components.pyi +0 -0
  19. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/core.py +0 -0
  20. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/core.pyi +0 -0
  21. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/ft.py +0 -0
  22. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/js.py +0 -0
  23. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/katex.js +0 -0
  24. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/live_reload.py +0 -0
  25. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/oauth.py +0 -0
  26. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/pico.py +0 -0
  27. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/starlette.py +0 -0
  28. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/svg.py +0 -0
  29. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/toaster.py +0 -0
  30. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/xtend.py +0 -0
  31. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/fasthtml/xtend.pyi +0 -0
  32. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/python_fasthtml.egg-info/SOURCES.txt +0 -0
  33. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/python_fasthtml.egg-info/dependency_links.txt +0 -0
  34. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/python_fasthtml.egg-info/entry_points.txt +0 -0
  35. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/python_fasthtml.egg-info/not-zip-safe +0 -0
  36. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/python_fasthtml.egg-info/requires.txt +0 -0
  37. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/python_fasthtml.egg-info/top_level.txt +0 -0
  38. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/setup.cfg +0 -0
  39. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/setup.py +0 -0
  40. {python-fasthtml-0.6.6 → python-fasthtml-0.6.7}/tests/test_toaster.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-fasthtml
3
- Version: 0.6.6
3
+ Version: 0.6.7
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
@@ -0,0 +1,2 @@
1
+ __version__ = "0.6.7"
2
+ from .core import *
@@ -107,8 +107,7 @@ d = { 'settings': { 'branch': 'main',
107
107
  'fasthtml.core.uri': ('api/core.html#uri', 'fasthtml/core.py')},
108
108
  'fasthtml.fastapp': { 'fasthtml.fastapp._app_factory': ('api/fastapp.html#_app_factory', 'fasthtml/fastapp.py'),
109
109
  'fasthtml.fastapp._get_tbl': ('api/fastapp.html#_get_tbl', 'fasthtml/fastapp.py'),
110
- 'fasthtml.fastapp.fast_app': ('api/fastapp.html#fast_app', 'fasthtml/fastapp.py'),
111
- 'fasthtml.fastapp.jupy_app': ('api/fastapp.html#jupy_app', 'fasthtml/fastapp.py')},
110
+ 'fasthtml.fastapp.fast_app': ('api/fastapp.html#fast_app', 'fasthtml/fastapp.py')},
112
111
  'fasthtml.ft': {},
113
112
  'fasthtml.js': { 'fasthtml.js.HighlightJS': ('api/js.html#highlightjs', 'fasthtml/js.py'),
114
113
  'fasthtml.js.KatexMarkdownJS': ('api/js.html#katexmarkdownjs', 'fasthtml/js.py'),
@@ -123,6 +122,7 @@ d = { 'settings': { 'branch': 'main',
123
122
  'fasthtml.jupyter.JupyUvi.start': ('api/jupyter.html#jupyuvi.start', 'fasthtml/jupyter.py'),
124
123
  'fasthtml.jupyter.JupyUvi.stop': ('api/jupyter.html#jupyuvi.stop', 'fasthtml/jupyter.py'),
125
124
  'fasthtml.jupyter.is_port_free': ('api/jupyter.html#is_port_free', 'fasthtml/jupyter.py'),
125
+ 'fasthtml.jupyter.jupy_app': ('api/jupyter.html#jupy_app', 'fasthtml/jupyter.py'),
126
126
  'fasthtml.jupyter.nb_serve': ('api/jupyter.html#nb_serve', 'fasthtml/jupyter.py'),
127
127
  'fasthtml.jupyter.nb_serve_async': ('api/jupyter.html#nb_serve_async', 'fasthtml/jupyter.py'),
128
128
  'fasthtml.jupyter.wait_port_free': ('api/jupyter.html#wait_port_free', 'fasthtml/jupyter.py')},
@@ -12,10 +12,9 @@ from .basics import *
12
12
  from .pico import *
13
13
  from .starlette import *
14
14
  from .live_reload import FastHTMLWithLiveReload
15
- from .jupyter import _iframe_scr, cors_allow
16
15
 
17
16
  # %% auto 0
18
- __all__ = ['fast_app', 'jupy_app']
17
+ __all__ = ['fast_app']
19
18
 
20
19
  # %% ../nbs/api/10_fastapp.ipynb
21
20
  def _get_tbl(dt, nm, schema):
@@ -92,10 +91,3 @@ def fast_app(
92
91
  dbtbls = [_get_tbl(db.t, k, v) for k,v in tbls.items()]
93
92
  if len(dbtbls)==1: dbtbls=dbtbls[0]
94
93
  return app,app.route,*dbtbls
95
-
96
- # %% ../nbs/api/10_fastapp.ipynb
97
- def jupy_app(pico=False, hdrs=None, middleware=None, **kwargs):
98
- "Same as `fast_app` but for Jupyter notebooks"
99
- hdrs = listify(hdrs)+[_iframe_scr]
100
- middleware = listify(middleware)+[cors_allow]
101
- return fast_app(pico=pico, hdrs=hdrs, middleware=middleware, **kwargs)
@@ -1,15 +1,14 @@
1
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/06_jupyter.ipynb.
2
2
 
3
3
  # %% auto 0
4
- __all__ = ['cors_allow', 'nb_serve', 'nb_serve_async', 'is_port_free', 'wait_port_free', 'JupyUvi', 'FastJupy', 'HTMX']
4
+ __all__ = ['cors_allow', 'nb_serve', 'nb_serve_async', 'is_port_free', 'wait_port_free', 'JupyUvi', 'FastJupy', 'HTMX',
5
+ 'jupy_app']
5
6
 
6
7
  # %% ../nbs/api/06_jupyter.ipynb
7
8
  import asyncio, socket, time, uvicorn
8
9
  from threading import Thread
9
10
  from fastcore.utils import *
10
- from .core import *
11
- from .components import *
12
- from .xtend import *
11
+ from .common import *
13
12
  from IPython.display import HTML,Markdown,IFrame
14
13
  from starlette.middleware.cors import CORSMiddleware
15
14
  from starlette.middleware import Middleware
@@ -96,29 +95,11 @@ def HTMX(host='localhost', port=8000):
96
95
  window.addEventListener('message', function(e) {
97
96
  if (e.data.height) frame.style.height = (e.data.height+1) + 'px';
98
97
  }, false);
99
- }" allow="accelerometer;
100
- autoplay;
101
- camera;
102
- clipboard-read;
103
- clipboard-write;
104
- display-capture;
105
- encrypted-media;
106
- fullscreen;
107
- gamepad;
108
- geolocation;
109
- gyroscope;
110
- hid;
111
- identity-credentials-get;
112
- idle-detection;
113
- magnetometer;
114
- microphone;
115
- midi;
116
- payment;
117
- picture-in-picture;
118
- publickey-credentials-get;
119
- screen-wake-lock;
120
- serial;
121
- usb;
122
- web-share;
123
- xr-spatial-tracking
124
- "></iframe> """)
98
+ }" allow="accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking"></iframe> """)
99
+
100
+ # %% ../nbs/api/06_jupyter.ipynb
101
+ def jupy_app(pico=False, hdrs=None, middleware=None, **kwargs):
102
+ "Same as `fast_app` but for Jupyter notebooks"
103
+ hdrs = listify(hdrs)+[_iframe_scr]
104
+ middleware = listify(middleware)+[cors_allow]
105
+ return fast_app(pico=pico, hdrs=hdrs, middleware=middleware, **kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-fasthtml
3
- Version: 0.6.6
3
+ Version: 0.6.7
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
@@ -1,7 +1,7 @@
1
1
  [DEFAULT]
2
2
  repo = fasthtml
3
3
  lib_name = fasthtml
4
- version = 0.6.6
4
+ version = 0.6.7
5
5
  min_python = 3.10
6
6
  license = apache2
7
7
  requirements = fastcore>=1.7.8 python-dateutil starlette>0.33 oauthlib itsdangerous uvicorn[standard]>=0.30 httpx fastlite>=0.0.9 python-multipart beautifulsoup4
@@ -1,2 +0,0 @@
1
- __version__ = "0.6.6"
2
- from .core import *
File without changes