fastled 1.2.59__tar.gz → 1.2.61__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.
Files changed (126) hide show
  1. {fastled-1.2.59 → fastled-1.2.61}/PKG-INFO +2 -1
  2. {fastled-1.2.59 → fastled-1.2.61}/pyproject.toml +1 -0
  3. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/__init__.py +1 -1
  4. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/open_browser.py +13 -16
  5. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/open_browser2.py +3 -30
  6. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/server_fastapi.py +1 -1
  7. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/server_fastapi_cli.py +3 -2
  8. {fastled-1.2.59 → fastled-1.2.61}/src/fastled.egg-info/PKG-INFO +2 -1
  9. {fastled-1.2.59 → fastled-1.2.61}/src/fastled.egg-info/requires.txt +1 -0
  10. {fastled-1.2.59 → fastled-1.2.61}/.aiderignore +0 -0
  11. {fastled-1.2.59 → fastled-1.2.61}/.dockerignore +0 -0
  12. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/build_multi_docker_image.yml +0 -0
  13. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/build_webpage.yml +0 -0
  14. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/lint.yml +0 -0
  15. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/publish_release.yml +0 -0
  16. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/template_build_docker_image.yml +0 -0
  17. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/test_build_exe.yml +0 -0
  18. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/test_macos.yml +0 -0
  19. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/test_ubuntu.yml +0 -0
  20. {fastled-1.2.59 → fastled-1.2.61}/.github/workflows/test_win.yml +0 -0
  21. {fastled-1.2.59 → fastled-1.2.61}/.gitignore +0 -0
  22. {fastled-1.2.59 → fastled-1.2.61}/.pylintrc +0 -0
  23. {fastled-1.2.59 → fastled-1.2.61}/.vscode/launch.json +0 -0
  24. {fastled-1.2.59 → fastled-1.2.61}/.vscode/settings.json +0 -0
  25. {fastled-1.2.59 → fastled-1.2.61}/.vscode/tasks.json +0 -0
  26. {fastled-1.2.59 → fastled-1.2.61}/Dockerfile +0 -0
  27. {fastled-1.2.59 → fastled-1.2.61}/LICENSE +0 -0
  28. {fastled-1.2.59 → fastled-1.2.61}/MANIFEST.in +0 -0
  29. {fastled-1.2.59 → fastled-1.2.61}/README.md +0 -0
  30. {fastled-1.2.59 → fastled-1.2.61}/RELEASE.md +0 -0
  31. {fastled-1.2.59 → fastled-1.2.61}/TODO.md +0 -0
  32. {fastled-1.2.59 → fastled-1.2.61}/build_exe.py +0 -0
  33. {fastled-1.2.59 → fastled-1.2.61}/build_site.py +0 -0
  34. {fastled-1.2.59 → fastled-1.2.61}/clean +0 -0
  35. {fastled-1.2.59 → fastled-1.2.61}/compiler/CMakeLists.txt +0 -0
  36. {fastled-1.2.59 → fastled-1.2.61}/compiler/__init__.py +0 -0
  37. {fastled-1.2.59 → fastled-1.2.61}/compiler/arduino-pre-process.sh +0 -0
  38. {fastled-1.2.59 → fastled-1.2.61}/compiler/build.sh +0 -0
  39. {fastled-1.2.59 → fastled-1.2.61}/compiler/build_archive.sh +0 -0
  40. {fastled-1.2.59 → fastled-1.2.61}/compiler/build_fast.sh +0 -0
  41. {fastled-1.2.59 → fastled-1.2.61}/compiler/code_sync.py +0 -0
  42. {fastled-1.2.59 → fastled-1.2.61}/compiler/compile.py +0 -0
  43. {fastled-1.2.59 → fastled-1.2.61}/compiler/compile_lock.py +0 -0
  44. {fastled-1.2.59 → fastled-1.2.61}/compiler/entrypoint.sh +0 -0
  45. {fastled-1.2.59 → fastled-1.2.61}/compiler/extra/100dots.html +0 -0
  46. {fastled-1.2.59 → fastled-1.2.61}/compiler/extra/demo_threejs.html +0 -0
  47. {fastled-1.2.59 → fastled-1.2.61}/compiler/extra/micdemo.html +0 -0
  48. {fastled-1.2.59 → fastled-1.2.61}/compiler/extra/webgl_postprocessing_unreal_bloom.html +0 -0
  49. {fastled-1.2.59 → fastled-1.2.61}/compiler/final_prewarm.sh +0 -0
  50. {fastled-1.2.59 → fastled-1.2.61}/compiler/init_runtime.py +0 -0
  51. {fastled-1.2.59 → fastled-1.2.61}/compiler/install-arduino-cli.sh +0 -0
  52. {fastled-1.2.59 → fastled-1.2.61}/compiler/libcompile/CMakeLists.txt +0 -0
  53. {fastled-1.2.59 → fastled-1.2.61}/compiler/paths.py +0 -0
  54. {fastled-1.2.59 → fastled-1.2.61}/compiler/pre-process.sh +0 -0
  55. {fastled-1.2.59 → fastled-1.2.61}/compiler/prewarm.sh +0 -0
  56. {fastled-1.2.59 → fastled-1.2.61}/compiler/process-ino.py +0 -0
  57. {fastled-1.2.59 → fastled-1.2.61}/compiler/process_extended.py +0 -0
  58. {fastled-1.2.59 → fastled-1.2.61}/compiler/pyproject.toml +0 -0
  59. {fastled-1.2.59 → fastled-1.2.61}/compiler/run.py +0 -0
  60. {fastled-1.2.59 → fastled-1.2.61}/compiler/server.py +0 -0
  61. {fastled-1.2.59 → fastled-1.2.61}/compiler/sketch_hasher.py +0 -0
  62. {fastled-1.2.59 → fastled-1.2.61}/compiler/wasm_compiler_flags.py +0 -0
  63. {fastled-1.2.59 → fastled-1.2.61}/docker-compose.yml +0 -0
  64. {fastled-1.2.59 → fastled-1.2.61}/install +0 -0
  65. {fastled-1.2.59 → fastled-1.2.61}/install_linux.sh +0 -0
  66. {fastled-1.2.59 → fastled-1.2.61}/lint +0 -0
  67. {fastled-1.2.59 → fastled-1.2.61}/requirements.testing.txt +0 -0
  68. {fastled-1.2.59 → fastled-1.2.61}/setup.cfg +0 -0
  69. {fastled-1.2.59 → fastled-1.2.61}/setup.py +0 -0
  70. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/app.py +0 -0
  71. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/assets/example.txt +0 -0
  72. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/assets/localhost-key.pem +0 -0
  73. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/assets/localhost.pem +0 -0
  74. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/cli.py +0 -0
  75. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/cli_test.py +0 -0
  76. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/client_server.py +0 -0
  77. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/compile_server.py +0 -0
  78. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/compile_server_impl.py +0 -0
  79. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/docker_manager.py +0 -0
  80. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/filewatcher.py +0 -0
  81. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/interactive_srcs.py +0 -0
  82. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/keyboard.py +0 -0
  83. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/keyz.py +0 -0
  84. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/live_client.py +0 -0
  85. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/parse_args.py +0 -0
  86. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/paths.py +0 -0
  87. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/project_init.py +0 -0
  88. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/select_sketch_directory.py +0 -0
  89. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/settings.py +0 -0
  90. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/site/build.py +0 -0
  91. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/site/examples.py +0 -0
  92. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/sketch.py +0 -0
  93. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/spinner.py +0 -0
  94. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/string_diff.py +0 -0
  95. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  96. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/test/examples.py +0 -0
  97. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/types.py +0 -0
  98. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/util.py +0 -0
  99. {fastled-1.2.59 → fastled-1.2.61}/src/fastled/web_compile.py +0 -0
  100. {fastled-1.2.59 → fastled-1.2.61}/src/fastled.egg-info/SOURCES.txt +0 -0
  101. {fastled-1.2.59 → fastled-1.2.61}/src/fastled.egg-info/dependency_links.txt +0 -0
  102. {fastled-1.2.59 → fastled-1.2.61}/src/fastled.egg-info/entry_points.txt +0 -0
  103. {fastled-1.2.59 → fastled-1.2.61}/src/fastled.egg-info/top_level.txt +0 -0
  104. {fastled-1.2.59 → fastled-1.2.61}/test +0 -0
  105. {fastled-1.2.59 → fastled-1.2.61}/tests/integration/test_build_examples.py +0 -0
  106. {fastled-1.2.59 → fastled-1.2.61}/tests/integration/test_examples.py +0 -0
  107. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/html/index.html +0 -0
  108. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_api.py +0 -0
  109. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_bad_ino.py +0 -0
  110. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_cli.py +0 -0
  111. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_compile_server.py +0 -0
  112. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_docker_linux_on_windows.py +0 -0
  113. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_embedded_data.py +0 -0
  114. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_filechanger.py +0 -0
  115. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_http_server.py +0 -0
  116. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_ino/bad/bad.ino +0 -0
  117. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_ino/bad_platformio/bad_platformio.ino +0 -0
  118. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_ino/bad_platformio/platformio.ini +0 -0
  119. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_ino/embedded/data/bigdata.dat +0 -0
  120. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_ino/embedded/wasm.ino +0 -0
  121. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_ino/wasm/wasm.ino +0 -0
  122. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_project_init.py +0 -0
  123. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_server_and_client_seperatly.py +0 -0
  124. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_string_diff.py +0 -0
  125. {fastled-1.2.59 → fastled-1.2.61}/tests/unit/test_webcompile.py +0 -0
  126. {fastled-1.2.59 → fastled-1.2.61}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastled
