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,104 @@
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-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-match-v1.MatchDto:
19
+ """
20
+ Get match by id
21
+ """
22
+ path = "/val/match/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
+ ) -> val-match-v1.MatchlistDto:
50
+ """
51
+ Get matchlist for games played by puuid
52
+ """
53
+ path = "/val/match/v1/matchlists/by-puuid/{puuid}"
54
+ # Replace path params
55
+
56
+ path = path.replace("{" + "puuid" + "}", str(puuid))
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
+
74
+ async def get_recent(
75
+ self,
76
+ region: str,
77
+
78
+ queue: str,
79
+
80
+ ) -> val-match-v1.RecentMatchesDto:
81
+ """
82
+ Get recent matches
83
+ """
84
+ path = "/val/match/v1/recent-matches/by-queue/{queue}"
85
+ # Replace path params
86
+
87
+ path = path.replace("{" + "queue" + "}", str(queue))
88
+
89
+
90
+ # Query params
91
+ params = {
92
+
93
+ }
94
+ # Filter None
95
+ params = {k: v for k, v in params.items() if v is not None}
96
+
97
+ response = await self.http.request(
98
+ method="GET",
99
+ url=path,
100
+ region_or_platform=region,
101
+ params=params
102
+ )
103
+ return response.json()
104
+
@@ -0,0 +1,50 @@
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-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
+ size: int = None,
19
+
20
+ startIndex: int = None,
21
+
22
+ ) -> val-ranked-v1.LeaderboardDto:
23
+ """
24
+ Get leaderboard for the competitive queue
25
+ """
26
+ path = "/val/ranked/v1/leaderboards/by-act/{actId}"
27
+ # Replace path params
28
+
29
+ path = path.replace("{" + "actId" + "}", str(actId))
30
+
31
+
32
+ # Query params
33
+ params = {
34
+
35
+ "size": size,
36
+
37
+ "startIndex": startIndex,
38
+
39
+ }
40
+ # Filter None
41
+ params = {k: v for k, v in params.items() if v is not None}
42
+
43
+ response = await self.http.request(
44
+ method="GET",
45
+ url=path,
46
+ region_or_platform=region,
47
+ params=params
48
+ )
49
+ return response.json()
50
+
@@ -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 Val-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
+ ) -> val-status-v1.PlatformDataDto:
17
+ """
18
+ Get VALORANT status for the given platform.
19
+ """
20
+ path = "/val/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,116 @@
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 Val_console_matchApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_match(
12
+ self,
13
+ region: str,
14
+
15
+ matchId: str,
16
+
17
+ ) -> val_console_match_v1_MatchDto:
18
+ """
19
+ Get match by id
20
+ """
21
+ path = "/val/match/console/v1/matches/{matchId}"
22
+ # Replace path params
23
+
24
+ path = path.replace("{" + "matchId" + "}", str(matchId))
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(val_console_match_v1_MatchDto).validate_python(response.json())
43
+
44
+
45
+ async def get_matchlist(
46
+ self,
47
+ region: str,
48
+
49
+ platformType: str,
50
+
51
+ puuid: str,
52
+
53
+ ) -> val_console_match_v1_MatchlistDto:
54
+ """
55
+ Get matchlist for games played by puuid and platform type
56
+ """
57
+ path = "/val/match/console/v1/matchlists/by-puuid/{puuid}"
58
+ # Replace path params
59
+
60
+ path = path.replace("{" + "puuid" + "}", str(puuid))
61
+
62
+
63
+ # Query params
64
+ params = {
65
+
66
+ "platformType": platformType,
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(val_console_match_v1_MatchlistDto).validate_python(response.json())
81
+
82
+
83
+ async def get_recent(
84
+ self,
85
+ region: str,
86
+
87
+ queue: str,
88
+
89
+ ) -> val_console_match_v1_RecentMatchesDto:
90
+ """
91
+ Get recent matches
92
+ """
93
+ path = "/val/match/console/v1/recent-matches/by-queue/{queue}"
94
+ # Replace path params
95
+
96
+ path = path.replace("{" + "queue" + "}", str(queue))
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(val_console_match_v1_RecentMatchesDto).validate_python(response.json())
115
+
116
+
@@ -0,0 +1,56 @@
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 Val_console_rankedApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_leaderboard(
12
+ self,
13
+ region: str,
14
+
15
+ actId: str,
16
+
17
+ platformType: str,
18
+
19
+ size: int = None,
20
+
21
+ startIndex: int = None,
22
+
23
+ ) -> val_console_ranked_v1_LeaderboardDto:
24
+ """
25
+ Get leaderboard for the competitive queue
26
+ """
27
+ path = "/val/console/ranked/v1/leaderboards/by-act/{actId}"
28
+ # Replace path params
29
+
30
+ path = path.replace("{" + "actId" + "}", str(actId))
31
+
32
+
33
+ # Query params
34
+ params = {
35
+
36
+ "platformType": platformType,
37
+
38
+ "size": size,
39
+
40
+ "startIndex": startIndex,
41
+
42
+ }
43
+ # Filter None
44
+ params = {k: v for k, v in params.items() if v is not None}
45
+
46
+ response = await self.http.request(
47
+ method="GET",
48
+ url=path,
49
+ region_or_platform=region,
50
+ params=params
51
+ )
52
+
53
+ from pydantic import TypeAdapter
54
+ return TypeAdapter(val_console_ranked_v1_LeaderboardDto).validate_python(response.json())
55
+
56
+
@@ -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 Val_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
+ ) -> val_content_v1_ContentDto:
18
+ """
19
+ Get content optionally filtered by locale
20
+ """
21
+ path = "/val/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(val_content_v1_ContentDto).validate_python(response.json())
43
+
44
+
@@ -0,0 +1,112 @@
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 Val_matchApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_match(
12
+ self,
13
+ region: str,
14
+
15
+ matchId: str,
16
+
17
+ ) -> val_match_v1_MatchDto:
18
+ """
19
+ Get match by id
20
+ """
21
+ path = "/val/match/v1/matches/{matchId}"
22
+ # Replace path params
23
+
24
+ path = path.replace("{" + "matchId" + "}", str(matchId))
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(val_match_v1_MatchDto).validate_python(response.json())
43
+
44
+
45
+ async def get_matchlist(
46
+ self,
47
+ region: str,
48
+
49
+ puuid: str,
50
+
51
+ ) -> val_match_v1_MatchlistDto:
52
+ """
53
+ Get matchlist for games played by puuid
54
+ """
55
+ path = "/val/match/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
+ }
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(val_match_v1_MatchlistDto).validate_python(response.json())
77
+
78
+
79
+ async def get_recent(
80
+ self,
81
+ region: str,
82
+
83
+ queue: str,
84
+
85
+ ) -> val_match_v1_RecentMatchesDto:
86
+ """
87
+ Get recent matches
88
+ """
89
+ path = "/val/match/v1/recent-matches/by-queue/{queue}"
90
+ # Replace path params
91
+
92
+ path = path.replace("{" + "queue" + "}", str(queue))
93
+
94
+
95
+ # Query params
96
+ params = {
97
+
98
+ }
99
+ # Filter None
100
+ params = {k: v for k, v in params.items() if v is not None}
101
+
102
+ response = await self.http.request(
103
+ method="GET",
104
+ url=path,
105
+ region_or_platform=region,
106
+ params=params
107
+ )
108
+
109
+ from pydantic import TypeAdapter
110
+ return TypeAdapter(val_match_v1_RecentMatchesDto).validate_python(response.json())
111
+
112
+
@@ -0,0 +1,52 @@
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 Val_rankedApi:
7
+ def __init__(self, http: HttpClient):
8
+ self.http = http
9
+
10
+
11
+ async def get_leaderboard(
12
+ self,
13
+ region: str,
14
+
15
+ actId: str,
16
+
17
+ size: int = None,
18
+
19
+ startIndex: int = None,
20
+
21
+ ) -> val_ranked_v1_LeaderboardDto:
22
+ """
23
+ Get leaderboard for the competitive queue
24
+ """
25
+ path = "/val/ranked/v1/leaderboards/by-act/{actId}"
26
+ # Replace path params
27
+
28
+ path = path.replace("{" + "actId" + "}", str(actId))
29
+
30
+
31
+ # Query params
32
+ params = {
33
+
34
+ "size": size,
35
+
36
+ "startIndex": startIndex,
37
+
38
+ }
39
+ # Filter None
40
+ params = {k: v for k, v in params.items() if v is not None}
41
+
42
+ response = await self.http.request(
43
+ method="GET",
44
+ url=path,
45
+ region_or_platform=region,
46
+ params=params
47
+ )
48
+
49
+ from pydantic import TypeAdapter
50
+ return TypeAdapter(val_ranked_v1_LeaderboardDto).validate_python(response.json())
51
+
52
+
@@ -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 Val_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
+ ) -> val_status_v1_PlatformDataDto:
16
+ """
17
+ Get VALORANT status for the given platform.
18
+ """
19
+ path = "/val/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(val_status_v1_PlatformDataDto).validate_python(response.json())
39
+
40
+