Skip to main content

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

Project description

ShahMat

Python
License

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
    • 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.6.tar.gz (8.6 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.6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shahmat-0.0.6.tar.gz
  • Upload date:
  • Size: 8.6 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.6.tar.gz
Algorithm Hash digest
SHA256 d23a0768c06ae3bb4097eae3388968da1b7e3829ebab57c80f9d171d99beacb4
MD5 6359f8bf6ec25bc73fb8eba0c1f3369f
BLAKE2b-256 cc592d5a6c6c5a1221e934932a4f2b46551452d69770b443b4175be5a859bd2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shahmat-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 961a109aed9a896a2acb44cb703143c21ce2d93df9f158ad050a8e316aa78cea
MD5 a126764d0376efaad305a408fcff2519
BLAKE2b-256 86e2ecfcbcb9d450841dbd79512e41f3cf1981836cb133b84d63d79328ec5c87

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