pgn-to-gif
Generate GIFs of chess games from PGN files.
Installation
pip3 install pgn-to-gif
Usage
usage: pgn-to-gif [-h] --pgn-path PGN_PATH --gif-path GIF_PATH [--add-initial-position {1,t,true,0,f,false}] [--highlight-last-move {1,t,true,0,f,false}] [--orientation {white,black}]
[--size SIZE] [--coordinates {1,t,true,0,f,false}] [--css-path CSS_PATH] [--loop LOOP] [--duration DURATION] [--fps FPS] [--palettesize PALETTESIZE]
[--subrectangles {1,t,true,0,f,false}] [--processes PROCESSES]
optional arguments:
-h, --help show this help message and exit
--pgn-path PGN_PATH path to pgn file to read (default: None)
--gif-path GIF_PATH path to gif file to save (default: None)
--add-initial-position {1,t,true,0,f,false}
add initial position to gif (default: true)
--highlight-last-move {1,t,true,0,f,false}
highlight last move on board (default: true)
--orientation {white,black}
orientation of board (default: white)
--size SIZE size of board (default: 400)
--coordinates {1,t,true,0,f,false}
add board coordinates (default: true)
--css-path CSS_PATH path to css file to style board (default: None)
--loop LOOP number of loops for gif, 0 means infinite (default: 0)
--duration DURATION duration of each frame (in seconds) in gif (default: 1.0)
--fps FPS frame per second of gif (default: 1.0)
--palettesize PALETTESIZE
number of colors to quantize images to (default: 64)
--subrectangles {1,t,true,0,f,false}
optimize gif by storing change (default: true)
--processes PROCESSES
number of processes when converting svgs to pngs (default: 1)
Examples
Please see examples folder.
Metadata
Release files for pgn-to-gif 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pgn_to_gif-0.0.3.tar.gz | 5.2 kB | Without provenance | Details for pgn_to_gif-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pgn_to_gif-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pgn_to_gif-0.0.3-py3-none-any.whl |
Total release size: 11.9 kB
Release files / pgn_to_gif-0.0.3.tar.gz
| Download URL | pgn_to_gif-0.0.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37c66393ee232f02ef71a0c0c407b3d879a163c75a2306092bcf46fbd92b4dfa
|
|
BLAKE2b-256 checksum How to use checksums |
844dcbd28f2305a722d9af1d40578713d7553c678b8492ca6d5190327c2ae23d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
|
Release files / pgn_to_gif-0.0.3-py3-none-any.whl
| Download URL | pgn_to_gif-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18e3a76258ade3799922fbbb107c5fcb7222953aa75946763cc7396457d29cd8
|
|
BLAKE2b-256 checksum How to use checksums |
d98bcae4e13f45a6dd35941636d4c8740b9eda6c2abd3ba606e3be5f6a9ff1ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
|
Security for pgn-to-gif 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.