Routes
pokelance.http.endpoints
⚓︎
Endpoint
⚓︎
Represents an endpoint for the API.
get_ability(ability)
classmethod
⚓︎
get_ability_endpoints()
classmethod
⚓︎
get_berry(berry)
classmethod
⚓︎
get_berry_endpoints()
classmethod
⚓︎
get_berry_firmness(berry_firmness)
classmethod
⚓︎
get_berry_firmness_endpoints()
classmethod
⚓︎
get_berry_flavor(berry_flavor)
classmethod
⚓︎
get_berry_flavor_endpoints()
classmethod
⚓︎
get_characteristic(characteristic)
classmethod
⚓︎
get_characteristic_endpoints()
classmethod
⚓︎
get_contest_effect(contest_effect)
classmethod
⚓︎
get_contest_effect_endpoints()
classmethod
⚓︎
get_contest_type(contest_type)
classmethod
⚓︎
get_contest_type_endpoints()
classmethod
⚓︎
get_egg_group(egg_group)
classmethod
⚓︎
get_egg_group_endpoints()
classmethod
⚓︎
get_encounter_condition(encounter_condition)
classmethod
⚓︎
Get an encounter condition by its ID or name.
get_encounter_condition_endpoints()
classmethod
⚓︎
get_encounter_condition_value(encounter_condition_value)
classmethod
⚓︎
Get an encounter condition value by its ID or name.
Source code in pokelance/http/endpoints.py
get_encounter_condition_value_endpoints()
classmethod
⚓︎
Get a list of encounter condition value endpoints.
get_encounter_method(encounter_method)
classmethod
⚓︎
Get an encounter method by its ID or name.
get_encounter_method_endpoints()
classmethod
⚓︎
get_evolution_chain(evolution_chain)
classmethod
⚓︎
get_evolution_chain_endpoints()
classmethod
⚓︎
get_evolution_trigger(evolution_trigger)
classmethod
⚓︎
Get an evolution trigger by its ID or name.
get_evolution_trigger_endpoints()
classmethod
⚓︎
get_gender(gender)
classmethod
⚓︎
get_gender_endpoints()
classmethod
⚓︎
get_generation(generation)
classmethod
⚓︎
get_generation_endpoints()
classmethod
⚓︎
get_growth_rate(growth_rate)
classmethod
⚓︎
get_growth_rate_endpoints()
classmethod
⚓︎
get_item(item)
classmethod
⚓︎
get_item_attribute(item_attribute)
classmethod
⚓︎
get_item_attribute_endpoints()
classmethod
⚓︎
get_item_category(item_category)
classmethod
⚓︎
get_item_category_endpoints()
classmethod
⚓︎
get_item_endpoints()
classmethod
⚓︎
get_item_fling_effect(item_fling_effect)
classmethod
⚓︎
Get an item fling effect by its ID or name.
get_item_fling_effect_endpoints()
classmethod
⚓︎
get_item_pocket(item_pocket)
classmethod
⚓︎
get_item_pocket_endpoints()
classmethod
⚓︎
get_language(language)
classmethod
⚓︎
get_language_endpoints()
classmethod
⚓︎
get_location(location)
classmethod
⚓︎
get_location_area(location_area)
classmethod
⚓︎
get_location_area_encounter(name)
classmethod
⚓︎
Get a location area encounter by its ID or name.
get_location_area_encounter_endpoints()
classmethod
⚓︎
get_location_area_endpoints()
classmethod
⚓︎
get_location_endpoints()
classmethod
⚓︎
get_machine(machine)
classmethod
⚓︎
get_machine_endpoints()
classmethod
⚓︎
get_move(move)
classmethod
⚓︎
get_move_ailment(move_ailment)
classmethod
⚓︎
get_move_ailment_endpoints()
classmethod
⚓︎
get_move_battle_style(move_battle_style)
classmethod
⚓︎
Get a move battle style by its ID or name.
get_move_battle_style_endpoints()
classmethod
⚓︎
get_move_category(move_category)
classmethod
⚓︎
get_move_category_endpoints()
classmethod
⚓︎
get_move_damage_class(move_damage_class)
classmethod
⚓︎
Get a move damage class by its ID or name.
get_move_damage_class_endpoints()
classmethod
⚓︎
get_move_endpoints()
classmethod
⚓︎
get_move_learn_method(move_learn_method)
classmethod
⚓︎
Get a move learn method by its ID or name.
get_move_learn_method_endpoints()
classmethod
⚓︎
get_move_target(move_target)
classmethod
⚓︎
get_move_target_endpoints()
classmethod
⚓︎
get_nature(nature)
classmethod
⚓︎
get_nature_endpoints()
classmethod
⚓︎
get_pal_park_area(pal_park_area)
classmethod
⚓︎
get_pal_park_area_endpoints()
classmethod
⚓︎
get_pokeathlon_stat(pokeathlon_stat)
classmethod
⚓︎
Get a pokeathlon stat by its ID or name.
get_pokeathlon_stat_endpoints()
classmethod
⚓︎
get_pokedex(pokedex)
classmethod
⚓︎
get_pokedex_endpoints()
classmethod
⚓︎
get_pokemon(pokemon)
classmethod
⚓︎
get_pokemon_color(pokemon_color)
classmethod
⚓︎
get_pokemon_color_endpoints()
classmethod
⚓︎
get_pokemon_endpoints()
classmethod
⚓︎
get_pokemon_form(pokemon_form)
classmethod
⚓︎
get_pokemon_form_endpoints()
classmethod
⚓︎
get_pokemon_habitat(pokemon_habitat)
classmethod
⚓︎
Get a pokemon habitat by its ID or name.
get_pokemon_habitat_endpoints()
classmethod
⚓︎
get_pokemon_shape(pokemon_shape)
classmethod
⚓︎
get_pokemon_shape_endpoints()
classmethod
⚓︎
get_pokemon_species(pokemon_species)
classmethod
⚓︎
Get a pokemon species by its ID or name.
get_pokemon_species_endpoints()
classmethod
⚓︎
get_region(region)
classmethod
⚓︎
get_region_endpoints()
classmethod
⚓︎
get_stat(stat)
classmethod
⚓︎
get_stat_endpoints()
classmethod
⚓︎
get_super_contest_effect(super_contest_effect)
classmethod
⚓︎
Get a super contest effect by its ID.
get_super_contest_effect_endpoints()
classmethod
⚓︎
Get a list of super contest effect endpoints.
get_type(type_)
classmethod
⚓︎
get_type_endpoints()
classmethod
⚓︎
get_version(version)
classmethod
⚓︎
get_version_endpoints()
classmethod
⚓︎
get_version_group(version_group)
classmethod
⚓︎
get_version_group_endpoints()
classmethod
⚓︎
Route
⚓︎
Represents a route for an endpoint.
Attributes:
Name | Type | Description |
---|---|---|
endpoint |
str
|
The endpoint name. |
_url |
str
|
The URL for the route. |
_api_version |
int
|
The API version for the route. |
method |
str
|
The HTTP method for the route. |
payload |
Optional[Dict[str, Any]]
|
The payload for the route. |
Examples:
>>> pokemon = "pikachu"
>>> route = Route(endpoint=f"/pokemon/{pokemon}", method="GET")