Skip to content

Leagues

Sankarsan Kampa edited this page Dec 16, 2017 · 1 revision

Available Methods

Methods

.get_leagues()

Returns a dictionary of Pokémon League names known to us.

Returns: Dictionary

Example:

leagues = pokedex.get_leagues()
print(leagues)

.get_league(slug)

Returns a Pokémon League dictionary containing the details about the league.

Parameter Type Optional Default Description
slug String none The string used to identify this league

Returns: PokemonLeague

Example:

league = pokedex.get_league('kalos')
print(league)
Clone this wiki locally