MCPcopy
hub / github.com/pandas-dev/pandas / get_handle

Function get_handle

pandas/io/common.py:660–670  ·  view source on GitHub ↗
(
    path_or_buf: FilePath | BaseBuffer,
    mode: str,
    *,
    encoding: str | None = ...,
    compression: CompressionOptions = ...,
    memory_map: bool = ...,
    is_text: Literal[False],
    errors: str | None = ...,
    storage_options: StorageOptions = ...,
)

Source from the content-addressed store, hash-verified

658
659@overload
660def get_handle(
661 path_or_buf: FilePath | BaseBuffer,
662 mode: str,
663 *,
664 encoding: str | None = ...,
665 compression: CompressionOptions = ...,
666 memory_map: bool = ...,
667 is_text: Literal[False],
668 errors: str | None = ...,
669 storage_options: StorageOptions = ...,
670) -> IOHandles[bytes]: ...
671
672
673@overload

Callers 15

decompress_fileFunction · 0.90
to_markdownMethod · 0.90
to_featherFunction · 0.90
read_featherFunction · 0.90
get_data_from_filepathFunction · 0.90
_readFunction · 0.90
_build_docMethod · 0.90
read_orcFunction · 0.90
to_orcFunction · 0.90
_get_path_or_handleFunction · 0.90
readMethod · 0.90
to_pickleFunction · 0.90

Calls 14

_is_binary_modeFunction · 0.85
_get_filepath_or_bufferFunction · 0.85
_maybe_memory_mapFunction · 0.85
check_parent_directoryFunction · 0.85
_BytesZipFileClass · 0.85
_BytesTarFileClass · 0.85
_BytesIOWrapperClass · 0.85
_IOWrapperClass · 0.85
IOHandlesClass · 0.85
popMethod · 0.45
replaceMethod · 0.45

Tested by 5

test_compression_outputFunction · 0.72
read_xml_iterparse_compFunction · 0.72