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( 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

View File

@ -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__(

View File

@ -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,

View File

@ -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 = []