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

Method open_input_stream

python/pyarrow/fs.py:404–410  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

402 # TODO can we read/pass metadata (e.g. Content-Type) in the methods below?
403
404 def open_input_stream(self, path):
405 from pyarrow import PythonFile
406
407 if not self.fs.isfile(path):
408 raise FileNotFoundError(path)
409
410 return PythonFile(self.fs.open(path, mode="rb"), mode="r")
411
412 def open_input_file(self, path):
413 from pyarrow import PythonFile

Callers 2

read_fileMethod · 0.45

Calls 2

PythonFileClass · 0.90
openMethod · 0.45

Tested by 2

read_fileMethod · 0.36