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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shahmat-0.1.1.tar.gz
  • Upload date:
  • Size: 9.9 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.1.tar.gz
Algorithm Hash digest
SHA256 ae7e52d91133d90beed9c7bb7c1a7990b4ad5973133ed42e3a3c84cd73a90595
MD5 ee5d952575dcb3b0233312a3edf4e5bc
BLAKE2b-256 1a7404130584c62b1712f4345796bd10cccdbc28a13e38160cd238c6fadce365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shahmat-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af9d3a9b3e9eb411551676627a2bfa83fd32ea7ca5f85a0b4fd5f2d4da908964
MD5 61acaa9ab4ae83811971037264827867
BLAKE2b-256 e75d3bda1cc23bc65e20ad1fb760c3ec71ec6f82a3f161c78ce95dcfb952bf70

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