MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_active_context

Method get_active_context

network_storage.py:31–35  ·  view source on GitHub ↗

Return context for the currently active network.

(self)

Source from the content-addressed store, hash-verified

29 # Public API
30 # ------------------------------------------------------------------
31 def get_active_context(self) -> Dict[str, str]:
32 """Return context for the currently active network."""
33 if self.active_slug is None:
34 self.activate_network(self.default_ssid)
35 return self._build_context(self.active_ssid, self.active_slug or '')
36
37 def activate_network(self, ssid: Optional[str]) -> Dict[str, str]:
38 """Activate storage for the provided SSID (None => default)."""

Callers 1

__init__Method · 0.80

Calls 2

activate_networkMethod · 0.95
_build_contextMethod · 0.95

Tested by

no test coverage detected