flet-web 0.86.0.dev2__tar.gz → 0.86.2__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.
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/PKG-INFO +2 -2
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/pyproject.toml +2 -2
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/flet_app.py +2 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/flet_static_files.py +11 -6
- flet_web-0.86.2/src/flet_web/version.py +1 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web.egg-info/PKG-INFO +2 -2
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web.egg-info/requires.txt +1 -1
- flet_web-0.86.0.dev2/src/flet_web/version.py +0 -1
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/README.md +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/setup.cfg +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/__init__.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/__init__.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/app.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/flet_app_manager.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/flet_fastapi.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/flet_oauth.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/flet_upload.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/oauth_state.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/fastapi/serve_fastapi_web_app.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/patch_index.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web/uploads.py +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web.egg-info/SOURCES.txt +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web.egg-info/dependency_links.txt +0 -0
- {flet_web-0.86.0.dev2 → flet_web-0.86.2}/src/flet_web.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-web
|
|
3
|
-
Version: 0.86.
|
|
3
|
+
Version: 0.86.2
|
|
4
4
|
Summary: Flet web client in Flutter.
|
|
5
5
|
Author-email: "Appveyor Systems Inc." <hello@flet.dev>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/flet-dev/flet
|
|
|
9
9
|
Project-URL: Documentation, https://flet.dev/docs
|
|
10
10
|
Requires-Python: >=3.10
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: flet==0.86.
|
|
12
|
+
Requires-Dist: flet==0.86.2
|
|
13
13
|
Requires-Dist: fastapi>=0.115.12
|
|
14
14
|
Requires-Dist: uvicorn[standard]>=0.35.0
|
|
15
15
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flet-web"
|
|
3
|
-
version = "0.86.
|
|
3
|
+
version = "0.86.2"
|
|
4
4
|
description = "Flet web client in Flutter."
|
|
5
5
|
authors = [{ name = "Appveyor Systems Inc.", email = "hello@flet.dev" }]
|
|
6
6
|
license = "Apache-2.0"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
requires-python = ">=3.10"
|
|
9
9
|
dependencies = [
|
|
10
|
-
"flet==0.86.
|
|
10
|
+
"flet==0.86.2",
|
|
11
11
|
"fastapi >=0.115.12",
|
|
12
12
|
"uvicorn[standard] >=0.35.0"
|
|
13
13
|
]
|
|
@@ -425,6 +425,8 @@ class FletApp(Connection):
|
|
|
425
425
|
def send_data_channel_frame(self, channel_id: int, payload: bytes) -> None:
|
|
426
426
|
"""Send a raw DataChannel frame `[0x01][channel_id:u32 LE][bytes]`
|
|
427
427
|
over the WebSocket. Called by `_ProtocolMuxedDataChannel.send`."""
|
|
428
|
+
if self.__send_queue is None:
|
|
429
|
+
return # client disconnected — the frame is moot
|
|
428
430
|
header = b"\x01" + channel_id.to_bytes(4, "little", signed=False)
|
|
429
431
|
self.__send_queue.put_nowait(header + payload)
|
|
430
432
|
|
|
@@ -40,8 +40,9 @@ class FletStaticFiles(StaticFiles):
|
|
|
40
40
|
web_renderer: Type of web renderer.
|
|
41
41
|
route_url_strategy: Routing URL strategy.
|
|
42
42
|
no_cdn: Whether not load CanvasKit, Pyodide, and fonts from CDN.
|
|
43
|
-
websocket_endpoint_path:
|
|
44
|
-
|
|
43
|
+
websocket_endpoint_path: Path of Flet app WebSocket handler. A path
|
|
44
|
+
without a leading `/` is resolved against the app mount path.
|
|
45
|
+
Defaults to `ws`.
|
|
45
46
|
"""
|
|
46
47
|
|
|
47
48
|
def __init__(
|
|
@@ -187,10 +188,14 @@ class FletStaticFiles(StaticFiles):
|
|
|
187
188
|
# copy manifest.json from assets_dir or web_dir
|
|
188
189
|
copy_temp_web_file(self.manifest_json)
|
|
189
190
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
# The WebSocket route is registered relative to the app mount path,
|
|
192
|
+
# while the web client resolves `flet.webSocketEndpoint` against the
|
|
193
|
+
# server root - so a relative endpoint name must be prefixed with the
|
|
194
|
+
# mount path to produce a root-absolute path.
|
|
195
|
+
ws_path = self.__websocket_endpoint_path or "ws"
|
|
196
|
+
if not ws_path.startswith("/"):
|
|
197
|
+
mount_path = self.__app_mount_path.strip("/")
|
|
198
|
+
ws_path = f"{'' if mount_path == '' else '/' + mount_path}/{ws_path}"
|
|
194
199
|
|
|
195
200
|
# replace variables in index.html and manifest.json
|
|
196
201
|
patch_index_html(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "0.86.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-web
|
|
3
|
-
Version: 0.86.
|
|
3
|
+
Version: 0.86.2
|
|
4
4
|
Summary: Flet web client in Flutter.
|
|
5
5
|
Author-email: "Appveyor Systems Inc." <hello@flet.dev>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/flet-dev/flet
|
|
|
9
9
|
Project-URL: Documentation, https://flet.dev/docs
|
|
10
10
|
Requires-Python: >=3.10
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: flet==0.86.
|
|
12
|
+
Requires-Dist: flet==0.86.2
|
|
13
13
|
Requires-Dist: fastapi>=0.115.12
|
|
14
14
|
Requires-Dist: uvicorn[standard]>=0.35.0
|
|
15
15
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "0.86.0.dev2"
|
|
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
|