pytenno.models.rivens

class pytenno.models.rivens.PartialRivenAttribute(positive: bool, value: int, url_name: str)[source]

Represents a partial riven attribute.

positive: bool

Whether the attribute is positive.

url_name: str

The URL name of the attribute.

value: int

The value of the attribute.

class pytenno.models.rivens.RivenAttribute(*, id: str, url_name: str, group: RivenAttributeGroup, prefix: str = '', suffix: str = '', positive_is_negative: bool, exclusive_to: Optional[list[pytenno.models.enums.RivenWeaponType]] = None, effect: str, units: Optional[MeasurementUnit] = None, negative_only: bool, search_only: bool)[source]

Represents a riven attribute. Most rivens have multiple attributes.

effect: str

The name of the effect of the riven attribute. Depends on the requested language.

exclusive_to: list[pytenno.models.enums.RivenWeaponType] | None = None

The types of weapons that the attribute is exclusive to. Default is None, meaning it is not exclusive to any weapon.

group: RivenAttributeGroup

The group of the riven attribute.

id: str

The ID of the riven attribute.

negative_only: bool

Whether the attribute only appears as a negative.

positive_is_negative: bool

Whether the positive attribute is actually negative.

prefix: str = ''

The prefix of the riven attribute. Default is empty string.

search_only: bool

Whether the attribute only appears in search results.

suffix: str = ''

The suffix of the riven attribute. Default is empty string.

units: pytenno.models.enums.MeasurementUnit | None = None

The units of the riven attribute. Default is None, meaning it is not measured in any units.

url_name: str

The URL name of the riven attribute.

class pytenno.models.rivens.RivenItem(id: str, item_name: str, url_name: str, group: RivenWeaponGroup, riven_type: RivenWeaponType, icon: str, icon_format: IconFormat, thumb: str)[source]

Represents a riven item.

group: RivenWeaponGroup

The group of the riven item.

icon: str

The icon URL of the riven item.

icon_format: IconFormat

The format of the icon URL of the riven item.

id: str

The ID of the riven item.

item_name: str

The name of the riven item.

riven_type: RivenWeaponType

The type of the riven item.

thumb: str

The thumbnail URL of the riven item.

url_name: str

The URL name of the riven item.