Skip to main content

Making chess analytics easy.

Project description

chess-analytica: chess analytics made easy

================================================================================

.. image:: https://readthedocs.org/projects/chess-analytica/badge/?version=latest

:target: https://chess-analytica.readthedocs.io/en/latest/

:alt: Docs

Introduction


chess-analytica is a chess library that allows for the simple scraping of data using the chess.com API, and subsequent

analysis of that data. Built on top of the python-chess library, chess-analytica allows for you to easily scrape

all of a given player's past (or current) games, filter the games down, and then analyze them.

.. code:: python

>>> from chess_analytica import Board, ChessDotCom



>>> profile = ChessDotCom("aronfrish", False) #False means that it will not try to import the games from the "cache" folder



>>> print(profile.games[0].white_player)

#aronfrish



>>> print(profile.games[0].final_state + " \n" + profile.games[0].link)

#r n b . k b . r

#p p p p q p p p

#. . . . . . . .

#. . . . . . . .

#. . . . . . N .

#. . . P . . . .

#P P P K . P P P

#R N B n . B . R

#https://www.chess.com/game/live/77569257661

Installing


Download and install the latest release:

::

pip install chess-analytica

Documentation <https://chess-analytica.readthedocs.io/en/latest/>__


  • Examples <https://chess-analytica.readthedocs.io/en/latest/usage.html>_

  • ChessDotCom Class <https://chess-analytica.readthedocs.io/en/latest/chessdotcom.html>_

  • Board Class <https://chess-analytica.readthedocs.io/en/latest/board.html>_

Features


  • Scrape all game info from a given player's profile

  • Simulate games and analyze them

  • Filter games by time control

License


chess-analytica is licensed under the MIT License.

Check out LICENSE.txt for the full text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chess-analytica-1.0.6.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

chess_analytica-1.0.6-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file chess-analytica-1.0.6.tar.gz.

File metadata

  • Download URL: chess-analytica-1.0.6.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for chess-analytica-1.0.6.tar.gz
Algorithm Hash digest
SHA256 7a87c14af8bef09fd918d4b30d5f7363e3e8e3aa291a7ba38544822974bbdd44
MD5 1fa9884c3316c07cd04a5a59f7124363
BLAKE2b-256 ccd38d0205d7ef55a797de66ec4f22f34c255bc9495e84238f7867d7c8e9b038

See more details on using hashes here.

File details

Details for the file chess_analytica-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for chess_analytica-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2084a742083e553c6ac103b6d2c7ef4a3cd9804031a95593e0863274ac0e61
MD5 204647b6ddaa079a0c0b809870742ecb
BLAKE2b-256 ad20322d2ef6911ba054edf4eab67c744f666e85b0f5238ae91dbf887de3ad36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page