MCPcopy Create free account
hub / github.com/apache/arrow / _download_urllib

Function _download_urllib

python/pyarrow/util.py:233–238  ·  view source on GitHub ↗
(url, out_path)

Source from the content-addressed store, hash-verified

231
232
233def _download_urllib(url, out_path):
234 from urllib.request import urlopen, Request
235 req = Request(url, headers={'User-Agent': 'pyarrow'})
236 with urlopen(req) as response:
237 with open(out_path, 'wb') as f:
238 f.write(response.read())
239
240
241def _download_requests(url, out_path):

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected