MCPcopy Create free account
hub / github.com/pallets/quart / load

Method load

src/quart/datastructures.py:39–46  ·  view source on GitHub ↗
(self, source: PathLike, buffer_size: int = 16384)

Source from the content-addressed store, hash-verified

37 data = self.stream.read(buffer_size)
38
39 async def load(self, source: PathLike, buffer_size: int = 16384) -> None:
40 path = Path(source)
41 self.filename = path.name
42 async with async_open(path, "rb") as file_:
43 data = await file_.read(buffer_size)
44 while data != b"":
45 self.stream.write(data)
46 data = await file_.read(buffer_size)

Callers 3

_load_plugin_commandsMethod · 0.80
loadFunction · 0.80

Calls

no outgoing calls