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,73 @@
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 Lor-matchApi:
8
+ def __init__(self, http: HttpClient):
9
+ self.http = http
10
+
11
+
12
+ async def get_match_ids_by_p_u_u_i_d(
13
+ self,
14
+ region: str,
15
+
16
+ puuid: str,
17
+
18
+ ) -> List[str]:
19
+ """
20
+ Get a list of match ids by PUUID
21
+ """
22
+ path = "/lor/match/v1/matches/by-puuid/{puuid}/ids"
23
+ # Replace path params
24
+
25
+ path = path.replace("{" + "puuid" + "}", str(puuid))
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_match(
44
+ self,
45
+ region: str,
46
+
47
+ matchId: str,
48
+
49
+ ) -> lor-match-v1.MatchDto:
50
+ """
51
+ Get match by id
52
+ """
53
+ path = "/lor/match/v1/matches/{matchId}"
54
+ # Replace path params
55
+
56
+ path = path.replace("{" + "matchId" + "}", str(matchId))
57
+
58
+
59
+ # Query params
60
+ params = {
61
+
62
+ }
63
+ # Filter None
64
+ params = {k: v for k, v in params.items() if v is not None}
65
+
66
+ response = await self.http.request(
67
+ method="GET",
68
+ url=path,
69
+ region_or_platform=region,
70
+ params=params
71
+ )
72
+ return response.json()
73
+
@@ -0,0 +1,38 @@
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 Lor-rankedApi:
8
+ def __init__(self, http: HttpClient):
9
+ self.http = http
10
+
11
+
12
+ async def get_leaderboards(
13
+ self,
14
+ region: str,
15
+
16
+ ) -> lor-ranked-v1.LeaderboardDto:
17
+ """
18
+ Get the players in Master tier.
19
+ """
20
+ path = "/lor/ranked/v1/leaderboards"
21
+ # Replace path params
22
+
23
+
24
+ # Query params
25
+ params = {
26
+
27
+ }
28
+ # Filter None
29
+ params = {k: v for k, v in params.items() if v is not None}
30
+
31
+ response = await self.http.request(
32
+ method="GET",
33
+ url=path,
34
+ region_or_platform=region,
35
+ params=params
36
+ )
37
+ return response.json()
38
+
@@ -0,0 +1,38 @@
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 Lor-statusApi:
8
+ def __init__(self, http: HttpClient):
9
+ self.http = http
10
+
11
+
12
+ async def get_platform_data(
13
+ self,
14
+ region: str,
15
+
16
+ ) -> lor-status-v1.PlatformDataDto:
17
+ """
18
+ Get Legends of Runeterra status for the given platform.
19
+ """
20
+ path = "/lor/status/v1/platform-data"
21
+ # Replace path params
22
+
23
+
24
+ # Query params
25
+ params = {
26
+
27
+ }
28
+ # Filter None
29
+ params = {k: v for k, v in params.items() if v is not None}
30
+
31
+ response = await self.http.request(
32
+ method="GET",
33
+ url=path,
34
+ region_or_platform=region,
35
+ params=params
36
+ )
37
+ return response.json()
38
+
@@ -0,0 +1,70 @@
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 Lor_deckApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_decks(
12
+ self,
13
+ region: str,
14
+
15
+ ) -> List[lor_deck_v1_DeckDto]:
16
+ """
17
+ Get a list of the calling user's decks.
18
+ """
19
+ path = "/lor/deck/v1/decks/me"
20
+ # Replace path params
21
+
22
+
23
+ # Query params
24
+ params = {
25
+
26
+ }
27
+ # Filter None
28
+ params = {k: v for k, v in params.items() if v is not None}
29
+
30
+ response = await self.http.request(
31
+ method="GET",
32
+ url=path,
33
+ region_or_platform=region,
34
+ params=params
35
+ )
36
+
37
+ from pydantic import TypeAdapter
38
+ return TypeAdapter(List[lor_deck_v1_DeckDto]).validate_python(response.json())
39
+
40
+
41
+ async def create_deck(
42
+ self,
43
+ region: str,
44
+
45
+ ) -> str:
46
+ """
47
+ Create a new deck for the calling user.
48
+ """
49
+ path = "/lor/deck/v1/decks/me"
50
+ # Replace path params
51
+
52
+
53
+ # Query params
54
+ params = {
55
+
56
+ }
57
+ # Filter None
58
+ params = {k: v for k, v in params.items() if v is not None}
59
+
60
+ response = await self.http.request(
61
+ method="POST",
62
+ url=path,
63
+ region_or_platform=region,
64
+ params=params
65
+ )
66
+
67
+ from pydantic import TypeAdapter
68
+ return TypeAdapter(str).validate_python(response.json())
69
+
70
+
@@ -0,0 +1,40 @@
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 Lor_inventoryApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_cards(
12
+ self,
13
+ region: str,
14
+
15
+ ) -> List[lor_inventory_v1_CardDto]:
16
+ """
17
+ Return a list of cards owned by the calling user.
18
+ """
19
+ path = "/lor/inventory/v1/cards/me"
20
+ # Replace path params
21
+
22
+
23
+ # Query params
24
+ params = {
25
+
26
+ }
27
+ # Filter None
28
+ params = {k: v for k, v in params.items() if v is not None}
29
+
30
+ response = await self.http.request(
31
+ method="GET",
32
+ url=path,
33
+ region_or_platform=region,
34
+ params=params
35
+ )
36
+
37
+ from pydantic import TypeAdapter
38
+ return TypeAdapter(List[lor_inventory_v1_CardDto]).validate_python(response.json())
39
+
40
+
@@ -0,0 +1,78 @@
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 Lor_matchApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_match_ids_by_puuid(
12
+ self,
13
+ region: str,
14
+
15
+ puuid: str,
16
+
17
+ ) -> List[str]:
18
+ """
19
+ Get a list of match ids by PUUID
20
+ """
21
+ path = "/lor/match/v1/matches/by-puuid/{puuid}/ids"
22
+ # Replace path params
23
+
24
+ path = path.replace("{" + "puuid" + "}", str(puuid))
25
+
26
+
27
+ # Query params
28
+ params = {
29
+
30
+ }
31
+ # Filter None
32
+ params = {k: v for k, v in params.items() if v is not None}
33
+
34
+ response = await self.http.request(
35
+ method="GET",
36
+ url=path,
37
+ region_or_platform=region,
38
+ params=params
39
+ )
40
+
41
+ from pydantic import TypeAdapter
42
+ return TypeAdapter(List[str]).validate_python(response.json())
43
+
44
+
45
+ async def get_match(
46
+ self,
47
+ region: str,
48
+
49
+ matchId: str,
50
+
51
+ ) -> lor_match_v1_MatchDto:
52
+ """
53
+ Get match by id
54
+ """
55
+ path = "/lor/match/v1/matches/{matchId}"
56
+ # Replace path params
57
+
58
+ path = path.replace("{" + "matchId" + "}", str(matchId))
59
+
60
+
61
+ # Query params
62
+ params = {
63
+
64
+ }
65
+ # Filter None
66
+ params = {k: v for k, v in params.items() if v is not None}
67
+
68
+ response = await self.http.request(
69
+ method="GET",
70
+ url=path,
71
+ region_or_platform=region,
72
+ params=params
73
+ )
74
+
75
+ from pydantic import TypeAdapter
76
+ return TypeAdapter(lor_match_v1_MatchDto).validate_python(response.json())
77
+
78
+
@@ -0,0 +1,40 @@
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 Lor_rankedApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_leaderboards(
12
+ self,
13
+ region: str,
14
+
15
+ ) -> lor_ranked_v1_LeaderboardDto:
16
+ """
17
+ Get the players in Master tier.
18
+ """
19
+ path = "/lor/ranked/v1/leaderboards"
20
+ # Replace path params
21
+
22
+
23
+ # Query params
24
+ params = {
25
+
26
+ }
27
+ # Filter None
28
+ params = {k: v for k, v in params.items() if v is not None}
29
+
30
+ response = await self.http.request(
31
+ method="GET",
32
+ url=path,
33
+ region_or_platform=region,
34
+ params=params
35
+ )
36
+
37
+ from pydantic import TypeAdapter
38
+ return TypeAdapter(lor_ranked_v1_LeaderboardDto).validate_python(response.json())
39
+
40
+
@@ -0,0 +1,40 @@
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 Lor_statusApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_platform_data(
12
+ self,
13
+ region: str,
14
+
15
+ ) -> lor_status_v1_PlatformDataDto:
16
+ """
17
+ Get Legends of Runeterra status for the given platform.
18
+ """
19
+ path = "/lor/status/v1/platform-data"
20
+ # Replace path params
21
+
22
+
23
+ # Query params
24
+ params = {
25
+
26
+ }
27
+ # Filter None
28
+ params = {k: v for k, v in params.items() if v is not None}
29
+
30
+ response = await self.http.request(
31
+ method="GET",
32
+ url=path,
33
+ region_or_platform=region,
34
+ params=params
35
+ )
36
+
37
+ from pydantic import TypeAdapter
38
+ return TypeAdapter(lor_status_v1_PlatformDataDto).validate_python(response.json())
39
+
40
+
@@ -0,0 +1,170 @@
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 MatchApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_match_ids_by_puuid(
12
+ self,
13
+ region: str,
14
+
15
+ puuid: str,
16
+
17
+ count: int = None,
18
+
19
+ endTime: int = None,
20
+
21
+ queue: int = None,
22
+
23
+ start: int = None,
24
+
25
+ startTime: int = None,
26
+
27
+ type: str = None,
28
+
29
+ ) -> List[str]:
30
+ """
31
+ Get a list of match ids by puuid
32
+ """
33
+ path = "/lol/match/v5/matches/by-puuid/{puuid}/ids"
34
+ # Replace path params
35
+
36
+ path = path.replace("{" + "puuid" + "}", str(puuid))
37
+
38
+
39
+ # Query params
40
+ params = {
41
+
42
+ "count": count,
43
+
44
+ "endTime": endTime,
45
+
46
+ "queue": queue,
47
+
48
+ "start": start,
49
+
50
+ "startTime": startTime,
51
+
52
+ "type": type,
53
+
54
+ }
55
+ # Filter None
56
+ params = {k: v for k, v in params.items() if v is not None}
57
+
58
+ response = await self.http.request(
59
+ method="GET",
60
+ url=path,
61
+ region_or_platform=region,
62
+ params=params
63
+ )
64
+
65
+ from pydantic import TypeAdapter
66
+ return TypeAdapter(List[str]).validate_python(response.json())
67
+
68
+
69
+ async def get_replay(
70
+ self,
71
+ region: str,
72
+
73
+ puuid: str,
74
+
75
+ ) -> match_v5_ReplayDTO:
76
+ """
77
+ Get player replays
78
+ """
79
+ path = "/lol/match/v5/matches/by-puuid/{puuid}/replays"
80
+ # Replace path params
81
+
82
+ path = path.replace("{" + "puuid" + "}", str(puuid))
83
+
84
+
85
+ # Query params
86
+ params = {
87
+
88
+ }
89
+ # Filter None
90
+ params = {k: v for k, v in params.items() if v is not None}
91
+
92
+ response = await self.http.request(
93
+ method="GET",
94
+ url=path,
95
+ region_or_platform=region,
96
+ params=params
97
+ )
98
+
99
+ from pydantic import TypeAdapter
100
+ return TypeAdapter(match_v5_ReplayDTO).validate_python(response.json())
101
+
102
+
103
+ async def get_match(
104
+ self,
105
+ region: str,
106
+
107
+ matchId: str,
108
+
109
+ ) -> match_v5_MatchDto:
110
+ """
111
+ Get a match by match id
112
+ """
113
+ path = "/lol/match/v5/matches/{matchId}"
114
+ # Replace path params
115
+
116
+ path = path.replace("{" + "matchId" + "}", str(matchId))
117
+
118
+
119
+ # Query params
120
+ params = {
121
+
122
+ }
123
+ # Filter None
124
+ params = {k: v for k, v in params.items() if v is not None}
125
+
126
+ response = await self.http.request(
127
+ method="GET",
128
+ url=path,
129
+ region_or_platform=region,
130
+ params=params
131
+ )
132
+
133
+ from pydantic import TypeAdapter
134
+ return TypeAdapter(match_v5_MatchDto).validate_python(response.json())
135
+
136
+
137
+ async def get_timeline(
138
+ self,
139
+ region: str,
140
+
141
+ matchId: str,
142
+
143
+ ) -> match_v5_TimelineDto:
144
+ """
145
+ Get a match timeline by match id
146
+ """
147
+ path = "/lol/match/v5/matches/{matchId}/timeline"
148
+ # Replace path params
149
+
150
+ path = path.replace("{" + "matchId" + "}", str(matchId))
151
+
152
+
153
+ # Query params
154
+ params = {
155
+
156
+ }
157
+ # Filter None
158
+ params = {k: v for k, v in params.items() if v is not None}
159
+
160
+ response = await self.http.request(
161
+ method="GET",
162
+ url=path,
163
+ region_or_platform=region,
164
+ params=params
165
+ )
166
+
167
+ from pydantic import TypeAdapter
168
+ return TypeAdapter(match_v5_TimelineDto).validate_python(response.json())
169
+
170
+
@@ -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 Riftbound-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
+ ) -> riftbound-content-v1.RiftboundContentDTO:
19
+ """
20
+ Get riftbound content
21
+ """
22
+ path = "/riftbound/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
+
@@ -0,0 +1,44 @@
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 Riftbound_contentApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_content(
12
+ self,
13
+ region: str,
14
+
15
+ locale: str = None,
16
+
17
+ ) -> riftbound_content_v1_RiftboundContentDTO:
18
+ """
19
+ Get riftbound content
20
+ """
21
+ path = "/riftbound/content/v1/contents"
22
+ # Replace path params
23
+
24
+
25
+ # Query params
26
+ params = {
27
+
28
+ "locale": locale,
29
+
30
+ }
31
+ # Filter None
32
+ params = {k: v for k, v in params.items() if v is not None}
33
+
34
+ response = await self.http.request(
35
+ method="GET",
36
+ url=path,
37
+ region_or_platform=region,
38
+ params=params
39
+ )
40
+
41
+ from pydantic import TypeAdapter
42
+ return TypeAdapter(riftbound_content_v1_RiftboundContentDTO).validate_python(response.json())
43
+
44
+