MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / __init__

Method __init__

bmtools/tools/python/api.py:13–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11class PythonREPL:
12 """Simulates a standalone Python REPL."""
13 def __init__(self) -> None:
14 self.globals: Optional[Dict] = globals()
15 self.locals: Optional[Dict] = None
16
17 def run(self, command: str) -> str:
18 """Run command with own globals/locals and returns anything printed."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected