parq_tools.utils.file_utils.check_valid_parquet

parq_tools.utils.file_utils.check_valid_parquet(path)[source]

Return True if the given path points to a readable Parquet file.

Validation is based on file content via PyArrow rather than filename extension, so files with non-standard suffixes are accepted as long as their contents are valid Parquet.

Parameters:

path (str | Path) – Path to the file to validate.

Returns:

True if the file can be opened as a Parquet file, otherwise False.

Return type:

bool