Skip to main content

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

English Opening: King's English Variation, Kramnik-Shirov Counterattack

Metadata

Release files for fentoimage 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fentoimage 0.1.0
File Size Uploaded
fentoimage-0.1.0.tar.gz 6.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for fentoimage 0.1.0
File Interpreter ABI Platform
fentoimage-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 MB

Release files / fentoimage-0.1.0.tar.gz

Download URL fentoimage-0.1.0.tar.gz
Size 6.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ad609bc1ccea624ee9c5eccde7991e9ecb27549be9fac0f7632838cc14d08720
BLAKE2b-256 checksum
How to use checksums
460fc23c710431b3597ad0bc2e0fbb8fe2c428709ce7fa46a28430d0776dbe45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.0

Release files / fentoimage-0.1.0-py3-none-any.whl

Download URL fentoimage-0.1.0-py3-none-any.whl
Size 7.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e34be59c163451872f3d18abf1f8b1da0f7afa49f6c4e671fdd3b5439b71200a
BLAKE2b-256 checksum
How to use checksums
c68f0877fe4a8641b00e811aece95a2a6bee8fecad82a03332cdaefa97efcc0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page