Skip to main content

Analyze your Chess.com (Lichess in development) 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.8.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.8-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shahmat-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 686eb22e4016573c0207b77784d5c0ce911dd6a641c8f8292a678586aff9fc10
MD5 441b4db2e05736350bc29fc0f90607e8
BLAKE2b-256 77c13eee0cfd091ffe057518e577804b29f040111b9db6930ef1333059b2be22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shahmat-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 384fe52fb5947f929371d5ff62606c26534c474b7877c54669612e51765d4925
MD5 eb3054bb3e96e9ea63c4715960bf0698
BLAKE2b-256 1a19db591fc891f1b3812004da8b3da6abff97572ba1d7c0ff5a5cd8f1b4e94a

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