fastled 1.2.16__py3-none-any.whl → 1.2.18__py3-none-any.whl
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.
- fastled/__init__.py +1 -1
- fastled/open_browser.py +21 -12
- fastled/open_browser2.py +16 -6
- {fastled-1.2.16.dist-info → fastled-1.2.18.dist-info}/METADATA +5 -5
- {fastled-1.2.16.dist-info → fastled-1.2.18.dist-info}/RECORD +9 -9
- {fastled-1.2.16.dist-info → fastled-1.2.18.dist-info}/LICENSE +0 -0
- {fastled-1.2.16.dist-info → fastled-1.2.18.dist-info}/WHEEL +0 -0
- {fastled-1.2.16.dist-info → fastled-1.2.18.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.16.dist-info → fastled-1.2.18.dist-info}/top_level.txt +0 -0
fastled/__init__.py
CHANGED
@@ -15,7 +15,7 @@ from .types import BuildMode, CompileResult, CompileServerError
|
|
15
15
|
# IMPORTANT! There's a bug in github which will REJECT any version update
|
16
16
|
# that has any other change in the repo. Please bump the version as the
|
17
17
|
# ONLY change in a commit, or else the pypi update and the release will fail.
|
18
|
-
__version__ = "1.2.
|
18
|
+
__version__ = "1.2.18"
|
19
19
|
|
20
20
|
|
21
21
|
class Api:
|
fastled/open_browser.py
CHANGED
@@ -12,19 +12,28 @@ def open_http_server_subprocess(
|
|
12
12
|
fastled_js: Path, port: int, open_browser: bool
|
13
13
|
) -> None:
|
14
14
|
"""Start livereload server in the fastled_js directory and return the process"""
|
15
|
+
try:
|
16
|
+
cmd = [
|
17
|
+
PYTHON_EXE,
|
18
|
+
"-m",
|
19
|
+
"fastled.open_browser2",
|
20
|
+
str(fastled_js),
|
21
|
+
"--port",
|
22
|
+
str(port),
|
23
|
+
]
|
24
|
+
if not open_browser:
|
25
|
+
cmd.append("--no-browser")
|
26
|
+
# return subprocess.Popen(cmd) # type ignore
|
27
|
+
# pipe stderr and stdout to null
|
28
|
+
subprocess.run(
|
29
|
+
cmd,
|
30
|
+
stdout=subprocess.DEVNULL,
|
31
|
+
stderr=subprocess.DEVNULL,
|
32
|
+
) # type ignore
|
33
|
+
except KeyboardInterrupt:
|
34
|
+
import _thread
|
15
35
|
|
16
|
-
|
17
|
-
PYTHON_EXE,
|
18
|
-
"-m",
|
19
|
-
"fastled.open_browser2",
|
20
|
-
str(fastled_js),
|
21
|
-
"--port",
|
22
|
-
str(port),
|
23
|
-
]
|
24
|
-
if not open_browser:
|
25
|
-
cmd.append("--no-browser")
|
26
|
-
# return subprocess.Popen(cmd) # type ignore
|
27
|
-
subprocess.run(cmd) # type ignore
|
36
|
+
_thread.interrupt_main()
|
28
37
|
|
29
38
|
|
30
39
|
def open_browser_process(
|
fastled/open_browser2.py
CHANGED
@@ -45,6 +45,10 @@ def _run_flask_server(fastled_js: Path, port: int) -> None:
|
|
45
45
|
return response
|
46
46
|
|
47
47
|
app.run(port=port, debug=True)
|
48
|
+
except KeyboardInterrupt:
|
49
|
+
import _thread
|
50
|
+
|
51
|
+
_thread.interrupt_main()
|
48
52
|
except Exception as e:
|
49
53
|
print(f"Failed to run Flask server: {e}")
|
50
54
|
import _thread
|
@@ -72,12 +76,18 @@ def wait_for_server_then_launch_browser(port: int) -> None:
|
|
72
76
|
|
73
77
|
def run(path: Path, port: int, open_browser: bool) -> None:
|
74
78
|
"""Run the Flask server."""
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
79
|
+
try:
|
80
|
+
if open_browser:
|
81
|
+
browser_thread = Thread(
|
82
|
+
target=wait_for_server_then_launch_browser, args=(port,), daemon=True
|
83
|
+
)
|
84
|
+
browser_thread.start()
|
85
|
+
_run_flask_server(path, port)
|
86
|
+
except KeyboardInterrupt:
|
87
|
+
import _thread
|
88
|
+
|
89
|
+
_thread.interrupt_main()
|
90
|
+
pass
|
81
91
|
|
82
92
|
|
83
93
|
def parse_args() -> argparse.Namespace:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.18
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -34,11 +34,14 @@ Requires-Dist: Flask>=3.0.0
|
|
34
34
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml)
|
35
35
|
|
36
36
|
|
37
|
-
|
38
37
|
## Compile your FastLED sketch and run it on the Browser!
|
39
38
|
|
40
39
|

