League
Represents a league entry for a player in a ranked queue.
Source code in nexar/models/league.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
division
instance-attribute
Current rank (IV, III, etc) within the tier (not applicable for Master+).
fresh_blood
instance-attribute
Whether the player is new to their current tier.
hot_streak
instance-attribute
Whether the player is currently on a winning streak.
inactive
instance-attribute
Whether the player has been inactive and is subject to decay.
league_id
instance-attribute
Unique identifier for the league.
league_points
instance-attribute
Current LP (League Points) in the rank.
losses
instance-attribute
Total number of losses in the current season for this queue.
mini_series = None
class-attribute
instance-attribute
Promotion series data if currently in promos, None otherwise.
puuid
instance-attribute
Player's universally unique identifier.
queue_type
instance-attribute
Type of ranked queue.
rank_tuple
property
Returns (tier_index, league_points) for easy sorting by rank.
tier
instance-attribute
Current tier (IRON, BRONZE, ..., CHALLENGER).
total_games
property
Total number of games played (wins + losses) in the current season for this queue.
veteran
instance-attribute
Whether the player is a veteran (has played 100+ games in current tier).
win_rate
property
Win rate as a percentage (0.0 to 100.0). Returns 0.0 if no games played.
wins
instance-attribute
Total number of wins in the current season for this queue.
__ge__(other)
__gt__(other)
__le__(other)
__lt__(other)
from_api_response(data)
classmethod
Create LeagueEntry from API response.
Source code in nexar/models/league.py
Represents mini series progress, colloquially known as 'promos'.
Source code in nexar/models/league.py
losses
instance-attribute
Number of losses in promo.
progress
instance-attribute
String showing the current progress where 'W' represents a win, 'L' represents a loss, and 'N' represents a game not yet played.
target
instance-attribute
Number of wins required for promotion.
wins
instance-attribute
Number of wins in promo.
from_api_response(data)
classmethod
Create MiniSeries from API response.