chessdotcom.endpoints.country_details¶
Additional details about a country.
API doc: https://www.chess.com/news/view/published-data-api#pubapi-endpoint-country-profile
- chessdotcom.endpoints.country_details.get_country_details(iso: str, tts=0, **request_options) GetCountryDetailsResponse¶
- Parameters:
iso – country’s 2-character ISO 3166 code.
tts – the time the client will wait before making the first request.
- Returns:
GetCountryDetailsResponse`object containing additional details about a country.
- class chessdotcom.endpoints.country_details.GetCountryDetailsResponse(json, text, country)¶
- Variables:
country – Holds the
CountryDetailsobject.json – The JSON response from the API.
text – The raw text response from the API.
- class chessdotcom.endpoints.country_details.CountryDetails(name: str | None, id: str | None, code: str | None)¶
- Variables:
name – Country’s name.
id – The URL of the country’s profile
code – The ISO-3166-1 2-character code.