rustat-python-api 0.1.0__py3-none-any.whl → 0.1.1__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.
@@ -3,7 +3,7 @@ import pandas as pd
3
3
  from collections import defaultdict
4
4
  from tqdm import tqdm
5
5
 
6
- from urls import URLs
6
+ from .urls import URLs
7
7
 
8
8
 
9
9
  class RuStatParser:
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.1
2
+ Name: rustat-python-api
3
+ Version: 0.1.1
4
+ Summary: A Python wrapper for RuStat API
5
+ Home-page: https://github.com/dailydaniel/rustat-python-api
6
+ Author: Daniel Zholkovsky
7
+ Author-email: daniel@zholkovsky.com
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: requests==2.32.3
16
+ Requires-Dist: pandas==2.2.3
17
+ Requires-Dist: tqdm==4.66.5
18
+
19
+ # rustat-python-api
20
+
21
+ ### Python wrapper for the Rustat API
22
+ ### Example of usage:
23
+ 0. Install the package:
24
+ ```bash
25
+ pip install rustat-python-api
26
+ ```
27
+ 1. Usage:
28
+ ```python
29
+ from rustat_python_api import RuStatParser
30
+
31
+ user = "your_login"
32
+ password = "your_password"
33
+
34
+ parser = RuStatParser(user, password)
35
+
36
+ info = parser.get_rpl_info()
37
+ keys = list(info.keys())
38
+ season_id, team_id = keys[-1], info[keys[-1]]["season_teams"][0]["id"]
39
+
40
+ schedule = parser.get_schedule(team_id, season_id)
41
+ keys = list(schedule.keys())
42
+ match_id = keys[-1]
43
+
44
+ events = parser.get_events(match_id)
45
+
46
+ stats = parser.get_match_stats(match_id)
47
+ ```
@@ -0,0 +1,8 @@
1
+ rustat_python_api/__init__.py,sha256=wJVi55HFoMQltJCu09lzrnTUJ77zBCs-SKORDoLR3jw,61
2
+ rustat_python_api/parser.py,sha256=mmTkNGD0ob0CricbRLLkBTX-lqGMeMzeW6Z7coxb3Po,3836
3
+ rustat_python_api/urls.py,sha256=YZyfFd6UdvDwBF_DC4-xm3H_F5fV4bppeUA2Iur7Acw,604
4
+ rustat_python_api-0.1.1.dist-info/LICENSE,sha256=4Cohqg5p6Mq1xyrzdEX8AvFSA62GSVvapEOr2xK_tgY,57
5
+ rustat_python_api-0.1.1.dist-info/METADATA,sha256=rv6dLV7LW0RkhfFFonz4vVPWMkAUbRiopLDF_M6aJ70,1167
6
+ rustat_python_api-0.1.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
7
+ rustat_python_api-0.1.1.dist-info/top_level.txt,sha256=VK0hmkKZE9YThxolUcoE6JtGI67NFeKJMBLuet8kI4w,18
8
+ rustat_python_api-0.1.1.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: rustat-python-api
3
- Version: 0.1.0
4
- Summary: A Python wrapper for RuStat API
5
- Home-page: https://github.com/dailydaniel/rustat-python-api
6
- Author: Daniel Zholkovsky
7
- Author-email: daniel@zholkovsky.com
8
- License: MIT
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: requests==2.32.3
16
- Requires-Dist: pandas==2.2.3
17
-
18
- # rustat-python-api
@@ -1,8 +0,0 @@
1
- rustat_python_api/__init__.py,sha256=wJVi55HFoMQltJCu09lzrnTUJ77zBCs-SKORDoLR3jw,61
2
- rustat_python_api/parser.py,sha256=1zgY3WVEkbKmUOF82GmuFT3gu7ym7IxOQAG9YVmkw9Q,3835
3
- rustat_python_api/urls.py,sha256=YZyfFd6UdvDwBF_DC4-xm3H_F5fV4bppeUA2Iur7Acw,604
4
- rustat_python_api-0.1.0.dist-info/LICENSE,sha256=4Cohqg5p6Mq1xyrzdEX8AvFSA62GSVvapEOr2xK_tgY,57
5
- rustat_python_api-0.1.0.dist-info/METADATA,sha256=3BbI1xyGY820_j9-7-B1HpwMEBJIFH5yo6y4gDxOhAA,551
6
- rustat_python_api-0.1.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
7
- rustat_python_api-0.1.0.dist-info/top_level.txt,sha256=VK0hmkKZE9YThxolUcoE6JtGI67NFeKJMBLuet8kI4w,18
8
- rustat_python_api-0.1.0.dist-info/RECORD,,