Skip to content

Commit 92c510f

Browse files
committed
removed unused json import from _parquet_encryption.pyx
1 parent 3c3e85e commit 92c510f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

python/pyarrow/_parquet_encryption.pyx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ from pyarrow.lib cimport _Weakrefable
3030
from pyarrow.lib import tobytes, frombytes
3131
from pyarrow._fs cimport FileSystem
3232
from pyarrow.fs import _resolve_filesystem_and_path
33-
import json
3433

3534
cdef 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

0 commit comments

Comments
 (0)