Skip to main content

Making chess analytics easy.

Project description

Chess-Analytica: chess analytics made easy

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

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.1.3.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chess_analytica-1.1.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chess-analytica-1.1.3.tar.gz
  • Upload date:
  • Size: 11.2 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.1.3.tar.gz
Algorithm Hash digest
SHA256 b2b2efb29ec6bbca11ffeed251dbac26bda92498bdff1f177c9fad7fdaff5216
MD5 3bbc072910b7d3d7c67b901cf4e9f42e
BLAKE2b-256 f81a14e09214b0393b534bacbd73a7f58ae6c975353aad938b3304cddbc01fbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chess_analytica-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db101bee2f3518dcd301b441f90e539af0a4627da509626035c679a7b69a0e34
MD5 25d62b23f3bb7fa142187269004436c8
BLAKE2b-256 7b0134a65b2f4bc503ebfbc99f5edb739faa069d3fbe4ac1ba2307120ef155b2

See more details on using hashes here.

Supported by

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