fastled 1.3.29__py3-none-any.whl → 1.3.31__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/__version__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # IMPORTANT! There's a bug in github which will REJECT any version update
2
2
  # that has any other change in the repo. Please bump the version as the
3
3
  # ONLY change in a commit, or else the pypi update and the release will fail.
4
- __version__ = "1.3.29"
4
+ __version__ = "1.3.31"
5
5
 
6
6
  __version_url_latest__ = "https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/src/fastled/__version__.py"
fastled/filewatcher.py CHANGED
@@ -22,8 +22,8 @@ _WATCHER_TIMEOUT = 0.1
22
22
 
23
23
 
24
24
  def file_watcher_enabled() -> bool:
25
- """Check if watchdog is disabled"""
26
- return os.getenv("NO_FILE_WATCHING", "0") == "1"
25
+ """Check if watchdog is enabled"""
26
+ return os.getenv("NO_FILE_WATCHING", "0") != "1"
27
27
 
28
28
 
29
29
  def file_watcher_set(enabled: bool) -> None:
@@ -134,7 +134,7 @@ class FileChangedNotifier(threading.Thread):
134
134
  Returns:
135
135
  Changed filepath or None if no change within timeout
136
136
  """
137
- if file_watcher_enabled():
137
+ if not file_watcher_enabled():
138
138
  time.sleep(timeout)
139
139
  return None
140
140
  try:
fastled/server_flask.py CHANGED
@@ -60,9 +60,26 @@ def _run_flask_server(
60
60
  """
61
61
  try:
62
62
  from flask import Flask, Response, request, send_from_directory
63
+ from flask_cors import CORS
63
64
 
64
65
  app = Flask(__name__)
65
66
 
67
+ # Enable CORS for all domains on all routes
68
+ CORS(
69
+ app,
70
+ resources={
71
+ r"/*": {
72
+ "origins": "*",
73
+ "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
74
+ "allow_headers": [
75
+ "Content-Type",
76
+ "Authorization",
77
+ "X-Requested-With",
78
+ ],
79
+ }
80
+ },
81
+ )
82
+
66
83
  # Must be a full path or flask will fail to find the file.
67
84
  fastled_js = fastled_js.resolve()
68
85
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastled
3
- Version: 1.3.29
3
+ Version: 1.3.31
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -19,6 +19,7 @@ Requires-Dist: rapidfuzz>=3.10.1
19
19
  Requires-Dist: progress>=1.6
20
20
  Requires-Dist: watchfiles>=1.0.5
21
21
  Requires-Dist: Flask>=3.0.0
22
+ Requires-Dist: flask-cors>=4.0.0
22
23
  Requires-Dist: livereload
23
24
  Requires-Dist: disklru>=2.0.4
24
25
  Dynamic: home-page
@@ -55,8 +56,10 @@ Compile times are extremely fast, thanks to aggressive object caching for C++ an
55
56
 
56
57
  If you have docker installed, the compiler will download the docker image and run a private local server on your machine. If you don't have Docker installed then the app will fall back to using the public web compiler.
57
58
 
59
+
58
60
  In every conceivable way, the local compiler will be much faster than the web version.
59
61
 
62
+
60
63
  # Run
61
64
 
62
65
  Once `fastled` is installed you'll just navigate to your sketch directory and run it.
