fastled 1.1.33__py2.py3-none-any.whl → 1.1.35__py2.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/docker_manager.py +665 -590
- fastled/filewatcher.py +202 -202
- fastled/open_browser.py +59 -59
- fastled/parse_args.py +13 -5
- fastled/sketch.py +21 -0
- fastled/spinner.py +34 -34
- {fastled-1.1.33.dist-info → fastled-1.1.35.dist-info}/METADATA +3 -1
- {fastled-1.1.33.dist-info → fastled-1.1.35.dist-info}/RECORD +13 -13
- {fastled-1.1.33.dist-info → fastled-1.1.35.dist-info}/LICENSE +0 -0
- {fastled-1.1.33.dist-info → fastled-1.1.35.dist-info}/WHEEL +0 -0
- {fastled-1.1.33.dist-info → fastled-1.1.35.dist-info}/entry_points.txt +0 -0
- {fastled-1.1.33.dist-info → fastled-1.1.35.dist-info}/top_level.txt +0 -0
fastled/spinner.py
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
import _thread
|
2
|
-
import threading
|
3
|
-
import time
|
4
|
-
import warnings
|
5
|
-
|
6
|
-
from progress.spinner import Spinner as SpinnerImpl
|
7
|
-
|
8
|
-
|
9
|
-
class Spinner:
|
10
|
-
def __init__(self, message: str = ""):
|
11
|
-
self.spinner = SpinnerImpl(message)
|
12
|
-
self.event = threading.Event()
|
13
|
-
self.thread = threading.Thread(target=self._spin, daemon=True)
|
14
|
-
self.thread.start()
|
15
|
-
|
16
|
-
def _spin(self) -> None:
|
17
|
-
try:
|
18
|
-
while not self.event.is_set():
|
19
|
-
self.spinner.next()
|
20
|
-
time.sleep(0.1)
|
21
|
-
except KeyboardInterrupt:
|
22
|
-
_thread.interrupt_main()
|
23
|
-
except Exception as e:
|
24
|
-
warnings.warn(f"Spinner thread failed: {e}")
|
25
|
-
|
26
|
-
def stop(self) -> None:
|
27
|
-
self.event.set()
|
28
|
-
self.thread.join()
|
29
|
-
|
30
|
-
def __enter__(self):
|
31
|
-
return self
|
32
|
-
|
33
|
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
34
|
-
self.stop()
|
1
|
+
import _thread
|
2
|
+
import threading
|
3
|
+
import time
|
4
|
+
import warnings
|
5
|
+
|
6
|
+
from progress.spinner import Spinner as SpinnerImpl
|
7
|
+
|
8
|
+
|
9
|
+
class Spinner:
|
10
|
+
def __init__(self, message: str = ""):
|
11
|
+
self.spinner = SpinnerImpl(message)
|
12
|
+
self.event = threading.Event()
|
13
|
+
self.thread = threading.Thread(target=self._spin, daemon=True)
|
14
|
+
self.thread.start()
|
15
|
+
|
16
|
+
def _spin(self) -> None:
|
17
|
+
try:
|
18
|
+
while not self.event.is_set():
|
19
|
+
self.spinner.next()
|
20
|
+
time.sleep(0.1)
|
21
|
+
except KeyboardInterrupt:
|
22
|
+
_thread.interrupt_main()
|
23
|
+
except Exception as e:
|
24
|
+
warnings.warn(f"Spinner thread failed: {e}")
|
25
|
+
|
26
|
+
def stop(self) -> None:
|
27
|
+
self.event.set()
|
28
|
+
self.thread.join()
|
29
|
+
|
30
|
+
def __enter__(self):
|
31
|
+
return self
|
32
|
+
|
33
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
34
|
+
self.stop()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.35
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -163,6 +163,8 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
|
|
163
163
|
|
164
164
|
# Revisions
|
165
165
|
|
166
|
+
* 1.1.35 - When searching for files cap the limit at a high amount to prevent hang.
|
167
|
+
* 1.1.34 - On windows check to make sure we are in linux container mode, if not try to switch and if that fails then use `--web` compiler.
|
166
168
|
* 1.1.33 - Auto updating frequency has been reduced from one hour to one day. To update immediatly use `--update`.
|
167
169
|
* 1.1.32 - `--init` now asks for which example you want, then tells you where the example was downloaded to. No longer auto-compiles.
|
168
170
|
* 1.1.31 - `--local` is auto-enabled if docker is installed, use `--web` to force web compiler. Updating is much more pretty.
|
@@ -1,28 +1,28 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=Hv3bFWGTfJSV3upT49myC67gS1RIXEsL7bcCk1mvS3E,61
|
2
2
|
fastled/app.py,sha256=Zw1RS72yyIZSDt1_08MDSzfY4YwLWzarwXM4nvy8GE4,1787
|
3
3
|
fastled/build_mode.py,sha256=joMwsV4K1y_LijT4gEAcjx69RZBoe_KmFmHZdPYbL_4,631
|
4
4
|
fastled/cli.py,sha256=CNR_pQR0sNVPNuv8e_nmm-0PI8sU-eUBUgnWgWkzW9c,237
|
5
5
|
fastled/client_server.py,sha256=IK_u71XbmOAKBX1ovHATsCmfUON8VVJJu-XtObTuYJI,11448
|
6
6
|
fastled/compile_server.py,sha256=QnvlomTbFG2OmFj4ChuOXa0yBhhOvR8Bp1iIFsD3hbU,6717
|
7
|
-
fastled/docker_manager.py,sha256=
|
7
|
+
fastled/docker_manager.py,sha256=x_lMreCkcY4ywLqU0pedTug80eo578ssaGUPystoDIs,25381
|
8
8
|
fastled/env.py,sha256=8wctQwl5qE4CI8NBugHtgMmUfEfHZ869JX5lGdSOJxc,304
|
9
|
-
fastled/filewatcher.py,sha256=
|
9
|
+
fastled/filewatcher.py,sha256=LwEQJkqADsArZyY499RLAer6JjJyDwaQBcAvT7xmp3c,6708
|
10
10
|
fastled/keyboard.py,sha256=Zz_ggxOUTX2XQEy6K6kAoorVlUev4wEk9Awpvv9aStA,3241
|
11
|
-
fastled/open_browser.py,sha256=
|
12
|
-
fastled/parse_args.py,sha256=
|
11
|
+
fastled/open_browser.py,sha256=vzMBcpDNY0f-Bx9KmEILKDANZ6gvsywCVwn1FRhPXh4,1770
|
12
|
+
fastled/parse_args.py,sha256=xYgIxgI6bxCB2IYVydNhtkrlXFj5DQSGYqCr6z3ipws,6145
|
13
13
|
fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
|
14
14
|
fastled/project_init.py,sha256=ndQICZ9rBtfEPOnucZ3cgRE67PUKc66CJYO4Tkwmt_M,1932
|
15
15
|
fastled/select_sketch_directory.py,sha256=TZdCjl1D7YMKjodMTvDRurPcpAmN3x0TcJxffER2NfM,1314
|
16
|
-
fastled/sketch.py,sha256=
|
17
|
-
fastled/spinner.py,sha256=
|
16
|
+
fastled/sketch.py,sha256=483TrrIdZJfo1MIu5FkD-V5OGmOfHmsZ2f6VvNsJBJM,3299
|
17
|
+
fastled/spinner.py,sha256=VHxmvB92P0Z_zYxRajb5HiNmkHHvZ5dG7hKtZltzpcs,867
|
18
18
|
fastled/string_diff.py,sha256=UR1oRhg9lsPzAG4bn_MwJMCn0evP5AigkBiwLiI9fgA,1354
|
19
19
|
fastled/types.py,sha256=dDIsGHJkHNJ7B61wNp6X0JSLs_nrHiq7RlNqNWbwFec,194
|
20
20
|
fastled/util.py,sha256=t4M3NFMhnCzfYbLvIyJi0RdFssZqbTN_vVIaej1WV-U,265
|
21
21
|
fastled/web_compile.py,sha256=KuvKGdX6SSUUqC7YgX4T9SMSP5wdcPUhpg9-K9zPoTI,10378
|
22
22
|
fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
23
|
-
fastled-1.1.
|
24
|
-
fastled-1.1.
|
25
|
-
fastled-1.1.
|
26
|
-
fastled-1.1.
|
27
|
-
fastled-1.1.
|
28
|
-
fastled-1.1.
|
23
|
+
fastled-1.1.35.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
24
|
+
fastled-1.1.35.dist-info/METADATA,sha256=agUdG0NUZBMxPrqrLSeeAu7sUK2ERr1HAtRuwgfEFqc,15150
|
25
|
+
fastled-1.1.35.dist-info/WHEEL,sha256=0VNUDWQJzfRahYI3neAhz2UVbRCtztpN5dPHAGvmGXc,109
|
26
|
+
fastled-1.1.35.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
27
|
+
fastled-1.1.35.dist-info/top_level.txt,sha256=xfG6Z_ol9V5YmBROkZq2QTRwjbS2ouCUxaTJsOwfkOo,14
|
28
|
+
fastled-1.1.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|