Skip to main content

A Python API Wrapper for Chess.com to fetch chess games

Project description

get-chesscom-games

A Python API Wrapper for Chess.com to fetch chess games.

This library allows you to retrieve chess games from a Chess.com user’s profile going back a specified number of months. It's designed to be simple to use, and simplifies of interactions with Chess.com's API.

Usage

  • Fetch games from a Chess.com user's profile.
  • Specify the number of months back to fetch games.
  • Handle authentication and API requests internally.

Using get_chess_games.(Username, monthsago, optional user agent) -> returns a list of chess PGNS from X months ago until today

Example Usage:

import get_chess_games get_chess_games.getgames('Wins',6) #returns all chess games froms 'Wins' in the last 6 months

Installation

You can install get-chesscom-games directly from the Python Package Index (PyPI) or from source.

Using pip (PyPI)

pip install get-chesscom-games

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

get_chesscom_games-0.1.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_chesscom_games-0.1.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_chesscom_games-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for get_chesscom_games-0.1.2.tar.gz
Algorithm Hash digest
SHA256 72b2e73612999f4eed72e8f93ad2e1f04bc14245c1967d50f3657dab5cb38781
MD5 93a1f8826e22dbd3ebfefd417664c783
BLAKE2b-256 06d2b2110f0c2b0f86df7d1d2be378947060a523b255d883c9b4fd55ef1ca8b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for get_chesscom_games-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b43157419356359134d244bc90f433558208846adab2dad9effc928c1a8a9eda
MD5 c0668e27a7766c0dabad1b51287ecb9f
BLAKE2b-256 c430a964811a0a9a748d86224eb6af255a50ff55db66274e40eddb3a9fda1c5e

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