@ -154,10 +154,19 @@ class WebSocket:
|
|||||||
self.ws = sync(
|
self.ws = sync(
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
{% if arg.in_query %}
|
{% if arg.in_query %}
|
||||||
|
{% if arg.is_optional == False %}
|
||||||
{{arg.name}},
|
{{arg.name}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
client=client,
|
client=client,
|
||||||
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
|
{% if arg.is_optional %}
|
||||||
|
{{arg.name}}={{arg.name}},
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
)
|
)
|
||||||
|
|
||||||
def __enter__(self,
|
def __enter__(self,
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -161,13 +161,13 @@ class WebSocket:
|
|||||||
):
|
):
|
||||||
self.ws = sync(
|
self.ws = sync(
|
||||||
fps,
|
fps,
|
||||||
pool,
|
|
||||||
post_effect,
|
post_effect,
|
||||||
unlocked_framerate,
|
unlocked_framerate,
|
||||||
video_res_height,
|
video_res_height,
|
||||||
video_res_width,
|
video_res_width,
|
||||||
webrtc,
|
webrtc,
|
||||||
client=client,
|
client=client,
|
||||||
|
pool=pool,
|
||||||
)
|
)
|
||||||
|
|
||||||
def __enter__(
|
def __enter__(
|
||||||
|
@ -39,6 +39,7 @@ from .models import (
|
|||||||
ModelingCmd,
|
ModelingCmd,
|
||||||
ModelingCmdId,
|
ModelingCmdId,
|
||||||
Pong,
|
Pong,
|
||||||
|
PostEffectType,
|
||||||
System,
|
System,
|
||||||
TextToCad,
|
TextToCad,
|
||||||
TextToCadCreateBody,
|
TextToCadCreateBody,
|
||||||
@ -356,6 +357,7 @@ def test_ws_simple():
|
|||||||
with modeling_commands_ws.WebSocket(
|
with modeling_commands_ws.WebSocket(
|
||||||
client=client,
|
client=client,
|
||||||
fps=30,
|
fps=30,
|
||||||
|
post_effect=PostEffectType.NOEFFECT,
|
||||||
unlocked_framerate=False,
|
unlocked_framerate=False,
|
||||||
video_res_height=360,
|
video_res_height=360,
|
||||||
video_res_width=480,
|
video_res_width=480,
|
||||||
@ -383,6 +385,7 @@ def test_ws_import():
|
|||||||
with modeling_commands_ws.WebSocket(
|
with modeling_commands_ws.WebSocket(
|
||||||
client=client,
|
client=client,
|
||||||
fps=30,
|
fps=30,
|
||||||
|
post_effect=PostEffectType.NOEFFECT,
|
||||||
unlocked_framerate=False,
|
unlocked_framerate=False,
|
||||||
video_res_height=360,
|
video_res_height=360,
|
||||||
video_res_width=480,
|
video_res_width=480,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.6.9"
|
version = "0.6.10"
|
||||||
description = "A client library for accessing KittyCAD"
|
description = "A client library for accessing KittyCAD"
|
||||||
|
|
||||||
authors = []
|
authors = []
|
||||||
|
Reference in New Issue
Block a user