rustat-python-api 0.5.6__py3-none-any.whl → 0.5.7__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.
@@ -32,6 +32,20 @@ class RuStatParser:
32
32
  response = requests.get(query)
33
33
  return response.json()
34
34
 
35
+ def get_season_teams(self, season_id: int):
36
+ data = self.resp2data(
37
+ self.urls["tournament_teams"].format(
38
+ user=self.user,
39
+ password=self.password,
40
+ season_id=season_id
41
+ )
42
+ )
43
+
44
+ if data:
45
+ return data['data']['row']
46
+ else:
47
+ return []
48
+
35
49
  def get_rpl_info(self):
36
50
  for season_id in tqdm(range(1, 36)):
37
51
  data = self.resp2data(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rustat-python-api
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: A Python wrapper for RuStat API
5
5
  Home-page: https://github.com/dailydaniel/rustat-python-api
6
6
  Author: Daniel Zholkovsky
@@ -1,12 +1,12 @@
1
1
  rustat_python_api/__init__.py,sha256=Ij-PAm2y5ss_XAZhKTZus35cRPLzvXFyIswDa_Iq3rs,164
2
2
  rustat_python_api/config.py,sha256=eMvi1p8Cfvnbp6Cd4bBOwgehVN7thKnaQV5uzWyGZXM,1844
3
3
  rustat_python_api/models_api.py,sha256=oHXEqeCupvZwjVEdoxf7W9LP7ELFKA8-9DuRXpQHLno,1701
4
- rustat_python_api/parser.py,sha256=liAwAoZdEc7SaZjvRn-9qKsuZiS3w-6p1JsE6ieAthc,9861
4
+ rustat_python_api/parser.py,sha256=PrGvN3vY0oczMsJxyUxBO0Yb1P03Moc74AgGYHYr_X8,10216
5
5
  rustat_python_api/pitch_control.py,sha256=4fTxbODQDJIATVU6QKQROssTFcrDbUmhBCQnaYhLgjc,11543
6
6
  rustat_python_api/processing.py,sha256=46O7wUGv5boWf4A38zYinbtqEC7ke-BwTdEg589XQaw,2816
7
7
  rustat_python_api/urls.py,sha256=iJTD31T6OyXPAhmhViwFXVehrzwsOjBDONA1SIVc_40,1068
8
- rustat_python_api-0.5.6.dist-info/LICENSE,sha256=4Cohqg5p6Mq1xyrzdEX8AvFSA62GSVvapEOr2xK_tgY,57
9
- rustat_python_api-0.5.6.dist-info/METADATA,sha256=GK94vVlmwv5mZdq7XBhd_msfVI_VpVXpEUS_UG7TcOM,1730
10
- rustat_python_api-0.5.6.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
11
- rustat_python_api-0.5.6.dist-info/top_level.txt,sha256=VK0hmkKZE9YThxolUcoE6JtGI67NFeKJMBLuet8kI4w,18
12
- rustat_python_api-0.5.6.dist-info/RECORD,,
8
+ rustat_python_api-0.5.7.dist-info/LICENSE,sha256=4Cohqg5p6Mq1xyrzdEX8AvFSA62GSVvapEOr2xK_tgY,57
9
+ rustat_python_api-0.5.7.dist-info/METADATA,sha256=pvf4VGWCiSys1CrhARL_XRVfvwdFdeZ5ImeRwu-My2Y,1730
10
+ rustat_python_api-0.5.7.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
11
+ rustat_python_api-0.5.7.dist-info/top_level.txt,sha256=VK0hmkKZE9YThxolUcoE6JtGI67NFeKJMBLuet8kI4w,18
12
+ rustat_python_api-0.5.7.dist-info/RECORD,,