fastled 1.2.36__py3-none-any.whl → 1.2.38__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 CHANGED
@@ -16,7 +16,7 @@ from .types import BuildMode, CompileResult, CompileServerError
16
16
  # IMPORTANT! There's a bug in github which will REJECT any version update
17
17
  # that has any other change in the repo. Please bump the version as the
18
18
  # ONLY change in a commit, or else the pypi update and the release will fail.
19
- __version__ = "1.2.36"
19
+ __version__ = "1.2.38"
20
20
 
21
21
 
22
22
  class Api:
@@ -157,10 +157,10 @@ class Docker:
157
157
  docker_mgr.purge(image_name=IMAGE_NAME)
158
158
 
159
159
  @staticmethod
160
- def build_from_github(
160
+ def spawn_server_from_github(
161
161
  url: str = "https://github.com/fastled/fastled",
162
162
  output_dir: Path | str = Path(".cache/fastled"),
163
- ) -> str:
163
+ ) -> CompileServer:
164
164
  """Build the FastLED WASM compiler Docker image from a GitHub repository.
165
165
 
166
166
  Args:
@@ -252,21 +252,32 @@ class Docker:
252
252
  platform_tag=platform_tag,
253
253
  )
254
254
 
255
- # Run the container and return it
256
- container = docker_mgr.run_container_detached(
257
- image_name=IMAGE_NAME,
258
- tag="main",
255
+ # # Run the container and return it
256
+ # container = docker_mgr.run_container_detached(
257
+ # image_name=IMAGE_NAME,
258
+ # tag="main",
259
+ # container_name=CONTAINER_NAME,
260
+ # command=None, # Use default command from Dockerfile
261
+ # volumes=None, # No volumes needed for build
262
+ # ports=None, # No ports needed for build
263
+ # remove_previous=True, # Remove any existing container
264
+ # )
265
+ # name = container.name
266
+ # container.stop()
267
+
268
+ out: CompileServer = CompileServer(
259
269
  container_name=CONTAINER_NAME,
260
- command=None, # Use default command from Dockerfile
261
- volumes=None, # No volumes needed for build
262
- ports=None, # No ports needed for build
263
- remove_previous=True, # Remove any existing container
270
+ interactive=False,
271
+ auto_updates=False,
272
+ mapped_dir=None,
273
+ auto_start=True,
274
+ remove_previous=True,
264
275
  )
265
276
 
266
- return container.name # Todo, create an external docker container api.
277
+ return out
267
278
 
268
279
  @staticmethod
269
- def build_from_fastled_repo(
280
+ def spawn_server_from_fastled_repo(
270
281
  project_root: Path | str = Path("."),
271
282
  interactive: bool = False,
272
283
  sketch_folder: Path | None = None,
fastled/app.py CHANGED
@@ -66,7 +66,7 @@ def main() -> int:
66
66
  print(f"Building Docker image at {project_root}")
67
67
  from fastled import Api, Docker
68
68
 
69
- server = Docker.build_from_fastled_repo(
69
+ server = Docker.spawn_server_from_fastled_repo(
70
70
  project_root=project_root, interactive=interactive
71
71
  )
72
72
  assert isinstance(server, CompileServer)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.36
3
+ Version: 1.2.38
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -211,7 +211,7 @@ with Api.server() as server:
211
211
  **Build Docker Image from a local copy of the FastLED repo**
212
212
  ```python
213
213
  from fastapi import Docker, Api
214
- container_name: str = Docker.build_from_fastled_repo()
214
+ container_name: str = Docker.spawn_server_from_fastled_repo()
215
215
  with Api.server(container_name=container_name) as server:
216
216
  ...
217
217
  ```
@@ -1,5 +1,5 @@
1
- fastled/__init__.py,sha256=2XDYVOA0DwalWdmxeMjhEz7F06jE8DlASiAKj3fjqkQ,12740
2
- fastled/app.py,sha256=wJvrKVsifl9IzCpHgBrMnMsSQAlIz1-oBa_WsCMhaII,3689
1
+ fastled/__init__.py,sha256=EMGIHk8k4c_BU_-hXMaPDntdxPyOQYPIh8jBsBIMwVs,13035
2
+ fastled/app.py,sha256=dnbDSVpn7_wB3JZl-JAIROYbmmy0-K1RTyi7CaktKsc,3696
3
3
  fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
4
4
  fastled/client_server.py,sha256=Q_-ALIbp474gY1zkYHoaU36eVSIa87nRcSB6IZOoaCg,14315
5
5
  fastled/compile_server.py,sha256=ul3eiZNX2wwmInooo3PJC3_kNpdejYVDIo94G3sV9HQ,2941
@@ -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=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
28
- fastled-1.2.36.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
29
- fastled-1.2.36.dist-info/METADATA,sha256=VKfZBtXi9D0iA1RNF0Wc-umimRZLVUIqirIr0uY79_0,21254
30
- fastled-1.2.36.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
31
- fastled-1.2.36.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
32
- fastled-1.2.36.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
33
- fastled-1.2.36.dist-info/RECORD,,
28
+ fastled-1.2.38.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
29
+ fastled-1.2.38.dist-info/METADATA,sha256=K3BK-FQqkndHCj34Xbr4l09USCoyqlyY2FpExknvFEA,21261
30
+ fastled-1.2.38.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
31
+ fastled-1.2.38.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
32
+ fastled-1.2.38.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
33
+ fastled-1.2.38.dist-info/RECORD,,