Skip to main content

Analyze your Chess.com X Lichess.org games: fetch, stats (hour, Elo diff), 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.7.tar.gz (8.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.7-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shahmat-0.0.7.tar.gz
  • Upload date:
  • Size: 8.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.7.tar.gz
Algorithm Hash digest
SHA256 4902889640fdbd474a14e6586e541462d55f9b6b0c907eebddb5bdcb2d9375f3
MD5 c6a348dc836e9e5f37abaea39beb7ac0
BLAKE2b-256 e7542c6d785b64d47380ebdc74b1b4b5693b48b4c58578cc0336efe63fb7c61e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shahmat-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.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.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bf3fa43f5c3a4c317aebe1933f63588042b37344acb11488f51d513bce5ee808
MD5 509fcfeefdedbf5c7d1c59f9ae1bed21
BLAKE2b-256 fa8c9d35b76980c58354f013e610d5561c1e7807a80264296b90611c9309f7a3

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