riotskillissue 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. riotskillissue/__init__.py +5 -0
  2. riotskillissue/api/__init__.py +0 -0
  3. riotskillissue/api/client_mixin.py +131 -0
  4. riotskillissue/api/endpoints/account.py +188 -0
  5. riotskillissue/api/endpoints/champion-mastery.py +143 -0
  6. riotskillissue/api/endpoints/champion.py +40 -0
  7. riotskillissue/api/endpoints/champion_mastery.py +154 -0
  8. riotskillissue/api/endpoints/clash.py +176 -0
  9. riotskillissue/api/endpoints/league-exp.py +54 -0
  10. riotskillissue/api/endpoints/league.py +226 -0
  11. riotskillissue/api/endpoints/league_exp.py +56 -0
  12. riotskillissue/api/endpoints/lol-challenges.py +197 -0
  13. riotskillissue/api/endpoints/lol-rso-match.py +124 -0
  14. riotskillissue/api/endpoints/lol-status.py +38 -0
  15. riotskillissue/api/endpoints/lol_challenges.py +214 -0
  16. riotskillissue/api/endpoints/lol_rso_match.py +132 -0
  17. riotskillissue/api/endpoints/lol_status.py +40 -0
  18. riotskillissue/api/endpoints/lor-deck.py +65 -0
  19. riotskillissue/api/endpoints/lor-inventory.py +38 -0
  20. riotskillissue/api/endpoints/lor-match.py +73 -0
  21. riotskillissue/api/endpoints/lor-ranked.py +38 -0
  22. riotskillissue/api/endpoints/lor-status.py +38 -0
  23. riotskillissue/api/endpoints/lor_deck.py +70 -0
  24. riotskillissue/api/endpoints/lor_inventory.py +40 -0
  25. riotskillissue/api/endpoints/lor_match.py +78 -0
  26. riotskillissue/api/endpoints/lor_ranked.py +40 -0
  27. riotskillissue/api/endpoints/lor_status.py +40 -0
  28. riotskillissue/api/endpoints/match.py +170 -0
  29. riotskillissue/api/endpoints/riftbound-content.py +42 -0
  30. riotskillissue/api/endpoints/riftbound_content.py +44 -0
  31. riotskillissue/api/endpoints/spectator-tft.py +42 -0
  32. riotskillissue/api/endpoints/spectator.py +44 -0
  33. riotskillissue/api/endpoints/spectator_tft.py +44 -0
  34. riotskillissue/api/endpoints/summoner.py +74 -0
  35. riotskillissue/api/endpoints/tft-league.py +240 -0
  36. riotskillissue/api/endpoints/tft-match.py +89 -0
  37. riotskillissue/api/endpoints/tft-status.py +38 -0
  38. riotskillissue/api/endpoints/tft-summoner.py +69 -0
  39. riotskillissue/api/endpoints/tft_league.py +260 -0
  40. riotskillissue/api/endpoints/tft_match.py +94 -0
  41. riotskillissue/api/endpoints/tft_status.py +40 -0
  42. riotskillissue/api/endpoints/tft_summoner.py +74 -0
  43. riotskillissue/api/endpoints/tournament-stub.py +162 -0
  44. riotskillissue/api/endpoints/tournament.py +243 -0
  45. riotskillissue/api/endpoints/tournament_stub.py +176 -0
  46. riotskillissue/api/endpoints/val-console-match.py +108 -0
  47. riotskillissue/api/endpoints/val-console-ranked.py +54 -0
  48. riotskillissue/api/endpoints/val-content.py +42 -0
  49. riotskillissue/api/endpoints/val-match.py +104 -0
  50. riotskillissue/api/endpoints/val-ranked.py +50 -0
  51. riotskillissue/api/endpoints/val-status.py +38 -0
  52. riotskillissue/api/endpoints/val_console_match.py +116 -0
  53. riotskillissue/api/endpoints/val_console_ranked.py +56 -0
  54. riotskillissue/api/endpoints/val_content.py +44 -0
  55. riotskillissue/api/endpoints/val_match.py +112 -0
  56. riotskillissue/api/endpoints/val_ranked.py +52 -0
  57. riotskillissue/api/endpoints/val_status.py +40 -0
  58. riotskillissue/api/models.py +4295 -0
  59. riotskillissue/auth.py +76 -0
  60. riotskillissue/cli.py +84 -0
  61. riotskillissue/core/cache.py +60 -0
  62. riotskillissue/core/client.py +47 -0
  63. riotskillissue/core/config.py +19 -0
  64. riotskillissue/core/http.py +144 -0
  65. riotskillissue/core/pagination.py +63 -0
  66. riotskillissue/core/ratelimit.py +185 -0
  67. riotskillissue/core/types.py +57 -0
  68. riotskillissue/core/utils.py +25 -0
  69. riotskillissue/static.py +71 -0
  70. riotskillissue/testing.py +46 -0
  71. riotskillissue-0.1.0.dist-info/METADATA +29 -0
  72. riotskillissue-0.1.0.dist-info/RECORD +75 -0
  73. riotskillissue-0.1.0.dist-info/WHEEL +4 -0
  74. riotskillissue-0.1.0.dist-info/entry_points.txt +2 -0
  75. riotskillissue-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,243 @@
1
+ # Generated Code. Do not edit.
2
+ from typing import Optional, List, Dict, Any
3
+ from riotskillissue.core.http import HttpClient
4
+ from riotskillissue.api.models import *
5
+
6
+ class TournamentApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def create_tournament_code(
12
+ self,
13
+ region: str,
14
+
15
+ tournamentId: int,
16
+
17
+ count: int = None,
18
+
19
+ ) -> List[str]:
20
+ """
21
+ Create a tournament code for the given tournament.
22
+ """
23
+ path = "/lol/tournament/v5/codes"
24
+ # Replace path params
25
+
26
+
27
+ # Query params
28
+ params = {
29
+
30
+ "tournamentId": tournamentId,
31
+
32
+ "count": count,
33
+
34
+ }
35
+ # Filter None
36
+ params = {k: v for k, v in params.items() if v is not None}
37
+
38
+ response = await self.http.request(
39
+ method="POST",
40
+ url=path,
41
+ region_or_platform=region,
42
+ params=params
43
+ )
44
+
45
+ from pydantic import TypeAdapter
46
+ return TypeAdapter(List[str]).validate_python(response.json())
47
+
48
+
49
+ async def get_tournament_code(
50
+ self,
51
+ region: str,
52
+
53
+ tournamentCode: str,
54
+
55
+ ) -> tournament_v5_TournamentCodeV5DTO:
56
+ """
57
+ Returns the tournament code DTO associated with a tournament code string.
58
+ """
59
+ path = "/lol/tournament/v5/codes/{tournamentCode}"
60
+ # Replace path params
61
+
62
+ path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
63
+
64
+
65
+ # Query params
66
+ params = {
67
+
68
+ }
69
+ # Filter None
70
+ params = {k: v for k, v in params.items() if v is not None}
71
+
72
+ response = await self.http.request(
73
+ method="GET",
74
+ url=path,
75
+ region_or_platform=region,
76
+ params=params
77
+ )
78
+
79
+ from pydantic import TypeAdapter
80
+ return TypeAdapter(tournament_v5_TournamentCodeV5DTO).validate_python(response.json())
81
+
82
+
83
+ async def update_code(
84
+ self,
85
+ region: str,
86
+
87
+ tournamentCode: str,
88
+
89
+ ) -> None:
90
+ """
91
+ Update the pick type, map, spectator type, or allowed puuids for a code.
92
+ """
93
+ path = "/lol/tournament/v5/codes/{tournamentCode}"
94
+ # Replace path params
95
+
96
+ path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
97
+
98
+
99
+ # Query params
100
+ params = {
101
+
102
+ }
103
+ # Filter None
104
+ params = {k: v for k, v in params.items() if v is not None}
105
+
106
+ response = await self.http.request(
107
+ method="PUT",
108
+ url=path,
109
+ region_or_platform=region,
110
+ params=params
111
+ )
112
+
113
+ return response.json()
114
+
115
+
116
+ async def get_games(
117
+ self,
118
+ region: str,
119
+
120
+ tournamentCode: str,
121
+
122
+ ) -> List[tournament_v5_TournamentGamesV5]:
123
+ """
124
+ Get games details
125
+ """
126
+ path = "/lol/tournament/v5/games/by-code/{tournamentCode}"
127
+ # Replace path params
128
+
129
+ path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
130
+
131
+
132
+ # Query params
133
+ params = {
134
+
135
+ }
136
+ # Filter None
137
+ params = {k: v for k, v in params.items() if v is not None}
138
+
139
+ response = await self.http.request(
140
+ method="GET",
141
+ url=path,
142
+ region_or_platform=region,
143
+ params=params
144
+ )
145
+
146
+ from pydantic import TypeAdapter
147
+ return TypeAdapter(List[tournament_v5_TournamentGamesV5]).validate_python(response.json())
148
+
149
+
150
+ async def get_lobby_events_by_code(
151
+ self,
152
+ region: str,
153
+
154
+ tournamentCode: str,
155
+
156
+ ) -> tournament_v5_LobbyEventV5DTOWrapper:
157
+ """
158
+ Gets a list of lobby events by tournament code.
159
+ """
160
+ path = "/lol/tournament/v5/lobby-events/by-code/{tournamentCode}"
161
+ # Replace path params
162
+
163
+ path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
164
+
165
+
166
+ # Query params
167
+ params = {
168
+
169
+ }
170
+ # Filter None
171
+ params = {k: v for k, v in params.items() if v is not None}
172
+
173
+ response = await self.http.request(
174
+ method="GET",
175
+ url=path,
176
+ region_or_platform=region,
177
+ params=params
178
+ )
179
+
180
+ from pydantic import TypeAdapter
181
+ return TypeAdapter(tournament_v5_LobbyEventV5DTOWrapper).validate_python(response.json())
182
+
183
+
184
+ async def register_provider_data(
185
+ self,
186
+ region: str,
187
+
188
+ ) -> int:
189
+ """
190
+ Creates a tournament provider and returns its ID.
191
+ """
192
+ path = "/lol/tournament/v5/providers"
193
+ # Replace path params
194
+
195
+
196
+ # Query params
197
+ params = {
198
+
199
+ }
200
+ # Filter None
201
+ params = {k: v for k, v in params.items() if v is not None}
202
+
203
+ response = await self.http.request(
204
+ method="POST",
205
+ url=path,
206
+ region_or_platform=region,
207
+ params=params
208
+ )
209
+
210
+ from pydantic import TypeAdapter
211
+ return TypeAdapter(int).validate_python(response.json())
212
+
213
+
214
+ async def register_tournament(
215
+ self,
216
+ region: str,
217
+
218
+ ) -> int:
219
+ """
220
+ Creates a tournament and returns its ID.
221
+ """
222
+ path = "/lol/tournament/v5/tournaments"
223
+ # Replace path params
224
+
225
+
226
+ # Query params
227
+ params = {
228
+
229
+ }
230
+ # Filter None
231
+ params = {k: v for k, v in params.items() if v is not None}
232
+
233
+ response = await self.http.request(
234
+ method="POST",
235
+ url=path,
236
+ region_or_platform=region,
237
+ params=params
238
+ )
239
+
240
+ from pydantic import TypeAdapter
241
+ return TypeAdapter(int).validate_python(response.json())
242
+
243
+
@@ -0,0 +1,176 @@
1
+ # Generated Code. Do not edit.
2
+ from typing import Optional, List, Dict, Any
3
+ from riotskillissue.core.http import HttpClient
4
+ from riotskillissue.api.models import *
5
+
6
+ class Tournament_stubApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def create_tournament_code(
12
+ self,
13
+ region: str,
14
+
15
+ tournamentId: int,
16
+
17
+ count: int = None,
18
+
19
+ ) -> List[str]:
20
+ """
21
+ Create a tournament code for the given tournament - Stub method
22
+ """
23
+ path = "/lol/tournament-stub/v5/codes"
24
+ # Replace path params
25
+
26
+
27
+ # Query params
28
+ params = {
29
+
30
+ "tournamentId": tournamentId,
31
+
32
+ "count": count,
33
+
34
+ }
35
+ # Filter None
36
+ params = {k: v for k, v in params.items() if v is not None}
37
+
38
+ response = await self.http.request(
39
+ method="POST",
40
+ url=path,
41
+ region_or_platform=region,
42
+ params=params
43
+ )
44
+
45
+ from pydantic import TypeAdapter
46
+ return TypeAdapter(List[str]).validate_python(response.json())
47
+
48
+
49
+ async def get_tournament_code(
50
+ self,
51
+ region: str,
52
+
53
+ tournamentCode: str,
54
+
55
+ ) -> tournament_stub_v5_TournamentCodeV5DTO:
56
+ """
57
+ Returns the tournament code DTO associated with a tournament code string - Stub Method
58
+ """
59
+ path = "/lol/tournament-stub/v5/codes/{tournamentCode}"
60
+ # Replace path params
61
+
62
+ path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
63
+
64
+
65
+ # Query params
66
+ params = {
67
+
68
+ }
69
+ # Filter None
70
+ params = {k: v for k, v in params.items() if v is not None}
71
+
72
+ response = await self.http.request(
73
+ method="GET",
74
+ url=path,
75
+ region_or_platform=region,
76
+ params=params
77
+ )
78
+
79
+ from pydantic import TypeAdapter
80
+ return TypeAdapter(tournament_stub_v5_TournamentCodeV5DTO).validate_python(response.json())
81
+
82
+
83
+ async def get_lobby_events_by_code(
84
+ self,
85
+ region: str,
86
+
87
+ tournamentCode: str,
88
+
89
+ ) -> tournament_stub_v5_LobbyEventV5DTOWrapper:
90
+ """
91
+ Gets a list of lobby events by tournament code - Stub method
92
+ """
93
+ path = "/lol/tournament-stub/v5/lobby-events/by-code/{tournamentCode}"
94
+ # Replace path params
95
+
96
+ path = path.replace("{" + "tournamentCode" + "}", str(tournamentCode))
97
+
98
+
99
+ # Query params
100
+ params = {
101
+
102
+ }
103
+ # Filter None
104
+ params = {k: v for k, v in params.items() if v is not None}
105
+
106
+ response = await self.http.request(
107
+ method="GET",
108
+ url=path,
109
+ region_or_platform=region,
110
+ params=params
111
+ )
112
+
113
+ from pydantic import TypeAdapter
114
+ return TypeAdapter(tournament_stub_v5_LobbyEventV5DTOWrapper).validate_python(response.json())
115
+
116
+
117
+ async def register_provider_data(
118
+ self,
119
+ region: str,
120
+
121
+ ) -> int:
122
+ """
123
+ Creates a tournament provider and returns its ID - Stub method
124
+ """
125
+ path = "/lol/tournament-stub/v5/providers"
126
+ # Replace path params
127
+
128
+
129
+ # Query params
130
+ params = {
131
+
132
+ }
133
+ # Filter None
134
+ params = {k: v for k, v in params.items() if v is not None}
135
+
136
+ response = await self.http.request(
137
+ method="POST",
138
+ url=path,
139
+ region_or_platform=region,
140
+ params=params
141
+ )
142
+
143
+ from pydantic import TypeAdapter
144
+ return TypeAdapter(int).validate_python(response.json())
145
+
146
+
147
+ async def register_tournament(
148
+ self,
149
+ region: str,
150
+
151
+ ) -> int:
152
+ """
153
+ Creates a tournament and returns its ID - Stub method
154
+ """
155
+ path = "/lol/tournament-stub/v5/tournaments"
156
+ # Replace path params
157
+
158
+
159
+ # Query params
160
+ params = {
161
+
162
+ }
163
+ # Filter None
164
+ params = {k: v for k, v in params.items() if v is not None}
165
+
166
+ response = await self.http.request(
167
+ method="POST",
168
+ url=path,
169
+ region_or_platform=region,
170
+ params=params
171
+ )
172
+
173
+ from pydantic import TypeAdapter
174
+ return TypeAdapter(int).validate_python(response.json())
175
+
176
+
@@ -0,0 +1,108 @@
1
+ # Generated Code. Do not edit.
2
+ from typing import Optional, List, Dict, Any
3
+ from riot.core.http import HttpClient
4
+ from riot.core.types import Region, Platform
5
+ from riot.api.models import *
6
+
7
+ class Val-console-matchApi:
8
+ def __init__(self, http: HttpClient):
9
+ self.http = http
10
+
11
+
12
+ async def get_match(
13
+ self,
14
+ region: str,
15
+
16
+ matchId: str,
17
+
18
+ ) -> val-console-match-v1.MatchDto:
19
+ """
20
+ Get match by id
21
+ """
22
+ path = "/val/match/console/v1/matches/{matchId}"
23
+ # Replace path params
24
+
25
+ path = path.replace("{" + "matchId" + "}", str(matchId))
26
+
27
+
28
+ # Query params
29
+ params = {
30
+
31
+ }
32
+ # Filter None
33
+ params = {k: v for k, v in params.items() if v is not None}
34
+
35
+ response = await self.http.request(
36
+ method="GET",
37
+ url=path,
38
+ region_or_platform=region,
39
+ params=params
40
+ )
41
+ return response.json()
42
+
43
+ async def get_matchlist(
44
+ self,
45
+ region: str,
46
+
47
+ puuid: str,
48
+
49
+ platformType: str,
50
+
51
+ ) -> val-console-match-v1.MatchlistDto:
52
+ """
53
+ Get matchlist for games played by puuid and platform type
54
+ """
55
+ path = "/val/match/console/v1/matchlists/by-puuid/{puuid}"
56
+ # Replace path params
57
+
58
+ path = path.replace("{" + "puuid" + "}", str(puuid))
59
+
60
+
61
+ # Query params
62
+ params = {
63
+
64
+ "platformType": platformType,
65
+
66
+ }
67
+ # Filter None
68
+ params = {k: v for k, v in params.items() if v is not None}
69
+
70
+ response = await self.http.request(
71
+ method="GET",
72
+ url=path,
73
+ region_or_platform=region,
74
+ params=params
75
+ )
76
+ return response.json()
77
+
78
+ async def get_recent(
79
+ self,
80
+ region: str,
81
+
82
+ queue: str,
83
+
84
+ ) -> val-console-match-v1.RecentMatchesDto:
85
+ """
86
+ Get recent matches
87
+ """
88
+ path = "/val/match/console/v1/recent-matches/by-queue/{queue}"
89
+ # Replace path params
90
+
91
+ path = path.replace("{" + "queue" + "}", str(queue))
92
+
93
+
94
+ # Query params
95
+ params = {
96
+
97
+ }
98
+ # Filter None
99
+ params = {k: v for k, v in params.items() if v is not None}
100
+
101
+ response = await self.http.request(
102
+ method="GET",
103
+ url=path,
104
+ region_or_platform=region,
105
+ params=params
106
+ )
107
+ return response.json()
108
+
@@ -0,0 +1,54 @@
1
+ # Generated Code. Do not edit.
2
+ from typing import Optional, List, Dict, Any
3
+ from riot.core.http import HttpClient
4
+ from riot.core.types import Region, Platform
5
+ from riot.api.models import *
6
+
7
+ class Val-console-rankedApi:
8
+ def __init__(self, http: HttpClient):
9
+ self.http = http
10
+
11
+
12
+ async def get_leaderboard(
13
+ self,
14
+ region: str,
15
+
16
+ actId: str,
17
+
18
+ platformType: str,
19
+
20
+ startIndex: int = None,
21
+
22
+ size: int = None,
23
+
24
+ ) -> val-console-ranked-v1.LeaderboardDto:
25
+ """
26
+ Get leaderboard for the competitive queue
27
+ """
28
+ path = "/val/console/ranked/v1/leaderboards/by-act/{actId}"
29
+ # Replace path params
30
+
31
+ path = path.replace("{" + "actId" + "}", str(actId))
32
+
33
+
34
+ # Query params
35
+ params = {
36
+
37
+ "platformType": platformType,
38
+
39
+ "startIndex": startIndex,
40
+
41
+ "size": size,
42
+
43
+ }
44
+ # Filter None
45
+ params = {k: v for k, v in params.items() if v is not None}
46
+
47
+ response = await self.http.request(
48
+ method="GET",
49
+ url=path,
50
+ region_or_platform=region,
51
+ params=params
52
+ )
53
+ return response.json()
54
+
@@ -0,0 +1,42 @@
1
+ # Generated Code. Do not edit.
2
+ from typing import Optional, List, Dict, Any
3
+ from riot.core.http import HttpClient
4
+ from riot.core.types import Region, Platform
5
+ from riot.api.models import *
6
+
7
+ class Val-contentApi:
8
+ def __init__(self, http: HttpClient):
9
+ self.http = http
10
+
11
+
12
+ async def get_content(
13
+ self,
14
+ region: str,
15
+
16
+ locale: str = None,
17
+
18
+ ) -> val-content-v1.ContentDto:
19
+ """
20
+ Get content optionally filtered by locale
21
+ """
22
+ path = "/val/content/v1/contents"
23
+ # Replace path params
24
+
25
+
26
+ # Query params
27
+ params = {
28
+
29
+ "locale": locale,
30
+
31
+ }
32
+ # Filter None
33
+ params = {k: v for k, v in params.items() if v is not None}
34
+
35
+ response = await self.http.request(
36
+ method="GET",
37
+ url=path,
38
+ region_or_platform=region,
39
+ params=params
40
+ )
41
+ return response.json()
42
+