3
- Version: 1.2.59
3
+ Version: 1.2.61
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -22,6 +22,7 @@ Requires-Dist: progress>=1.6
22
22
  Requires-Dist: fastapi>=0.115.12
23
23
  Requires-Dist: uvicorn>=0.34.2
24
24
  Requires-Dist: pywebview>=5.4
25
+ Requires-Dist: watchfiles>=1.0.5
25
26
  Dynamic: home-page
26
27
  Dynamic: license-file
27
28
  Dynamic: maintainer
@@ -23,6 +23,7 @@ dependencies = [
23
23
  "fastapi>=0.115.12",
24
24
  "uvicorn>=0.34.2",
25
25
  "pywebview>=5.4",
26
+ "watchfiles>=1.0.5",
26
27
  ]
27
28
 
28
29
  dynamic = ["version"]
@@ -13,7 +13,7 @@ from .types import BuildMode, CompileResult, CompileServerError
13
13
  # IMPORTANT! There's a bug in github which will REJECT any version update
14
14
  # that has any other change in the repo. Please bump the version as the
15
15
  # ONLY change in a commit, or else the pypi update and the release will fail.
16
- __version__ = "1.2.59"
16
+ __version__ = "1.2.61"
17
17
 
18
18
  DOCKER_FILE = (
19
19
  "https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/Dockerfile"
@@ -14,10 +14,9 @@ SSL_CONFIG = get_ssl_config()
14
14
  # print(f"SSL Config: {SSL_CONFIG.certfile}, {SSL_CONFIG.keyfile}")
15
15
 
16
16
 
17
- def open_http_server_subprocess(
17
+ def _open_http_server_subprocess(
18
18
  fastled_js: Path,
19
19
  port: int,
20
- open_browser: bool,
21
20
  ) -> None:
22
21
  print("\n################################################################")
23
22
  print(f"# Opening browser to {fastled_js} on port {port}")
@@ -32,8 +31,6 @@ def open_http_server_subprocess(
32
31
  "--port",
33
32
  str(port),
34
33
  ]
35
- if open_browser:
36
- cmd.append("--open-browser")
37
34
  # Pass SSL flags if available
38
35
  if SSL_CONFIG.certfile and SSL_CONFIG.keyfile:
39
36
  cmd.extend(
@@ -52,7 +49,7 @@ def open_http_server_subprocess(
52
49
  subprocess.run(
53
50
  cmd,
54
51
  stdout=subprocess.DEVNULL,
55
- stderr=subprocess.DEVNULL,
52
+ # stderr=subprocess.DEVNULL,
56
53
  ) # type ignore
57
54
  except KeyboardInterrupt:
58
55
  print("Exiting from server...")
@@ -111,21 +108,21 @@ def open_browser_process(
111
108
  port = find_free_port(DEFAULT_PORT)
112
109
 
113
110
  proc = Process(
114
- target=open_http_server_subprocess,
115
- args=(fastled_js, port, open_browser),
111
+ target=_open_http_server_subprocess,
112
+ args=(fastled_js, port),
116
113
  daemon=True,
117
114
  )
118
115
  proc.start()
119
116
  wait_for_server(port)
120
- # if open_browser:
121
- # print(
122
- # f"Opening browser to http{'s' if SSL_CONFIG.certfile else ''}://localhost:{port}"
123
- # )
124
- # webbrowser.open(
125
- # url=f"http{'s' if SSL_CONFIG.certfile else ''}://localhost:{port}",
126
- # new=1,
127
- # autoraise=True,
128
- # )
117
+ if open_browser:
118
+ print(f"Opening browser to http://localhost:{port}")
119
+ import webbrowser
120
+
121
+ webbrowser.open(
122
+ url=f"http://localhost:{port}",
123
+ new=1,
124
+ autoraise=True,
125
+ )
129
126
  return proc
130
127
 
131
128
 
@@ -2,7 +2,7 @@ import argparse
2
2
  import importlib.resources as pkg_resources
3
3
  from pathlib import Path
4
4
 
5
- from .server_fastapi_cli import run_fastapi_server_proces
5
+ from fastled.server_fastapi_cli import run_fastapi_server_process
6
6
 
7
7
 
8
8
  def get_asset_path(filename: str) -> Path | None:
@@ -16,28 +16,9 @@ def get_asset_path(filename: str) -> Path | None:
16
16
  return None
17
17
 
18
18
 
19
- def _open_browser(url: str) -> None:
20
- # import webview
21
-
22
- # print("\n##################################################")
23
- # print(f"# Opening browser to {url}")
24
- # print("##################################################\n")
25
-
26
- # webview.create_window("FastLED", url)
27
- # webview.start()
28
- import webbrowser
29
-
30
- webbrowser.open(url, new=1, autoraise=True)
31
- while True:
32
- import time
33
-
34
- time.sleep(1)
35
-
36
-
37
19
  def run(
38
20
  path: Path,
39
21
  port: int,
40
- open_browser: bool,
41
22
  certfile: Path | None = None,
42
23
  keyfile: Path | None = None,
43
24
  ) -> None:
@@ -49,10 +30,8 @@ def run(
49
30
  keyfile = get_asset_path("localhost-key.pem")
50
31
 
51
32
  # _run_flask_server(path, port, certfile, keyfile)
52
- # run_fastapi_server_proces(port=port, path=path, certfile=certfile, keyfile=keyfile)
53
- proc = run_fastapi_server_proces(port=port, cwd=path)
54
- if open_browser:
55
- _open_browser(f"http://localhost:{port}/")
33
+ # run_fastapi_server_process(port=port, path=path, certfile=certfile, keyfile=keyfile)
34
+ proc = run_fastapi_server_process(port=port, cwd=path)
56
35
  try:
57
36
  proc.join()
58
37
  except KeyboardInterrupt:
@@ -81,16 +60,11 @@ def parse_args() -> argparse.Namespace:
81
60
  parser.add_argument(
82
61
  "--key", type=Path, help="(Optional) Path to SSL private key (PEM format)"
83
62
  )
84
- parser.add_argument(
85
- "--open-browser",
86
- action="store_true",
87
- )
88
63
  return parser.parse_args()
89
64
 
90
65
 
91
66
  def main() -> None:
92
67
  args = parse_args()
93
- open_browser: bool = args.open_browser
94
68
  fastled_js: Path = args.fastled_js
95
69
  port: int = args.port
96
70
  cert: Path | None = args.cert
@@ -98,7 +72,6 @@ def main() -> None:
98
72
  run(
99
73
  path=fastled_js,
100
74
  port=port,
101
- open_browser=open_browser,
102
75
  certfile=cert,
103
76
  keyfile=key,
104
77
  )
@@ -20,7 +20,7 @@ MAPPING = {
20
20
 
21
21
 
22
22
  """Run FastAPI server with live reload or HTTPS depending on args."""
23
- app = FastAPI()
23
+ app = FastAPI(debug=True)
24
24
  base = Path(".")
25
25
 
26
26
 
@@ -33,12 +33,13 @@ def _run_fastapi_server(
33
33
  host="127.0.0.1",
34
34
  port=port,
35
35
  reload=True,
36
+ # reload_includes=["index.html"],
36
37
  ssl_certfile=certfile,
37
38
  ssl_keyfile=keyfile,
38
39
  )
39
40
 
40
41
 
41
- def run_fastapi_server_proces(
42
+ def run_fastapi_server_process(
42
43
  port: int,
43
44
  cwd: Path | None = None,
44
45
  certfile: Path | None = None,
@@ -56,5 +57,5 @@ def run_fastapi_server_proces(
56
57
 
57
58
  if __name__ == "__main__":
58
59
  # Example usage
59
- proc = run_fastapi_server_proces(port=8000)
60
+ proc = run_fastapi_server_process(port=8000)
60
61
  proc.join()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastled
3
- Version: 1.2.59
3
+ Version: 1.2.61
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -22,6 +22,7 @@ Requires-Dist: progress>=1.6
22
22
  Requires-Dist: fastapi>=0.115.12
23
23
  Requires-Dist: uvicorn>=0.34.2
24
24
  Requires-Dist: pywebview>=5.4
25
+ Requires-Dist: watchfiles>=1.0.5
25
26
  Dynamic: home-page
26
27
  Dynamic: license-file
27
28
  Dynamic: maintainer
@@ -10,3 +10,4 @@ progress>=1.6
10
10
  fastapi>=0.115.12
11
11
  uvicorn>=0.34.2
12
12
  pywebview>=5.4
13
+ watchfiles>=1.0.5
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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes