ShahMat
ShahMat is a Python package that leverages the official Chess.com API to fetch, analyze, and visualize your games.
It is part of the AG Algo Lab initiative: making finance & tech accessible to everyone — and yes, sometimes we have fun applying data science to chess too!
The name ShahMat comes from the ancient expression that later gave birth to the word “checkmate” :)
Features
-
Fetch games directly from Chess.com using a single function
-
Analyze performance (through Visualizations) by:
- Hour of the day
- Number of games per day
- Elo difference vs opponents
- Color (White / Black)
- Opening (first move played)
- Result type breakdown (Wins, Losses, Draws)
-
Download: export your data in a csv file
Quick Start
Install & Use ShahMat:
pip install ShahMat
chesscom('your_username', start_year=2024)
Metadata
Release files for shahmat 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| shahmat-0.1.2.tar.gz | 10.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shahmat-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / shahmat-0.1.2.tar.gz
| Download URL | shahmat-0.1.2.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9302ae1986bdf1750a78a5e02cfbffa75d273bf628b545ade23c364446ffd82f
|
|
BLAKE2b-256 checksum How to use checksums |
6e7d90ccf325810501d2bca931c1dab5dcbc1a03ca2612c8c67fbf0aaa52732e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / shahmat-0.1.2-py3-none-any.whl
| Download URL | shahmat-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b398042980aab0fe1d95e2b98c2d4b9aadd20abe1c15c4620b56d7052484949
|
|
BLAKE2b-256 checksum How to use checksums |
2ee343f7530e282b7ac29676f87644675ae7100d98760856bb623be049bcaf0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for shahmat 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.