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

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.1.0.tar.gz (10.0 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.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shahmat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec93c7276e48f7dff3ffe39f703021e4fe31fa66d6173b34af23f5d4f3c10305
MD5 e3672d0a8ab62cd8019a4f2a0509b64f
BLAKE2b-256 94a42037f16ba43f550e2eb64ace724f80e673794154c76ffc92070ed9675cfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shahmat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f195dabc0b97d883afa6aea131929a06014ad00dff70939175afd368f3bc73aa
MD5 3398e1bb195a44ef716dd1ba5104e1b8
BLAKE2b-256 c62eb1beab241ac12b7ee1009d8d0984b9c6695568170d32d75ef9d561de1e21

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