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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for chess_analytica-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a24825ffb070ce8a007e4b5f4fc9861cda36fd1d876b193506d7b8591ed801 |
|
MD5 | c0b15690c0b930e79bacf21ea3e85c6d |
|
BLAKE2b-256 | acdef5444ab50a4914c32797746a7a58123a25f6849bac931cd5d2c19ba2974d |