flet 0.19.0.dev2106__tar.gz → 0.20.0.dev2112__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-0.19.0.dev2106 → flet-0.20.0.dev2112}/PKG-INFO +2 -2
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/pyproject.toml +2 -2
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/run.py +29 -31
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/flutter_service_worker.js +3 -3
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/index.html +1 -1
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/main.dart.js +26128 -26115
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/README.md +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__init__.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/__init__.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/config.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/hook-flet.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/macos_utils.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/rthooks/pyi_rth_localhost_fletd.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/rthooks.dat +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/utils.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/__pyinstaller/win_utils.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/async_websocket_connection.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/auth/__init__.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/auth/providers/__init__.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/canvas/__init__.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/cli.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/base.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/build.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/create.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/options.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/pack.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/cli/commands/publish.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/constants.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/matplotlib_chart.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/plotly_chart.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/reconnecting_websocket.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/security.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/sync_websocket_connection.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/utils/__init__.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/version.py +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/.last_build_id +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/AssetManifest.bin +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/AssetManifest.bin.json +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/AssetManifest.json +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/FontManifest.json +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/NOTICES +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/fonts/MaterialIcons-Regular.otf +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/packages/window_manager/images/ic_chrome_close.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/packages/window_manager/images/ic_chrome_maximize.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/packages/window_manager/images/ic_chrome_minimize.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/packages/window_manager/images/ic_chrome_unmaximize.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/assets/shaders/ink_sparkle.frag +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/favicon.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/flutter.js +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/icons/apple-touch-icon-192.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/icons/icon-192.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/icons/icon-512.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/icons/icon-maskable-192.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/icons/icon-maskable-512.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/icons/loading-animation.png +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/manifest.json +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/python-worker.js +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/python.js +0 -0
- {flet-0.19.0.dev2106 → flet-0.20.0.dev2112}/src/flet/web/version.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flet
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.20.0.dev2112
|
|
4
4
|
Summary: Flet for Python - easily build interactive multi-platform apps in Python
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Appveyor Systems Inc.
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Requires-Dist: cookiecutter (>=2.4.0,<3.0.0)
|
|
18
|
-
Requires-Dist: flet-runtime (==0.
|
|
18
|
+
Requires-Dist: flet-runtime (==0.20.0.dev2112)
|
|
19
19
|
Requires-Dist: packaging (>=23.1,<24.0)
|
|
20
20
|
Requires-Dist: qrcode (>=7.4.2,<8.0.0)
|
|
21
21
|
Requires-Dist: typing-extensions (>=4.6.2,<5.0.0) ; python_version < "3.8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "flet"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.20.0.dev2112"
|
|
4
4
|
description = "Flet for Python - easily build interactive multi-platform apps in Python"
|
|
5
5
|
authors = ["Appveyor Systems Inc. <hello@flet.dev>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -16,7 +16,7 @@ repository = "https://github.com/flet-dev/flet"
|
|
|
16
16
|
documentation = "https://flet.dev/docs"
|
|
17
17
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
19
|
-
flet-runtime = "0.
|
|
19
|
+
flet-runtime = "0.20.0.dev2112"
|
|
20
20
|
python = "^3.7"
|
|
21
21
|
typing-extensions = { version = "^4.6.2", python = "<3.8" }
|
|
22
22
|
websocket-client = "^1.5.2"
|
|
@@ -11,9 +11,6 @@ from pathlib import Path
|
|
|
11
11
|
from urllib.parse import quote, urlparse, urlunparse
|
|
12
12
|
|
|
13
13
|
import qrcode
|
|
14
|
-
from watchdog.events import FileSystemEventHandler
|
|
15
|
-
from watchdog.observers import Observer
|
|
16
|
-
|
|
17
14
|
from flet.cli.commands.base import BaseCommand
|
|
18
15
|
from flet_core.utils import random_string
|
|
19
16
|
from flet_runtime.app import close_flet_view, open_flet_view
|
|
@@ -23,6 +20,8 @@ from flet_runtime.utils import (
|
|
|
23
20
|
is_windows,
|
|
24
21
|
open_in_browser,
|
|
25
22
|
)
|
|
23
|
+
from watchdog.events import FileSystemEventHandler
|
|
24
|
+
from watchdog.observers import Observer
|
|
26
25
|
|
|
27
26
|
|
|
28
27
|
class Command(BaseCommand):
|
|
@@ -127,7 +126,7 @@ class Command(BaseCommand):
|
|
|
127
126
|
dest="ignore_dirs",
|
|
128
127
|
type=str,
|
|
129
128
|
default=None,
|
|
130
|
-
help="directories to ignore during watch. If more than one, separate with a
|
|
129
|
+
help="directories to ignore during watch. If more than one, separate with a comma.",
|
|
131
130
|
)
|
|
132
131
|
|
|
133
132
|
def handle(self, options: argparse.Namespace) -> None:
|
|
@@ -166,28 +165,31 @@ class Command(BaseCommand):
|
|
|
166
165
|
Path(os.path.dirname(script_path)).joinpath(assets_dir).resolve()
|
|
167
166
|
)
|
|
168
167
|
|
|
169
|
-
ignore_dirs =
|
|
170
|
-
|
|
171
|
-
ignore_dirs = [
|
|
168
|
+
ignore_dirs = (
|
|
169
|
+
[
|
|
172
170
|
str(Path(os.path.dirname(script_path)).joinpath(directory).resolve())
|
|
173
|
-
for directory in ignore_dirs.split("
|
|
171
|
+
for directory in options.ignore_dirs.split(",")
|
|
174
172
|
]
|
|
173
|
+
if options.ignore_dirs
|
|
174
|
+
else []
|
|
175
|
+
)
|
|
175
176
|
|
|
176
177
|
my_event_handler = Handler(
|
|
177
|
-
[sys.executable, "-u"]
|
|
178
|
+
args=[sys.executable, "-u"]
|
|
178
179
|
+ ["-m"] * options.module
|
|
179
180
|
+ [options.script if options.module else script_path],
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
options.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
options.
|
|
187
|
-
options.
|
|
188
|
-
options.
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
watch_directory=options.directory or options.recursive,
|
|
182
|
+
script_path=script_path,
|
|
183
|
+
port=port,
|
|
184
|
+
host=options.host,
|
|
185
|
+
page_name=options.app_name,
|
|
186
|
+
uds_path=uds_path,
|
|
187
|
+
web=options.web,
|
|
188
|
+
ios=options.ios,
|
|
189
|
+
android=options.android,
|
|
190
|
+
hidden=options.hidden,
|
|
191
|
+
assets_dir=assets_dir,
|
|
192
|
+
ignore_dirs=ignore_dirs,
|
|
191
193
|
)
|
|
192
194
|
|
|
193
195
|
my_observer = Observer()
|
|
@@ -210,6 +212,7 @@ class Handler(FileSystemEventHandler):
|
|
|
210
212
|
def __init__(
|
|
211
213
|
self,
|
|
212
214
|
args,
|
|
215
|
+
watch_directory,
|
|
213
216
|
script_path,
|
|
214
217
|
port,
|
|
215
218
|
host,
|
|
@@ -224,6 +227,7 @@ class Handler(FileSystemEventHandler):
|
|
|
224
227
|
) -> None:
|
|
225
228
|
super().__init__()
|
|
226
229
|
self.args = args
|
|
230
|
+
self.watch_directory = watch_directory
|
|
227
231
|
self.script_path = script_path
|
|
228
232
|
self.port = port
|
|
229
233
|
self.host = host
|
|
@@ -234,7 +238,7 @@ class Handler(FileSystemEventHandler):
|
|
|
234
238
|
self.android = android
|
|
235
239
|
self.hidden = hidden
|
|
236
240
|
self.assets_dir = assets_dir
|
|
237
|
-
self.ignore_dirs = ignore_dirs
|
|
241
|
+
self.ignore_dirs = ignore_dirs
|
|
238
242
|
self.last_time = time.time()
|
|
239
243
|
self.is_running = False
|
|
240
244
|
self.fvp = None
|
|
@@ -275,21 +279,15 @@ class Handler(FileSystemEventHandler):
|
|
|
275
279
|
th.start()
|
|
276
280
|
|
|
277
281
|
def on_any_event(self, event):
|
|
278
|
-
is_in_ignore_dirs = False
|
|
279
282
|
for directory in self.ignore_dirs:
|
|
280
283
|
child = os.path.abspath(event.src_path)
|
|
281
284
|
# check if the file which triggered the reload is in the (ignored) directory
|
|
282
|
-
|
|
285
|
+
if os.path.commonpath([directory]) == os.path.commonpath(
|
|
283
286
|
[directory, child]
|
|
284
|
-
)
|
|
285
|
-
|
|
286
|
-
break
|
|
287
|
+
):
|
|
288
|
+
return
|
|
287
289
|
|
|
288
|
-
if
|
|
289
|
-
not is_in_ignore_dirs
|
|
290
|
-
and (self.script_path is None or event.src_path == self.script_path)
|
|
291
|
-
and not event.is_directory
|
|
292
|
-
):
|
|
290
|
+
if self.watch_directory or event.src_path == self.script_path:
|
|
293
291
|
current_time = time.time()
|
|
294
292
|
if (current_time - self.last_time) > 0.5 and self.is_running:
|
|
295
293
|
self.last_time = current_time
|
|
@@ -17,7 +17,7 @@ const RESOURCES = {"assets/AssetManifest.json": "d9150da08bcab79647bb00a0700488d
|
|
|
17
17
|
"favicon.png": "302ac04c14db027d016d1fe74c6a80a0",
|
|
18
18
|
"manifest.json": "7909dae66a9203092dc86b5a6162e79c",
|
|
19
19
|
"flutter.js": "7d69e653079438abfbb24b82a655b0a4",
|
|
20
|
-
"main.dart.js": "
|
|
20
|
+
"main.dart.js": "a9756ab96bdaba634d1e7cab51bcc346",
|
|
21
21
|
"version.json": "3fea9d9c7b4ca6955aa03e762e0d2e13",
|
|
22
22
|
"icons/apple-touch-icon-192.png": "8cf0d5162941f467a77f023c414a1812",
|
|
23
23
|
"icons/icon-maskable-512.png": "aa798e6d780ff109da17c3a98d5f2619",
|
|
@@ -34,8 +34,8 @@ const RESOURCES = {"assets/AssetManifest.json": "d9150da08bcab79647bb00a0700488d
|
|
|
34
34
|
"canvaskit/chromium/canvaskit.wasm": "143af6ff368f9cd21c863bfa4274c406",
|
|
35
35
|
"canvaskit/chromium/canvaskit.js": "0ae8bbcc58155679458a0f7a00f66873",
|
|
36
36
|
"python-worker.js": "62a4865b3d41771b39660076485879be",
|
|
37
|
-
"index.html": "
|
|
38
|
-
"/": "
|
|
37
|
+
"index.html": "e529c7f8f6cf4288ac0504dbc22119c4",
|
|
38
|
+
"/": "e529c7f8f6cf4288ac0504dbc22119c4"};
|
|
39
39
|
// The application shell files that are downloaded before a service worker can
|
|
40
40
|
// start.
|
|
41
41
|
const CORE = ["main.dart.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
<script>
|
|
39
39
|
// The value below is injected by flutter build, do not touch.
|
|
40
|
-
const serviceWorkerVersion = "
|
|
40
|
+
const serviceWorkerVersion = "1982881992";
|
|
41
41
|
</script>
|
|
42
42
|
<!-- This script adds the flutter initialization JS code -->
|
|
43
43
|
<script src="flutter.js" defer></script>
|