MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / list

Method list

python/openshell/sandbox.py:428–433  ·  view source on GitHub ↗
(self, *, limit: int = 100, offset: int = 0)

Source from the content-addressed store, hash-verified

426 return SandboxSession(self, self.get(sandbox_name))
427
428 def list(self, *, limit: int = 100, offset: int = 0) -> builtins.list[SandboxRef]:
429 response = self._stub.ListSandboxes(
430 openshell_pb2.ListSandboxesRequest(limit=limit, offset=offset),
431 timeout=self._timeout,
432 )
433 return [_sandbox_ref(item) for item in response.sandboxes]
434
435 def list_ids(self, *, limit: int = 100, offset: int = 0) -> builtins.list[str]:
436 return [item.id for item in self.list(limit=limit, offset=offset)]

Callers 1

list_idsMethod · 0.95

Calls 1

_sandbox_refFunction · 0.85

Tested by

no test coverage detected