Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-04-05 13:30:47 -07:00
parent df9083c3e2
commit 79b977a55a
5 changed files with 630 additions and 618 deletions

View File

@ -154,10 +154,19 @@ class WebSocket:
self.ws = sync(
{% for arg in args %}
{% if arg.in_query %}
{% if arg.is_optional == False %}
{{arg.name}},
{% endif %}
{% endif %}
{% endfor %}
client=client,
{% for arg in args %}
{% if arg.in_query %}
{% if arg.is_optional %}
{{arg.name}}={{arg.name}},
{% endif %}
{% endif %}
{% endfor %}
)
def __enter__(self,

File diff suppressed because it is too large Load Diff

View File

@ -161,13 +161,13 @@ class WebSocket:
):
self.ws = sync(
fps,
pool,
post_effect,
unlocked_framerate,
video_res_height,
video_res_width,
webrtc,
client=client,
pool=pool,
)
def __enter__(

View File

@ -39,6 +39,7 @@ from .models import (
ModelingCmd,
ModelingCmdId,
Pong,
PostEffectType,
System,
TextToCad,
TextToCadCreateBody,
@ -356,6 +357,7 @@ def test_ws_simple():
with modeling_commands_ws.WebSocket(
client=client,
fps=30,
post_effect=PostEffectType.NOEFFECT,
unlocked_framerate=False,
video_res_height=360,
video_res_width=480,
@ -383,6 +385,7 @@ def test_ws_import():
with modeling_commands_ws.WebSocket(
client=client,
fps=30,
post_effect=PostEffectType.NOEFFECT,
unlocked_framerate=False,
video_res_height=360,
video_res_width=480,

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "kittycad"
version = "0.6.9"
version = "0.6.10"
description = "A client library for accessing KittyCAD"
authors = []