@@ -69,6 +72,7 @@ $ fastled
69
72
  ```
70
73
 
71
74
 
75
+
72
76
  # Install
73
77
 
74
78
  This is a python app, so any python package manager will work. We also provide python compiled binaries for Windows, MacOS, and Linux.
@@ -1,5 +1,5 @@
1
1
  fastled/__init__.py,sha256=YLikXGRWKlKAqj7bpvGmJLejGTFF-FC1lv2z1jwRinA,6852
2
- fastled/__version__.py,sha256=i6KYYX4NH_jVNiNQHpnyiHNn3QNTayRlzLNhtXmKij0,373
2
+ fastled/__version__.py,sha256=tXrICRICx5BHKoMjiYdTRaqtMPoKVfSU0kJHxPbszgs,373
3
3
  fastled/app.py,sha256=zfSipnCZ6w9_aXCynGrqf7OE--mKzbhT0mEfCNW5XjA,5736
4
4
  fastled/args.py,sha256=d9CaarQ1yw7w0REwgrNQ78zOUQSk94fTXwXHtFZPTSY,3281
5
5
  fastled/cli.py,sha256=drgR2AOxVrj3QEz58iiKscYAumbbin2vIV-k91VCOAA,561
@@ -9,7 +9,7 @@ fastled/client_server.py,sha256=gFZyJBXEHD_10akIr6YipGlFuYn-z5vJsPTxJU3BYco,1913
9
9
  fastled/compile_server.py,sha256=rkXvrvdav5vDG8lv_OlBX3YSCHtnHMt25nXbfeg_r78,2960
10
10
  fastled/compile_server_impl.py,sha256=6BBtrw_ReC6ewtv8NC_Ym4IYNgHf8SOvEkUFoy9rlBM,11727
11
11
  fastled/docker_manager.py,sha256=rkq39ZKrU6NHIyDa3mzs0Unb6o9oMeAwxhqiuHJU_RY,40291
12
- fastled/filewatcher.py,sha256=3qS3L7zMQhFuVrkeGn1djsB_cB6x_E2YGJmmQWVAU_w,10033
12
+ fastled/filewatcher.py,sha256=gEcJJHTDJ1X3gKJzltmEBhixWGbZj2eJD7a4vwSvITQ,10036
13
13
  fastled/keyboard.py,sha256=UTAsqCn1UMYnB8YDzENiLTj4GeL45tYfEcO7_5fLFEg,3556
14
14
  fastled/keyz.py,sha256=LO-8m_7CpNDiZLM-FXhQ30f9gN1bUYz5lOsUPTIbI-c,4020
15
15
  fastled/live_client.py,sha256=yoAul8tVgbbPf1oEC79SUZSHkLECxlrXxgWR9XaBIp4,2957
@@ -19,7 +19,7 @@ fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
19
19
  fastled/print_filter.py,sha256=nc_rqYYdCUPinFycaK7fiQF5PG1up51pmJptR__QyAs,1499
20
20
  fastled/project_init.py,sha256=bBt4DwmW5hZkm9ICt9Qk-0Nr_0JQM7icCgH5Iv-bCQs,3984
21
21
  fastled/select_sketch_directory.py,sha256=-eudwCns3AKj4HuHtSkZAFwbnf005SNL07pOzs9VxnE,1383
22
- fastled/server_flask.py,sha256=2bH8UTMFE8djiIJinFDrK9idLf0DUStbazckzn7_bOc,16208
22
+ fastled/server_flask.py,sha256=nItcm_7Ifr6RrLWFWu0xuxBffoEtXUsLA-_Qx8AAWRE,16719
23
23
  fastled/server_start.py,sha256=W9yKStkRlRNuXeV6j_6O7HjjFPyVLBHMcF9Uy2QjDWQ,479
24
24
  fastled/settings.py,sha256=dUVyJ8Mtprg0RwaS6oMWP8jBhr4C3R8fu4Hdx_Z1lCM,577
25
25
  fastled/sketch.py,sha256=Ftbh55Nt-p4hmPuPpj8Q9HrMzvnUazhoG_q9FHcxkns,3473
@@ -36,9 +36,9 @@ fastled/site/build.py,sha256=2YKU_UWKlJdGnjdbAbaL0co6kceFMSTVYwH1KCmgPZA,13987
36
36
  fastled/site/examples.py,sha256=s6vj2zJc6BfKlnbwXr1QWY1mzuDBMt6j5MEBOWjO_U8,155
37
37
  fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
38
38
  fastled/test/examples.py,sha256=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
39
- fastled-1.3.29.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
40
- fastled-1.3.29.dist-info/METADATA,sha256=yX3ZYam11g1xs7OVbjfc-VTy0E0IUbSbf7JgcOJQMxQ,30811
41
- fastled-1.3.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
- fastled-1.3.29.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
43
- fastled-1.3.29.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
44
- fastled-1.3.29.dist-info/RECORD,,
39
+ fastled-1.3.31.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
40
+ fastled-1.3.31.dist-info/METADATA,sha256=XP10vEnSwp0Am5AWVf-Q0Z-al5RgfQwYcG0_rX_w26I,30847
41
+ fastled-1.3.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
+ fastled-1.3.31.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
43
+ fastled-1.3.31.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
44
+ fastled-1.3.31.dist-info/RECORD,,