parq_tools.utils.file_utils.check_valid_parquet
- parq_tools.utils.file_utils.check_valid_parquet(path)[source]
Return
Trueif 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:
Trueif the file can be opened as a Parquet file, otherwiseFalse.- Return type:
bool