pytenno.interface.rivens
Module holding the Rivens interface class.
- class pytenno.interface.rivens.Rivens(backend: PyTennoBackend)[source]
Class for the rivens backend.
- async get_attributes(language: Optional[Literal['en', 'ru', 'ko', 'fr', 'sv', 'de', 'zh_hans', 'zh_hant', 'pt', 'es', 'pl']] = None) list[pytenno.models.rivens.RivenAttribute][source]
Gets a list of all riven attributes.
- Parameters
language (Optional[VALID_LANGUAGES]) – The language of the riven attributes. Default:
None, meaning the default set during client construction.- Return type
Example
>>> async with PyTenno() as pytenno: >>> riven_attributes = await pytenno.rivens.get_attributes() >>> for riven_attribute in riven_attributes: >>> print(riven_attribute.effect)
- async get_riven_items(language: Optional[Literal['en', 'ru', 'ko', 'fr', 'sv', 'de', 'zh_hans', 'zh_hant', 'pt', 'es', 'pl']] = None) list[pytenno.models.rivens.RivenItem][source]
Gets a list of all riven-equippable items.
- Parameters
language (Optional[VALID_LANGUAGES]) – The language of the riven items. Default:
None, meaning the default set during client construction.- Return type
Example
>>> async with PyTenno() as pytenno: >>> riven_items = await pytenno.rivens.get_riven_items() >>> for riven_item in riven_items: >>> print(riven_item.url_name)