MCPcopy Index your code
hub / github.com/shroominic/codeinterpreter-api / save

Method save

src/codeinterpreterapi/schema.py:40–44  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

38 return cls(name=url.split("/")[-1], content=await r.read())
39
40 def save(self, path: str) -> None:
41 if not path.startswith("/"):
42 path = f"./{path}"
43 with open(path, "wb") as f:
44 f.write(self.content)
45
46 async def asave(self, path: str) -> None:
47 await asyncio.to_thread(self.save, path)

Callers 2

convert_file.pyFile · 0.80
get_imagesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected