MCPcopy
hub / github.com/reflex-dev/reflex / get

Method get

tests/integration/utils.py:273–284  ·  view source on GitHub ↗

Get a key from local storage. Args: key: The key to get. Returns: The value of the key.

(self, key)

Source from the content-addressed store, hash-verified

271 )
272
273 def get(self, key) -> str:
274 """Get a key from local storage.
275
276 Args:
277 key: The key to get.
278
279 Returns:
280 The value of the key.
281 """
282 return self.driver.execute_script(
283 f"return window.{self.storage_key}.getItem(arguments[0]);", key
284 )
285
286 def set(self, key, value) -> None:
287 """Set a key in local storage.

Callers 15

__getitem__Method · 0.95
_workspace_package_dirsFunction · 0.45
_published_dependenciesFunction · 0.45
discover_packagesFunction · 0.45
_pyright_errorsFunction · 0.45
check_dev_pinsFunction · 0.45
mainFunction · 0.45
get_latest_node_versionFunction · 0.45
should_run_lighthouseFunction · 0.45
get_lighthouse_commandFunction · 0.45
get_chrome_pathFunction · 0.45

Calls

no outgoing calls

Tested by 15

get_latest_node_versionFunction · 0.36
assert_tokenFunction · 0.36
test_deploy_urlFunction · 0.36
handle_upload_streamMethod · 0.36
_read_compile_eventsFunction · 0.36
_assert_tokenFunction · 0.36
test_connection_bannerFunction · 0.36
test_content_negotiationFunction · 0.36
img_from_urlMethod · 0.36
on_load_link_defaultMethod · 0.36
test_linked_stateFunction · 0.36