pytenno.interface.misc

Module holding the Misc. interface class.

class pytenno.interface.misc.Misc(backend: PyTennoBackend)[source]

Class for the misc backends.

async get_locations(language: Optional[Literal['en', 'ru', 'ko', 'fr', 'sv', 'de', 'zh_hans', 'zh_hant', 'pt', 'es', 'pl']] = None) list[pytenno.models.locations.Location][source]

Gets a list of all locations.

Parameters

language (Optional[VALID_LANGUAGES]) – The language of the locations. Default: None, meaning the default set during client construction.

Return type

list[Location]

Example

>>> async with PyTenno() as pytenno:
>>>     locations = await pytenno.misc.get_locations()
>>>     for location in locations:
>>>         print(location.node_name)
async get_missions(language: Optional[Literal['en', 'ru', 'ko', 'fr', 'sv', 'de', 'zh_hans', 'zh_hant', 'pt', 'es', 'pl']] = None) list[pytenno.models.missions.PartialMission][source]

Gets a list of all missions.

Parameters

language (Optional[VALID_LANGUAGES]) – The language of the missions. Default: None, meaning the default set during client construction.

Return type

list[PartialMission]

Example

>>> async with PyTenno() as pytenno:
>>>     missions = await pytenno.misc.get_missions()
>>>     for mission in missions:
>>>         print(mission.name)
async get_npcs(language: Optional[Literal['en', 'ru', 'ko', 'fr', 'sv', 'de', 'zh_hans', 'zh_hant', 'pt', 'es', 'pl']] = None) list[pytenno.models.missions.DroptableNPC][source]

Gets a list of all NPCs.

Parameters

language (Optional[VALID_LANGUAGES]) – The language of the NPCs. Default: None, meaning the default set during client construction.

Return type

list[NPC]

Example

>>> async with PyTenno() as pytenno:
>>>     npcs = await pytenno.misc.get_npcs()
>>>     for npc in npcs:
>>>         print(npc.name)