Installation¶
This guide will help you install the Chess.com API Client and set up your development environment.
Requirements¶
- Python 3.8 or higher
- pip (Python package installer)
Basic Installation¶
Install the Chess.com API Client using pip:
Development Installation¶
If you plan to contribute to the project or need the latest development version:
# Clone the repository
git clone https://github.com/Stupidoodle/chess-com-api.git
cd chess-com-api
# Create and activate a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
# Install with development dependencies
pip install -e ".[dev]"
Verifying Installation¶
You can verify your installation by running Python and importing the package:
Dependencies¶
The package automatically installs these required dependencies:
aiohttp: For async HTTP requeststyping-extensions: For Python 3.8 compatibility (if needed)
Optional Dependencies¶
Development dependencies include:
pytest: For running testsblack: For code formattingmypy: For type checkingruff: For lintingmkdocs: For building documentation
Troubleshooting¶
Common Issues¶
-
SSL Certificate Errors:
-
Dependency Conflicts:
-
Python Version Issues: Make sure you're using Python 3.8 or higher:
Platform-Specific Notes¶
# If you see "execution policy" errors
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Next Steps¶
After installation, check out the Quick Start guide to begin using the library.