pytenno.models.items
Module containg models for items.
- class pytenno.models.items.ItemCommon(*, id: str, url_name: str, icon: str, icon_format: Optional[IconFormat] = None, sub_icon: Optional[str] = None, thumb: str, tags: list[str], mod_max_rank: Optional[int] = None, subtypes: Optional[list[pytenno.models.enums.Subtype]] = None, cyan_stars: Optional[int] = None, amber_stars: Optional[int] = None, ducats: Optional[int] = None)[source]
Common base class that an item can inherit from.
- icon_format: pytenno.models.enums.IconFormat | None = None
The format of the item’s icon.
- sub_icon: str = None
The URL of the item’s sub icon. For example if the item is part of a set, icon will the icon of the set, while sub_icon will be the icon of the item in the set.
- subtypes: list[pytenno.models.enums.Subtype] | None = None
The subtypes of the item.
- class pytenno.models.items.ItemFull(*, id: str, url_name: str, icon: str, icon_format: Optional[IconFormat] = None, sub_icon: Optional[str] = None, thumb: str, tags: list[str], mod_max_rank: Optional[int] = None, subtypes: Optional[list[pytenno.models.enums.Subtype]] = None, cyan_stars: Optional[int] = None, amber_stars: Optional[int] = None, ducats: Optional[int] = None, en: LangInItem, ru: LangInItem, ko: LangInItem, fr: LangInItem, de: LangInItem, sv: LangInItem, zh_hant: LangInItem, zh_hans: LangInItem, pt: LangInItem, es: LangInItem, pl: LangInItem, set_root: bool, mastery_level: int, rarity: Optional[ItemRarity] = None, trading_tax: int, quantity_for_set: Optional[int] = None)[source]
same as ItemInOrder, but lang related fields contain more info, as well as
rarity,set_root,mastery_level, andtrading_taxattributes.- de: LangInItem
The German translation of the item.
- en: LangInItem
The English translation of the item.
- es: LangInItem
The Spanish translation of the item.
- fr: LangInItem
The French translation of the item.
- icon_format: pytenno.models.enums.IconFormat | None = None
The format of the item’s icon.
- ko: LangInItem
The Korean translation of the item.
- pl: LangInItem
The Polish translation of the item.
- pt: LangInItem
The Portuguese translation of the item.
- rarity: pytenno.models.enums.ItemRarity | None = None
The rarity of the item. If None, the item does not have any specific rarity.
- ru: LangInItem
The Russian translation of the item.
- sub_icon: str = None
The URL of the item’s sub icon. For example if the item is part of a set, icon will the icon of the set, while sub_icon will be the icon of the item in the set.
- subtypes: list[pytenno.models.enums.Subtype] | None = None
The subtypes of the item.
- sv: LangInItem
The Swedish translation of the item.
- zh_hans: LangInItem
The Chinese (Simplified) translation of the item.
- zh_hant: LangInItem
The Chinese (Traditional) translation of the item.
- class pytenno.models.items.ItemInOrder(*, id: str, url_name: str, icon: str, icon_format: Optional[IconFormat] = None, sub_icon: Optional[str] = None, thumb: str, tags: list[str], mod_max_rank: Optional[int] = None, subtypes: Optional[list[pytenno.models.enums.Subtype]] = None, cyan_stars: Optional[int] = None, amber_stars: Optional[int] = None, ducats: Optional[int] = None, en: TranslatedItemName, ru: TranslatedItemName, ko: TranslatedItemName, fr: TranslatedItemName, de: TranslatedItemName, sv: TranslatedItemName, zh_hant: TranslatedItemName, zh_hans: TranslatedItemName, pt: TranslatedItemName, es: TranslatedItemName, pl: TranslatedItemName)[source]
Represents an item in an order.
- de: TranslatedItemName
The German name of the item.
- en: TranslatedItemName
The English name of the item.
- es: TranslatedItemName
The Spanish name of the item.
- fr: TranslatedItemName
The French name of the item.
- icon_format: pytenno.models.enums.IconFormat | None = None
The format of the item’s icon.
- ko: TranslatedItemName
The Korean name of the item.
- pl: TranslatedItemName
The Polish name of the item.
- pt: TranslatedItemName
The Portuguese name of the item.
- ru: TranslatedItemName
The Russian name of the item.
- sub_icon: str = None
The URL of the item’s sub icon. For example if the item is part of a set, icon will the icon of the set, while sub_icon will be the icon of the item in the set.
- subtypes: list[pytenno.models.enums.Subtype] | None = None
The subtypes of the item.
- sv: TranslatedItemName
The Swedish name of the item.
- zh_hans: TranslatedItemName
The Chinese (Simplified) name of the item.
- zh_hant: TranslatedItemName
The Chinese (Traditional) name of the item.
- class pytenno.models.items.ItemShort(id: str, url_name: str, thumb: str, item_name: str, vaulted: Optional[bool] = None)[source]
Represents a simplified version of an item.