Making chess analytics easy.
Project description
Chess-Analytica: Simplifying Chess Analytics
Introduction
Chess-Analytica is a powerful chess library designed for effortless data scraping and analysis. Utilizing the chess.com API, it builds upon the robust python-chess library, enabling users to scrape and analyze past or current games of any player with ease.
Key Features:
- Easy scraping of game data from chess.com profiles.
- Advanced game filtering options.
- Comprehensive analysis of game patterns and styles.
Quick Start
Here's a glimpse of what you can do with Chess-Analytica:
from chess_analytica import Board, ChessDotCom
# Initialize and filter games
profile = ChessDotCom.Profile("aronfrish", False)
profile.filterGameType("rapid")
# Analyze game terminations
resignation_count = sum(1 for game in profile.games if "resignation" in game.termination)
print(f"Rapid games ended in resignation: {resignation_count}")
# Analyze specific openings
italian_games = profile.find_games_with_FEN_and_Color("r1bqkbnr/pppp1ppp/2n5/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R", True)
italian_game_percentage = len(italian_games) / len(profile.white_games)
print(f"Italian games percentage (as white): {italian_game_percentage:.2%}")
Installation
Easily install Chess-Analytica using pip:
pip install chess-analytica
Documentation and Resources
Explore detailed documentation and examples to get the most out of Chess-Analytica:
- Documentation:
Full Documentation <https://chess-analytica.readthedocs.io/en/latest/>_ - Usage Examples:
Examples <https://chess-analytica.readthedocs.io/en/latest/usage.html>_ - API Reference:
ChessDotCom Class <https://chess-analytica.readthedocs.io/en/latest/chessdotcom.html>_ |Board Class <https://chess-analytica.readthedocs.io/en/latest/board.html>_
License
Chess-Analytica is open-sourced and available under the MIT License. For more details, see LICENSE.txt.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chess-analytica-1.1.7.tar.gz.
File metadata
- Download URL: chess-analytica-1.1.7.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce6bf264d1382a2cdc64f23511d3a4ed4ac8fb8161a6eaa1146cd61dbe8e509d
|
|
| MD5 |
c5c46f59a36d10d89d2805657982a759
|
|
| BLAKE2b-256 |
128234811bca6ab62ee42e6376e864aa1802e39fbf3bb90f87b55143499533a3
|
File details
Details for the file chess_analytica-1.1.7-py3-none-any.whl.
File metadata
- Download URL: chess_analytica-1.1.7-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ee3f11bfe9ca582d007934641826ea69758ff192e6f38f92729363b032520f3
|
|
| MD5 |
6af32ee3c47324eab084eb60278d9fa4
|
|
| BLAKE2b-256 |
2102d2b8f9bb0f77120df15678e50d2fef0f7c6ba608065d1432aa08f0a79add
|