This Python script allows you to decompress Zstandard (Zstd) compressed PGN files.
This project provides a Python script to decompress large Zstd-compressed PGN files. It utilizes the Zstandard compression library and can be run from the command line. Works on databases from lichess.org, chess.com and many others. Max file size: 1gb. NOTE: Uncompressed files are around 5-6 thimes the compressed file. Make sure you have enough space accordingly.
- Python 3.x
- Zstandard library (install with
pip install zstandard
)
-
Clone the repository or download the script.
-
Ensure Python and the Zstandard library are installed on your system. Use
pip install -r requirements.txt
to install if needed. -
Open a terminal or command prompt and navigate to the directory containing the script.
-
In the script replace : Input_file and Output_file paths with your desired paths
-
Run the script with the following command:
python unzipper.py