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

Method get_motions

src/gui_controller.py:57–64  ·  view source on GitHub ↗

Get available motions from the puppet.

(self)

Source from the content-addressed store, hash-verified

55 return False
56
57 def get_motions(self):
58 """Get available motions from the puppet."""
59 try:
60 response = requests.get(f"{self.base_url}/motions", timeout=2)
61 response.raise_for_status()
62 return response.json()
63 except requests.RequestException:
64 return {}
65
66 def set_motion(self, motion):
67 """Set a motion on the puppet."""

Callers 1

_load_motionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected