Series¶
vlrdevapi._series.namespace.SeriesNamespace
¶
Top-level namespace for series/match data.
Access sub-namespaces for info, vods, players, rounds, performance,
and economy data. Use vlrdevapi.series(series_id) for curried access.
Attributes:
| Name | Type | Description |
|---|---|---|
info |
SeriesInfoNamespace
|
Sub-namespace for series info. |
vods |
SeriesVodsNamespace
|
Sub-namespace for series VODs. |
players |
SeriesPlayersNamespace
|
Sub-namespace for player stats. |
rounds |
SeriesRoundsNamespace
|
Sub-namespace for round-by-round data. |
performance |
SeriesPerformanceNamespace
|
Sub-namespace for performance metrics. |
economy |
SeriesEconomyNamespace
|
Sub-namespace for economy stats. |
Examples:
>>> info = vlrdevapi.series.info(series_id=1)
>>> stats = vlrdevapi.series(1).players(game_id="all")
>>> rounds = vlrdevapi.series(1).rounds(game_id=1)
>>> vods = vlrdevapi.series(1).vods()
Source code in vlrdevapi/_series/namespace.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 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 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |
Attributes¶
economy
property
¶
Access economy stats sub-namespace.
Returns:
| Name | Type | Description |
|---|---|---|
SeriesEconomyNamespace |
SeriesEconomyNamespace
|
Sub-namespace for economy stats. Call |
SeriesEconomyNamespace
|
with |
Example
eco = vlrdevapi.series.economy(series_id=12345)
info
property
¶
Access series info sub-namespace.
Returns:
| Name | Type | Description |
|---|---|---|
SeriesInfoNamespace |
SeriesInfoNamespace
|
Sub-namespace for series info. Call with |
SeriesInfoNamespace
|
|
Example
info = vlrdevapi.series.info(series_id=1)
performance
property
¶
Access performance metrics sub-namespace.
Returns:
| Name | Type | Description |
|---|---|---|
SeriesPerformanceNamespace |
SeriesPerformanceNamespace
|
Sub-namespace for performance. Call |
SeriesPerformanceNamespace
|
with |
Example
perf = vlrdevapi.series.performance(series_id=12345)
players
property
¶
Access player stats sub-namespace.
Returns:
| Name | Type | Description |
|---|---|---|
SeriesPlayersNamespace |
SeriesPlayersNamespace
|
Sub-namespace for player stats. Call with |
SeriesPlayersNamespace
|
|
|
SeriesPlayersNamespace
|
|
Example
stats = vlrdevapi.series.players(series_id=12345, game_id="all")
rounds
property
¶
Access round-by-round data sub-namespace.
Returns:
| Name | Type | Description |
|---|---|---|
SeriesRoundsNamespace |
SeriesRoundsNamespace
|
Sub-namespace for round data. Call with |
SeriesRoundsNamespace
|
|
|
SeriesRoundsNamespace
|
|
Example
rounds = vlrdevapi.series.rounds(series_id=12345, game_id=1)
vods
property
¶
Access VOD links sub-namespace.
Returns:
| Name | Type | Description |
|---|---|---|
SeriesVodsNamespace |
SeriesVodsNamespace
|
Sub-namespace for series VODs. Call with |
SeriesVodsNamespace
|
|
Example
vods = vlrdevapi.series.vods(series_id=12345)
Methods:¶
__call__(series_id)
¶
Create a curried namespace bound to a specific series.
All subsequent calls on the returned object use series_id
automatically without needing to pass it each time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
series_id
|
int
|
The unique series identifier on vlr.gg. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SeriesMatchNamespace |
SeriesMatchNamespace
|
A namespace object with methods |
SeriesMatchNamespace
|
|
|
SeriesMatchNamespace
|
and |
Raises:
| Type | Description |
|---|---|
ValidationError
|
If |
Examples:
>>> ns = vlrdevapi.series(12345)
>>> ns.info().team1.name
'FNATIC'
>>> ns.players(game_id="all").team1.players[0].name
'Boaster'