Generate a chess board image given a FEN, à la Lichess style.
Project description
fen-to-image
Generate a chess board image given a FEN, à la Lichess style.
Installation
fentoimage is available on PyPI.
pip install fentoimage
Example Usage
import chess
from fentoimage.board import BoardImage
fen = "rnbqk1nr/pppp1ppp/8/4p3/1bP5/2N5/PP1PPPPP/R1BQKBNR w KQkq - 2 3"
renderer = BoardImage(fen)
image = renderer.render(highlighted_squares=(chess.F8, chess.B4))
image.show()
Example Output
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
fentoimage-0.1.0.tar.gz
(6.9 MB
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
File details
Details for the file fentoimage-0.1.0.tar.gz.
File metadata
- Download URL: fentoimage-0.1.0.tar.gz
- Upload date:
- Size: 6.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad609bc1ccea624ee9c5eccde7991e9ecb27549be9fac0f7632838cc14d08720
|
|
| MD5 |
b669da215d91e540c2f6e7babcbaa3ab
|
|
| BLAKE2b-256 |
460fc23c710431b3597ad0bc2e0fbb8fe2c428709ce7fa46a28430d0776dbe45
|
File details
Details for the file fentoimage-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fentoimage-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e34be59c163451872f3d18abf1f8b1da0f7afa49f6c4e671fdd3b5439b71200a
|
|
| MD5 |
3d3961419146ae578e3408a9cfa541f2
|
|
| BLAKE2b-256 |
c68f0877fe4a8641b00e811aece95a2a6bee8fecad82a03332cdaefa97efcc0c
|