python-chess
A chess library with move generation, move validation, and support for common formats.
Decision gist · record as of 2026-08-14
Yes, with conditions. The library is feature-complete for standard chess programming tasks and has no known vulnerabilities. However, the GPL-3.0+ copyleft license is a hard blocker for proprietary projects, and the gap between the latest release (2020-10-26) and current date raises questions about maintenance responsiveness. Install only if you need GPL-compatible licensing and can tolerate potential delays in bug fixes or updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+ according to the documentation excerpt.
- Low install friction with a pure-Python wheel distribution.
- However, the package is marked as inactive (Development Status 7) despite an active repository; the latest release is from 2020-10-26, over five years old, which may indicate maintenance has stalled even though the repository shows recent commits.
License · maintenance · safety
GPL-3.0+ (copyleft) — Licensed under GPL-3.0+, a copyleft license requiring any derivative work or distribution to also be open-source under compatible terms. This is a significant constraint for proprietary or closed-source projects.
last release 2020-10-26 (2118 days) · last repo commit 2026-07-12 · 2,860 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,969,961 downloads/mo, #1,999 on PyPI
Alternatives
Verify before relying
pip install chess
import chess
board = chess.Board()
board.push_san("e4")
print(board)- Whether the package is actively maintained despite the 2020 release date and 'Inactive' classifier conflicting with recent repository commits.
- Current Python version support beyond the 3.8+ minimum mentioned in the excerpt.
- Whether all documented features (Polyglot, Syzygy, Gaviota, UCI engines) are fully functional in version 1.999.
What it is and what it does
python-chess is a pure-Python library for representing, validating, and manipulating chess games. It handles standard chess and multiple variants (Chess960, Atomic, Crazyhouse, etc.), generates legal moves, detects game-ending conditions (checkmate, stalemate, draws), and parses/generates common chess formats like FEN, PGN, EPD, and SAN notation. The library also integrates with opening books (Polyglot), endgame tablebases (Syzygy and Gaviota), and external UCI/XBoard chess engines for analysis and play.
The package is primarily used for chess analysis tools, game replay systems, engine interfaces, and educational chess applications. It has low install friction as a pure-Python wheel but carries a GPL-3.0+ copyleft license that restricts use in proprietary software. The codebase shows recent repository activity, but the latest PyPI release dates to 2020, and the package is marked as inactive in its classifiers, creating uncertainty about ongoing maintenance and support.
Use it for
- Analyze chess games by parsing PGN files and replaying moves with full move validation and game-state detection.
- Build a chess engine interface to communicate with UCI engines like Stockfish for position evaluation and move suggestions.
- Generate legal moves and validate user input in a chess application or game UI.
- Probe endgame tablebases (Syzygy or Gaviota) to determine optimal play in simplified positions.
- Read opening books in Polyglot format to suggest common opening moves from a database.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The library is feature-complete for standard chess programming tasks and has no known vulnerabilities. However, the GPL-3.0+ copyleft license is a hard blocker for proprietary projects, and the gap between the latest release (2020-10-26) and current date raises questions about maintenance responsiveness. Install only if you need GPL-compatible licensing and can tolerate potential delays in bug fixes or updates.
Install
python-chess on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. However, the package is marked as inactive (Development Status 7) despite an active repository; the latest release is from 2020-10-26, over five years old, which may indicate maintenance has stalled even though the repository shows recent commits.
Requires Python 3.8+ according to the documentation excerpt.
License in practice
Licensed under GPL-3.0+, a copyleft license requiring any derivative work or distribution to also be open-source under compatible terms. This is a significant constraint for proprietary or closed-source projects.
Quickstart
pip install chess
import chess
board = chess.Board()
board.push_san("e4")
print(board)
Verify before relying
- Whether the package is actively maintained despite the 2020 release date and 'Inactive' classifier conflicting with recent repository commits.
- Current Python version support beyond the 3.8+ minimum mentioned in the excerpt.
- Whether all documented features (Polyglot, Syzygy, Gaviota, UCI engines) are fully functional in version 1.999.
Package facts
| License | GPL-3.0+ copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagechess |
| Maintenance | Actively maintained 2,118 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,969,961 / month, #1,999 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 7 - Inactive |
Evidence: python_chess-1.999-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “move generation validation”
- python-chesspython-chess provides move generation, move validation, and board…
- chessA pure-Python chess library providing move generation, validation,…
- stockfishWraps the Stockfish chess engine to let Python code query best moves,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also chess · stockfish · geojson · pydbml · Panda3D · clip-benchmark · django-syzygy · memcache-hybrid · nashpy