A Python-based desktop application to fetch and display Chess.com player statistics, game history, and leaderboards using the Chess.com API.
- Player Profile: View a player's basic profile information.
- Game History: Fetch and display recent games with details like date, players, result, time control, and more.
- Leaderboards: Display current Chess.com leaderboards.
- Filters: Filter games by wins, losses, or draws.
- User-Friendly Interface: Built with Tkinter for a simple and intuitive GUI.
Before running the application, ensure you have the following installed:
- Python 3.7 or higher: Download and install Python from python.org.
- Tkinter: Tkinter is included with Python by default. If it’s not installed, you can install it using your package manager:
- Ubuntu/Debian:
sudo apt-get install python3-tk - Windows: Tkinter is usually included with Python installations.
- Ubuntu/Debian:
- Chess.com API Python Wrapper: Install the
chessdotcomPython package to interact with the Chess.com API.
- Clone the Repository:
git clone https://github.com/Macowen14/chess.comPython
- Set Up a Virtual Environment (Recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install packages
pip install chess.com pip install tkinter # on linux - update your client header in app/utils/api_client.py:
**def configure_client(): """Configure Chess.com API client""" Client.request_config["headers"]["User-Agent"] = ( "Chess Stats Viewer/1.0 (your-chess.com-email)" )** #Update your-chess.com-email with the corect email
5.Run main.py
python main.py