Creates GIFs from PGNs
Project description
Pgn2gif
Create GIFs from PGNs
Usage
Run ./pgn2gif with the following options:
Usage: pgn2gif [OPTIONS] COMMAND [ARGS]...
Create GIFs from PGNs
Options:
-p, --path TEXT path to the pgn file/folder
-s, --speed FLOAT speed with which pieces move in gif.
-o, --out TEXT name of the output folder
-si, --size INTEGER size of the gif
-c, --color [green|blue|brown] color of chess board
-g, --game-index INTEGER index of the game for which gif is to be
made
--all-games make gif of all the games found in a PGN
--help Show help screen.
Commands:
chess_com Get games played on chess.com
lichess Get games played on lichess
You can also run ./pgn2gif without any external options and in that case ./pgn2gif will run on the following default values:
* path current working directory
* speed 0.5
* out folder name `gifs` in current working directory
* size 480 X 480
* color Brown
* game-index 1st
Examples
./pgn2gif
./pgn2gif -c blue
./pgn2gif -c green
./pgn2gif -p /home/mzfr/dev/mzfr.pgn
./pgn2gif -p /home/mzfr/dev/mzfr-1.pgn -s 0.2
./pgn2gif -si 600 -s 0.1
./pgn2gif -si 680
Installation
-
You'll need Python3.
-
Clone the repository
git clone https://github.com/mzfr/pgn2gif
- Run
pip install -r requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pgn2gif-1.0.tar.gz
(5.6 kB
view details)
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
pgn2gif-1.0-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file pgn2gif-1.0.tar.gz.
File metadata
- Download URL: pgn2gif-1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc826905d995f2267054d73b49a46a8e8bb1344865964c25adad4f77dd5155ed
|
|
| MD5 |
4442533f016e470e2fe40b25782a3638
|
|
| BLAKE2b-256 |
3fd41a7a053e4d0f3f491ce3ae8bc9c698396b7233d0d589a418c0aa2fc38b95
|
File details
Details for the file pgn2gif-1.0-py3-none-any.whl.
File metadata
- Download URL: pgn2gif-1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b10c1dc4512e3e2a68d29183a12347f27d90704415aacbffe0f82c22e47d05
|
|
| MD5 |
92debba16be2949b09c1c117443d1b35
|
|
| BLAKE2b-256 |
9356cf0bfa58004d475602bfc3c9457a13ccd12c9cebc31e70e1d9a73d5a36c3
|