Method
exec
(
self,
command: Sequence[str],
*,
stream_output: bool = False,
workdir: str | None = None,
env: Mapping[str, str] | None = None,
stdin: bytes | None = None,
timeout_seconds: int | None = None,
)
Source from the content-addressed store, hash-verified
| 172 | return self.sandbox.id |
| 173 | |
| 174 | def exec( |
| 175 | self, |
| 176 | command: Sequence[str], |
| 177 | *, |
| 178 | stream_output: bool = False, |
| 179 | workdir: str | None = None, |
| 180 | env: Mapping[str, str] | None = None, |
| 181 | stdin: bytes | None = None, |
| 182 | timeout_seconds: int | None = None, |
| 183 | ) -> ExecResult: |
| 184 | return self._client.exec( |
| 185 | self.sandbox.id, |
| 186 | command, |
| 187 | stream_output=stream_output, |
| 188 | workdir=workdir, |
| 189 | env=env, |
| 190 | stdin=stdin, |
| 191 | timeout_seconds=timeout_seconds, |
| 192 | ) |
| 193 | |
| 194 | def exec_python( |
| 195 | self, |
Callers
nothing calls this directly
Tested by
no test coverage detected