PickleParquetReader is a lightweight, secure utility for seamlessly viewing Python .pkl (pickle) and .parquet data files in Microsoft Excel (or your system's default CSV viewer). It operates by performing a memory-safe conversion to temporary CSV files.
- Python 3.10+
- Git installed on your system
- Microsoft Excel (or another default CSV reader)
- Required Python packages:
- Requirements:
pip install pandas pyarrow
-
Clone the repository:
git clone https://github.com/vikassharma545/PickleParquetReader.git "C:/Program Files/PickleParquetReader"Note: clone into "C:/Program Files", you may need to run the command with administrative privileges due to permission restrictions on Windows.
To automatically open .pkl and .parquet files with PickleParquetReader, set up Windows file associations:
- Locate a
.pklor.parquetfile on your computer. - Right-click the file and select "Open with" > "Choose another app."
- In the dialog box, select "More apps" if necessary, then choose "Look for another app on this PC."
- Navigate to the location of
PickleParquetReader.bat. For example:- If you cloned the repository to
C:\Program Files\PickleParquetReader, the batch file is atC:\Program Files\PickleParquetReader\PickleParquetReader.bat.
- If you cloned the repository to
- Select the batch file and check the box that says "Always use this app to open .pkl files" (or
.parquetfiles, depending on the file you selected). - Click "OK" to set the association.
- Repeat the process for the other file type (
.parquetif you started with.pkl, and vice versa).
After completing these steps, double-clicking a .pkl or .parquet file will launch PickleParquetReader.bat, which will open the file in Excel.