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.

amber_stars: int | None = None

The number of amber stars the item has.

cyan_stars: int | None = None

The number of cyan stars the item has.

ducats: int | None = None

The ducat worth of the item.

icon: str

The URL of the item’s icon.

icon_format: pytenno.models.enums.IconFormat | None = None

The format of the item’s icon.

id: str

The ID of the item.

mod_max_rank: int | None = None

The maximum rank 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.

tags: list[str]

The tags of the item.

thumb: str

The URL of the item’s thumbnail.

url_name: str

The URL name 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, and trading_tax attributes.

amber_stars: int | None = None

The number of amber stars the item has.

cyan_stars: int | None = None

The number of cyan stars the item has.

de: LangInItem

The German translation of the item.

ducats: int | None = None

The ducat worth 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: str

The URL of the item’s icon.

icon_format: pytenno.models.enums.IconFormat | None = None

The format of the item’s icon.

id: str

The ID of the item.

ko: LangInItem

The Korean translation of the item.

mastery_level: int

The mastery level of the item.

mod_max_rank: int | None = None

The maximum rank of the item.

pl: LangInItem

The Polish translation of the item.

pt: LangInItem

The Portuguese translation of the item.

quantity_for_set: int = None

The quantity of the item required to obtain the set.

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.

set_root: bool

Whether the item is part of a set.

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.

tags: list[str]

The tags of the item.

thumb: str

The URL of the item’s thumbnail.

trading_tax: int

The trading tax of the item.

url_name: str

The URL name 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.

amber_stars: int | None = None

The number of amber stars the item has.

cyan_stars: int | None = None

The number of cyan stars the item has.

de: TranslatedItemName

The German name of the item.

ducats: int | None = None

The ducat worth 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: str

The URL of the item’s icon.

icon_format: pytenno.models.enums.IconFormat | None = None

The format of the item’s icon.

id: str

The ID of the item.

ko: TranslatedItemName

The Korean name of the item.

mod_max_rank: int | None = None

The maximum rank 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.

tags: list[str]

The tags of the item.

thumb: str

The URL of the item’s thumbnail.

url_name: str

The URL 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.

id: str

The ID of the item.

item_name: str

The name of the item.

thumb: str

The URL of the item’s thumbnail.

url_name: str

The URL name of the item.

vaulted: bool | None = None

None, meaning the item cannot be vaulted/unvaulted.

Type

Whether the item is vaulted. Default

class pytenno.models.items.LangInItem(item_name: str, description: str, wiki_link: str | None, drop: list[pytenno.models.droptable.Drop])[source]

Represents an item’s localized data.

description: str

The translated description of the item.

drop: list[pytenno.models.droptable.Drop]

Where the item can be found.

item_name: str

The translated name of the item.

The link to the wiki page of the item.

class pytenno.models.items.TranslatedItemName(*, item_name: str)[source]

Represents an item’s localized name.

item_name: str

The translated name of the item.