|
41
40
|
|
41
|
+
# Demo
|
42
|
+
|
43
|
+
https://zackees.github.io/fastled-wasm/
|
44
|
+
|
42
45
|
|
43
46
|
# About
|
44
47
|
|
@@ -50,9 +53,6 @@ If you have docker installed, the compiler will download the docker image and ru
|
|
50
53
|
|
51
54
|
In every conceivable way, the local compiler will be much faster than the web version.
|
52
55
|
|
53
|
-
# Demo
|
54
|
-
|
55
|
-
https://zackees.github.io/fastled-wasm/
|
56
56
|
|
57
57
|
# Install
|
58
58
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=GbfplKYW7t9szC2cAKFqFe31d3mcqHDfsGQTUTEqpwE,10743
|
2
2
|
fastled/app.py,sha256=4LQHjN-GMAzhEaIKSFkT5S26Snb1Y9kgVnPK6kqXbrQ,3382
|
3
3
|
fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
|
4
4
|
fastled/client_server.py,sha256=8L62zNtkGtErDtWrr4XVNsv7ji2zoS5rlqfCnwI3VKU,13177
|
@@ -8,8 +8,8 @@ fastled/docker_manager.py,sha256=Nf0x2BpwT1BvSsi63ZkDhQDMhjiWrjFiXxgowtQMrhM,289
|
|
8
8
|
fastled/filewatcher.py,sha256=LwEQJkqADsArZyY499RLAer6JjJyDwaQBcAvT7xmp3c,6708
|
9
9
|
fastled/keyboard.py,sha256=vyYxE98WCXjvMpcUJd0YXPVvt7TzvBmifLYI-K7jtKg,3524
|
10
10
|
fastled/live_client.py,sha256=b9mVJ-8w_zoEDwKIlAEUC5Q1La5W5rR6ct-exOcgJec,2561
|
11
|
-
fastled/open_browser.py,sha256=
|
12
|
-
fastled/open_browser2.py,sha256=
|
11
|
+
fastled/open_browser.py,sha256=0pb94Tx1n9vhst5NCy_EQ9JJ2nJG2id2oOGjUOtm40s,1856
|
12
|
+
fastled/open_browser2.py,sha256=VtuTw7p2T8RLqbP34fRa-JNerv8EDpJnspaNL270s-Y,3947
|
13
13
|
fastled/parse_args.py,sha256=LD2PpSEhyq3ZqPWa_TJ90Fb-O-yldi7rnen2fWLOPjo,6868
|
14
14
|
fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
|
15
15
|
fastled/project_init.py,sha256=bBt4DwmW5hZkm9ICt9Qk-0Nr_0JQM7icCgH5Iv-bCQs,3984
|
@@ -25,9 +25,9 @@ fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
|
25
25
|
fastled/site/build.py,sha256=l4RajIk0bApiAifT1lyLjIZi9lpPtSba4cnwWP5UOKc,14064
|
26
26
|
fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
|
27
27
|
fastled/test/examples.py,sha256=6xPwx_k9_XwYTpI1nk4SrYbsJKHJACd30GzD1epGqhY,1597
|
28
|
-
fastled-1.2.
|
29
|
-
fastled-1.2.
|
30
|
-
fastled-1.2.
|
31
|
-
fastled-1.2.
|
32
|
-
fastled-1.2.
|
33
|
-
fastled-1.2.
|
28
|
+
fastled-1.2.18.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
29
|
+
fastled-1.2.18.dist-info/METADATA,sha256=u2ScMoVaQWH1Oy7FlhEWDOuRYZuTPWrwC5UKR8YOHIk,20598
|
30
|
+
fastled-1.2.18.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
31
|
+
fastled-1.2.18.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
32
|
+
fastled-1.2.18.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
33
|
+
fastled-1.2.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|