MCPcopy Index your code
hub / github.com/microsoft/playwright-python / copy

Method copy

playwright/_impl/_writable_stream.py:33–42  ·  view source on GitHub ↗
(self, path: Union[str, Path])

Source from the content-addressed store, hash-verified

31 super().__init__(parent, type, guid, initializer)
32
33 async def copy(self, path: Union[str, Path]) -> None:
34 with open(path, "rb") as f:
35 while True:
36 data = f.read(COPY_BUFSIZE)
37 if not data:
38 break
39 await self._channel.send(
40 "write", None, {"binary": base64.b64encode(data).decode()}
41 )
42 await self._channel.send("close", None)

Callers 14

_build_wheelMethod · 0.80
_on_routeMethod · 0.80
pagesMethod · 0.80
child_framesMethod · 0.80
_on_routeMethod · 0.80
framesMethod · 0.80
workersMethod · 0.80
convert_input_filesFunction · 0.80
get_driver_envFunction · 0.80
onOpenMethod · 0.80
test_installFunction · 0.80

Calls 1

sendMethod · 0.45

Tested by 3

test_installFunction · 0.64
adjust_server_headersFunction · 0.64