MCPcopy Create free account
hub / github.com/NoEdgeAI/doc2x-doc / put_file

Function put_file

Python/requests/pdf2file.py:21–24  ·  view source on GitHub ↗
(path: str, url: str)

Source from the content-addressed store, hash-verified

19
20
21def put_file(path: str, url: str):
22 with open(path, "rb") as f:
23 res = rq.put(url, data=f) # body为文件二进制流
24 res.raise_for_status() # 检查HTTP请求是否成功
25
26
27def get_status(uid: str):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected