A tool to generate Din A5 Chess-Scoresheets (PDF & JPG) from PGN-files.
Project description
🧾 Chess Scoresheet Generator
A simple Python tool for generating professional multi-page DIN A5 chess scoresheets from PGN files — Supports CLI and GUI usage customizable branding and club-ready PDF output.
🔧 Features
- Processes PGN files with one or multiple games
- Creates a clean, multi-column PDF scoresheet for each game
- Optional JPG export for each page
- ZIP export of all PDFs/JPGs
- Supports very long Games (unlimited move numbers)
- Displays player names, date, event, and Elo ratings (if available)
- Includes a progress bar using
tqdmfor smooth CLI feedback - DIN A5 layout (148 × 210 mm) for compact printing
- Optional logo/branding in the top-right corner (e.g. club logo)
- Graceful fallback for missing PGN tags or logo
- Logo top left corner (Optional)
- Footline for email and weblink
- Supports CLI and GUI usage
- Can be installed dierectly from PyPI
- included is a pgn file with 128 German Bundesliga games for testing
📦 The Program can be installed directly from PyPI:
pip install chess-scoresheet-generator
you than can start from cli with scoresheet-generator or scoresheet-gui
📦 Alternative way to install:
- Install Python 3.8 or higher
- (Windows only) Install Poppler:
- Download from Poppler for Windows
- Extract and note the path to the
poppler/binfolder
- Install dependencies: bash pip install -r requirements.txt
- If a logo is wanted, place a file named logo.png in the same directory. Recommended: square, transparent PNG, approx. 100×100 px.
📁 Output:
For each game in the PGN file, the tool generates:
• White_vs_Black_GameX.pdf • White_vs_Black_GameX_page_1.jpg, page_2.jpg, …
💻Examples how to use
python scoresheet -h for help
python scoresheet_generator.py game1.pgn game2.pgn
python scoresheet_generator.py *.pgn
pyton scoresheet_generator.py games.pgn --jpg Enable JPG export (disabled by default)
python scoresheet_generator.py games.pgn --outdir scoresheets
For testing files with single and multiple games three example.pgn files are included.
JPG conversion takes some time, it must be enabled with the --jpg flag or using the GUI.
🧠 Notes
• Elo ratings are shown only if present in the PGN headers (WhiteElo, BlackElo) • Layout is optimized for DIN A5 — ideal for printing or digital archiving • JPG export uses pdf2image and requires Poppler
🛠️ To-Do / Ideas
[ ] Opening detection (ECO code) [ ] Support for landscape or DIN A4
📜 License
Open Source – MIT LicenseFree to use for clubs, tournaments, and personal archives.
Example Scoresheet (JPG)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chess_scoresheet_generator-0.2.3.tar.gz.
File metadata
- Download URL: chess_scoresheet_generator-0.2.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848448c2dc7cdcd13e50a02077bf0abdc9428aef2a7a83732c15a5c48cd530ac
|
|
| MD5 |
8cb8c5a249966e27bb3538a0ce80556b
|
|
| BLAKE2b-256 |
83650a4f4c713c2539a4971d83c66309b16f56d268dea50cdb67f51f83ab2a5a
|
File details
Details for the file chess_scoresheet_generator-0.2.3-py3-none-any.whl.
File metadata
- Download URL: chess_scoresheet_generator-0.2.3-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
802b9cb41cefbba64d867ad7b7cedd23ceae0d80c9d3ac0034fff1390215ad37
|
|
| MD5 |
5af79c8ca56afe08792c0e39cb16ce06
|
|
| BLAKE2b-256 |
2268da7077a42d5864c1d30a6771055f877ddb5e8b8455bf75ad1e372dd012e9
|