AioPoke

Documentation

Every type should have attributes as described in the docs listed here.

class aiopoke.AiopokeClient(*, session: Optional[aiohttp.ClientSession])

All methods starting in 'get_' fetch the requested data from the PokeApi.

Parameters:

session

An optional aiohttp.ClientSession object. If not provided, a new one will be instantiated. Must be passed in as a keyword argument.

Methods:

async def close(self) -> None

Closes the underlying aiohttp.ClientSession.

async def get_ability(self, name_or_id: int | str) -> aiopoke.Ability

async def get_berry(self, name_or_id: int | str) -> aiopoke.Berry

async def berry_flavor(self, name_or_id: int | str) -> aiopoke.BerryFlavor

async def get_berry_firmness(self, name_or_id: int | str) -> aiopoke.BerryFirmness

async def get_characteristic(self, name_or_id: int | str) -> aiopoke.Characteristic

async def get_contest_effect(self, id_: int) -> aiopoke.ContestEffect

async def get_contest_type(self, name_or_id: int | str) -> aiopoke.ContestType

async def get_egg_group(self, name_or_id: int | str) -> aiopoke.EggGroup

async def get_encounter_condition(self, name_or_id: int | str) -> aiopoke.EncounterCondition

async def get_encounter_condition_value(self, name_or_id: int | str) -> aiopoke.EncounterConditionValue

async def get_encounter_method(self, name_or_id: int | str) -> aiopoke.EncounterMethod

async def get_evolution_chain(self, id_: int) -> aiopoke.EvolutionChain

async def get_evolution_trigger(self, name_or_id: int | str) -> aiopoke.EvolutionTrigger

async def get_gender(self, id_: int) -> aiopoke.Generation

async def get_generation(self, name_or_id: int | str) -> aiopoke.Generation

async def get_growth_rate(self, name_or_id: int | str) -> aiopoke.GrowthRate

async def get_item(self, name_or_id: int | str) -> aiopoke.Item

async def get_item_attribute(self, name_or_id: int | str) -> aiopoke.ItemAttribute

async def get_item_category(self, name_or_id: int | str) -> aiopoke.ItemCategory

async def get_item_fling_effect(self, name_or_id: int | str) -> aiopoke.ItemFlingEffect

async def get_item_pocket(self, name_or_id: int | str) -> aiopoke.ItemPocket

async def get_language(self, name_or_id: int | str) -> aiopoke.Language

async def get_location(self, name_or_id: int | str) -> aiopoke.Location

async def get_location_area(self, name_or_id: int | str) -> aiopoke.LocationArea

async def get_machine(self, name_or_id: int | str) -> aiopoke.Machine

async def get_move(self, name_or_id: int | str) -> aiopoke.Move

async def get_move_ailment(self, name_or_id: int | str) -> aiopoke.MoveAilment

async def get_move_battle_style(self, name_or_id: int | str) -> aiopoke.MoveBattleStyle

async def get_move_category(self, name_or_id: int | str) -> aiopoke.MoveCategory

async def get_move_damage_class(self, name_or_id: int | str) -> aiopoke.MoveDamageClass

async def get_move_learn_method(self, name_or_id: int | str) -> aiopoke.MoveLearnMethod

async def get_move_target(self, name_or_id: int | str) -> aiopoke.MoveTarget

async def get_nature(self, name_or_id: int | str) -> aiopoke.Nature

async def get_pal_park_area(self, name_or_id: int | str) -> aiopoke.PalParkArea

async def get_pokeathlon_stat(self, name_or_id: int | str) -> aiopoke.PokeathlonStat

async def get_pokedex(self, name_or_id: int | str) -> aiopoke.Pokedex

async def get_pokemon(self, name_or_id: int | str) -> aiopoke.Pokemon

async def get_pokemon_color(self, name_or_id: int | str) -> aiopoke.PokemonColor

async def get_pokemon_form(self, name_or_id: int | str) -> aiopoke.PokemonForm

async def get_pokemon_habitat(self, name_or_id: int | str) -> aiopoke.PokemonHabitat

async def get_pokemon_shape(self, name_or_id: int | str) -> aiopoke.PokemonShape

async def get_pokemon_species(self, name_or_id: int | str) -> aiopoke.PokemonSpecies

async def get_region(self, name_or_id: int | str) -> aiopoke.Region

async def get_stat(self, name_or_id: int | str) -> aiopoke.Stat

async def get_super_contest_effect(self, name_or_id: int | str) -> aiopoke.SuperContestEffect

async def get_type(self, name_or_id: int | str) -> aiopoke.NaturalGiftType

async def get_version(self, name_or_id: int | str) -> aiopoke.Version

async def get_version_group(self, name_or_id: int | str) -> aiopoke.VersionGroup