chessdotcom.endpoints.player_games_by_month_pgn

chessdotcom.endpoints.player_games_by_month_pgn.get_player_games_by_month_pgn(username: str, year: str | int | None = None, month: str | int | None = None, datetime_obj: datetime | None = None, tts=0, **request_options) GetPlayerGamesByMonthResponsePgn
Parameters:
  • username – username of the player.

  • year – the year (yyyy).

  • month – the month (mm).

  • date – datetime.datetime of the month. Can be passed in instead of month and year parameters.

Returns:

GetPlayerGamesByMonthResponsePgn object containing standard multi-game format PGN containing all games for a month.

class chessdotcom.endpoints.player_games_by_month_pgn.GetPlayerGamesByMonthResponsePgn(json, text, pgn)
Variables:
  • json – The JSON response from the API.

  • text – The text response from the API.

  • pgnPgn: contains PGN data.

class chessdotcom.endpoints.player_games_by_month_pgn.Pgn(data: str | None)
Variables:
  • data – The PGN (Portable Game Notation) string representing the chess game.

  • pgn – Same as data, keeps backwards compatibility.