MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / set_expression

Method set_expression

src/gui_controller.py:44–55  ·  view source on GitHub ↗

Set an expression on the puppet.

(self, expression)

Source from the content-addressed store, hash-verified

42 except requests.RequestException:
43 return []
44
45 def set_expression(self, expression):
46 """Set an expression on the puppet."""
47 try:
48 response = requests.post(
49 f"{self.base_url}/expression",
50 json={"expression": expression},
51 timeout=2
52 )
53 response.raise_for_status()
54 return True
55 except requests.RequestException:
56 return False
57
58 def get_motions(self):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected