Skip to main content

Analyze your Chess.com games: fetch, stats (hour, Elo diff, opening), and clean visualizations.

Project description

ShahMat

Python License
LinkedIn
YouTube FR YouTube EN

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)
    • 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shahmat-0.0.9.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shahmat-0.0.9-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file shahmat-0.0.9.tar.gz.

File metadata

  • Download URL: shahmat-0.0.9.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for shahmat-0.0.9.tar.gz
Algorithm Hash digest
SHA256 3d3d8850243e2fe5e7a7adc847b4ee4612e3b56eb3e7f32c3683b82279a48341
MD5 3ce7fcf9ac8fe459583fae7990da1b75
BLAKE2b-256 1d9412773b6992a638b953e759c9d89bf8091152890c08c4b59565e2d87e698d

See more details on using hashes here.

File details

Details for the file shahmat-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: shahmat-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for shahmat-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 39c590564b2f3ed3c0e556e262a851aa3426825be487226ec5d5d86aaee9469c
MD5 6cbb7fc446ace099e68b9fad47f018d8
BLAKE2b-256 fb9f2031e1813e3bfef8b9881ff6f6b8a5a5da3698f4a3ba6201e59ebb24b403

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page