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

Method get_expressions

src/gui_controller.py:35–42  ·  view source on GitHub ↗

Get available expressions from the puppet.

(self)

Source from the content-addressed store, hash-verified

33 self._connected = False
34 return False
35
36 def get_expressions(self):
37 """Get available expressions from the puppet."""
38 try:
39 response = requests.get(f"{self.base_url}/expressions", timeout=2)
40 response.raise_for_status()
41 return response.json()
42 except requests.RequestException:
43 return []
44
45 def set_expression(self, expression):

Callers 1

_load_expressionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected