MCPcopy Create free account
hub / github.com/modelscope/modelscope / read_text

Method read_text

modelscope/fileio/file.py:133–136  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

131 return r.content
132
133 def read_text(self, url):
134 r = requests.get(url)
135 r.raise_for_status()
136 return r.text
137
138 @contextlib.contextmanager
139 def as_local_path(

Callers 1

test_http_storageMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 1

test_http_storageMethod · 0.76