pyarrow.fs.FSSpecHandler

class pyarrow.fs.FSSpecHandler(fs)[source]

Bases: pyarrow._fs.FileSystemHandler

Handler for fsspec-based Python filesystems.

https://filesystem-spec.readthedocs.io/en/latest/index.html

>>> PyFileSystem(FSSpecHandler(fsspec_fs))
__init__(fs)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(fs)

Initialize self.

copy_file(src, dest)

Implement PyFileSystem.copy_file(…).

create_dir(path, recursive)

Implement PyFileSystem.create_dir(…).

delete_dir(path)

Implement PyFileSystem.delete_dir(…).

delete_dir_contents(path)

Implement PyFileSystem.delete_dir_contents(…).

delete_file(path)

Implement PyFileSystem.delete_file(…).

delete_root_dir_contents()

Implement PyFileSystem.delete_dir_contents(“/”, accept_root_dir=True).

get_file_info(paths)

Implement PyFileSystem.get_file_info(paths).

get_file_info_selector(selector)

Implement PyFileSystem.get_file_info(selector).

get_type_name()

Implement PyFileSystem.type_name.

move(src, dest)

Implement PyFileSystem.move(…).

normalize_path(path)

Implement PyFileSystem.normalize_path(…).

open_append_stream(path)

Implement PyFileSystem.open_append_stream(…).

open_input_file(path)

Implement PyFileSystem.open_input_file(…).

open_input_stream(path)

Implement PyFileSystem.open_input_stream(…).

open_output_stream(path)

Implement PyFileSystem.open_output_stream(…).

copy_file(src, dest)[source]

Implement PyFileSystem.copy_file(…).

create_dir(path, recursive)[source]

Implement PyFileSystem.create_dir(…).

delete_dir(path)[source]

Implement PyFileSystem.delete_dir(…).

delete_dir_contents(path)[source]

Implement PyFileSystem.delete_dir_contents(…).

delete_file(path)[source]

Implement PyFileSystem.delete_file(…).

delete_root_dir_contents()[source]

Implement PyFileSystem.delete_dir_contents(“/”, accept_root_dir=True).

get_file_info(paths)[source]

Implement PyFileSystem.get_file_info(paths).

get_file_info_selector(selector)[source]

Implement PyFileSystem.get_file_info(selector).

get_type_name()[source]

Implement PyFileSystem.type_name.

move(src, dest)[source]

Implement PyFileSystem.move(…).

normalize_path(path)[source]

Implement PyFileSystem.normalize_path(…).

open_append_stream(path)[source]

Implement PyFileSystem.open_append_stream(…).

open_input_file(path)[source]

Implement PyFileSystem.open_input_file(…).

open_input_stream(path)[source]

Implement PyFileSystem.open_input_stream(…).

open_output_stream(path)[source]

Implement PyFileSystem.open_output_stream(…).