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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected