Skip to main content

python-chess-coverage

Expose the potential energy of chess ply

This library constructs a dictionary of chess piece threat and protection statuses, keyed by "rank and file" board positions.

Usage:

import chess
import json

from chess_coverage import Coverage

board = chess.Board()
board.push_san("e4")
board.push_san("d5")

c = Coverage(board)
cover = c.cover()

print(json.dumps(cover, indent=2, sort_keys=True))

Example result fragment:

  "e4": {
    "color": true,
    "index": 28,
    "is_protected_by": [],
    "is_threatened_by": ["d5"],
    "moves": ["d5", "e5"],
    "occupant": "white pawn",
    "position": "e4",
    "protects": [],
    "symbol": "P",
    "threatens": ["d5"],
    "black_can_move_here": [],
    "white_can_move_here": [],
    "black_can_capture_here": [],
    "white_can_capture_here": []
  }

Metadata

Release files for chess-coverage 0.1.8

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

Source distribution (sdist)

Source distribution for chess-coverage 0.1.8
File Size Uploaded Provenance Actions
chess_coverage-0.1.8.tar.gz 41.2 kB Without provenance Details for chess_coverage-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chess-coverage 0.1.8
File Interpreter ABI Platform Actions
chess_coverage-0.1.8-py3-none-any.whl Python 3 none any Details for chess_coverage-0.1.8-py3-none-any.whl

Total release size: 69.8 kB

Release files / chess_coverage-0.1.8.tar.gz

Download URL chess_coverage-0.1.8.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7bf35038b75a6c8b53805804e8b48d13480cdacd960b52c6b47fa7ee9c66b106
BLAKE2b-256 checksum
How to use checksums
9a3f2698ae37e958633545c5a4e5508b39da2305fd7a30cc47ab356b4f800ee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / chess_coverage-0.1.8-py3-none-any.whl

Download URL chess_coverage-0.1.8-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56c6d82a79c393c97337ed6b68846b4f0b8b6e21bd16fa1ddf5b4fa9fc8ed4b7
BLAKE2b-256 checksum
How to use checksums
9c4321238dc769634a74cbf1fd72ca3fc187a66bb313ec0bdccfb56a2868a83e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for chess-coverage 0.1.8

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.

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