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.2.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.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shahmat-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9302ae1986bdf1750a78a5e02cfbffa75d273bf628b545ade23c364446ffd82f
MD5 ffd108f31583e87232145bc979b6dbd1
BLAKE2b-256 6e7d90ccf325810501d2bca931c1dab5dcbc1a03ca2612c8c67fbf0aaa52732e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shahmat-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b398042980aab0fe1d95e2b98c2d4b9aadd20abe1c15c4620b56d7052484949
MD5 ae1580fb18b023e47247894fa9f74788
BLAKE2b-256 2ee343f7530e282b7ac29676f87644675ae7100d98760856bb623be049bcaf0d

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