File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ from pyarrow.lib cimport _Weakrefable
3030from pyarrow.lib import tobytes, frombytes
3131from pyarrow._fs cimport FileSystem
3232from pyarrow.fs import _resolve_filesystem_and_path
33- import json
3433
3534cdef ParquetCipher cipher_from_name(name):
3635 name = name.upper()
@@ -659,6 +658,23 @@ cdef class FileSystemKeyMaterialStore(_Weakrefable):
659658 @classmethod
660659 def for_file (cls , parquet_file_path ,
661660 FileSystem filesystem = None ):
661+ """ Creates a FileSystemKeyMaterialStore for a parquet file that
662+ was created with external key material.
663+
664+ Parameters
665+ ----------
666+ parquet_file_path : str or pathlib.Path
667+ Path to a parquet file using external key material.
668+
669+ filesystem : FileSystem, default None
670+ FileSystem where the parquet file is located. If nothinng passed,
671+ will be inferred based on parquet_file_path.
672+
673+ Returns
674+ -------
675+ FileSystemKeyMaterialStore
676+ A FileSystemKeyMaterialStore wrapping the external key material.
677+ """
662678 cdef:
663679 c_string c_parquet_file_path
664680 shared_ptr[CFileSystem] c_filesystem
You can’t perform that action at this time.
0 commit comments