rustat-python-api 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- rustat-python-api-0.1.1/PKG-INFO +44 -0
- rustat-python-api-0.1.1/README.md +29 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api/parser.py +1 -1
- rustat-python-api-0.1.1/rustat_python_api.egg-info/PKG-INFO +44 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api.egg-info/requires.txt +1 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/setup.py +2 -1
- rustat-python-api-0.1.0/PKG-INFO +0 -16
- rustat-python-api-0.1.0/README.md +0 -1
- rustat-python-api-0.1.0/rustat_python_api.egg-info/PKG-INFO +0 -16
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/LICENSE +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/pyproject.toml +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api/__init__.py +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api/urls.py +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api.egg-info/SOURCES.txt +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api.egg-info/dependency_links.txt +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api.egg-info/top_level.txt +0 -0
- {rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/setup.cfg +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
16
|
+
# rustat-python-api
|
|
17
|
+
|
|
18
|
+
### Python wrapper for the Rustat API
|
|
19
|
+
### Example of usage:
|
|
20
|
+
0. Install the package:
|
|
21
|
+
```bash
|
|
22
|
+
pip install rustat-python-api
|
|
23
|
+
```
|
|
24
|
+
1. Usage:
|
|
25
|
+
```python
|
|
26
|
+
from rustat_python_api import RuStatParser
|
|
27
|
+
|
|
28
|
+
user = "your_login"
|
|
29
|
+
password = "your_password"
|
|
30
|
+
|
|
31
|
+
parser = RuStatParser(user, password)
|
|
32
|
+
|
|
33
|
+
info = parser.get_rpl_info()
|
|
34
|
+
keys = list(info.keys())
|
|
35
|
+
season_id, team_id = keys[-1], info[keys[-1]]["season_teams"][0]["id"]
|
|
36
|
+
|
|
37
|
+
schedule = parser.get_schedule(team_id, season_id)
|
|
38
|
+
keys = list(schedule.keys())
|
|
39
|
+
match_id = keys[-1]
|
|
40
|
+
|
|
41
|
+
events = parser.get_events(match_id)
|
|
42
|
+
|
|
43
|
+
stats = parser.get_match_stats(match_id)
|
|
44
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# rustat-python-api
|
|
2
|
+
|
|
3
|
+
### Python wrapper for the Rustat API
|
|
4
|
+
### Example of usage:
|
|
5
|
+
0. Install the package:
|
|
6
|
+
```bash
|
|
7
|
+
pip install rustat-python-api
|
|
8
|
+
```
|
|
9
|
+
1. Usage:
|
|
10
|
+
```python
|
|
11
|
+
from rustat_python_api import RuStatParser
|
|
12
|
+
|
|
13
|
+
user = "your_login"
|
|
14
|
+
password = "your_password"
|
|
15
|
+
|
|
16
|
+
parser = RuStatParser(user, password)
|
|
17
|
+
|
|
18
|
+
info = parser.get_rpl_info()
|
|
19
|
+
keys = list(info.keys())
|
|
20
|
+
season_id, team_id = keys[-1], info[keys[-1]]["season_teams"][0]["id"]
|
|
21
|
+
|
|
22
|
+
schedule = parser.get_schedule(team_id, season_id)
|
|
23
|
+
keys = list(schedule.keys())
|
|
24
|
+
match_id = keys[-1]
|
|
25
|
+
|
|
26
|
+
events = parser.get_events(match_id)
|
|
27
|
+
|
|
28
|
+
stats = parser.get_match_stats(match_id)
|
|
29
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
16
|
+
# rustat-python-api
|
|
17
|
+
|
|
18
|
+
### Python wrapper for the Rustat API
|
|
19
|
+
### Example of usage:
|
|
20
|
+
0. Install the package:
|
|
21
|
+
```bash
|
|
22
|
+
pip install rustat-python-api
|
|
23
|
+
```
|
|
24
|
+
1. Usage:
|
|
25
|
+
```python
|
|
26
|
+
from rustat_python_api import RuStatParser
|
|
27
|
+
|
|
28
|
+
user = "your_login"
|
|
29
|
+
password = "your_password"
|
|
30
|
+
|
|
31
|
+
parser = RuStatParser(user, password)
|
|
32
|
+
|
|
33
|
+
info = parser.get_rpl_info()
|
|
34
|
+
keys = list(info.keys())
|
|
35
|
+
season_id, team_id = keys[-1], info[keys[-1]]["season_teams"][0]["id"]
|
|
36
|
+
|
|
37
|
+
schedule = parser.get_schedule(team_id, season_id)
|
|
38
|
+
keys = list(schedule.keys())
|
|
39
|
+
match_id = keys[-1]
|
|
40
|
+
|
|
41
|
+
events = parser.get_events(match_id)
|
|
42
|
+
|
|
43
|
+
stats = parser.get_match_stats(match_id)
|
|
44
|
+
```
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='rustat-python-api',
|
|
5
|
-
version='0.1.
|
|
5
|
+
version='0.1.1',
|
|
6
6
|
description='A Python wrapper for RuStat API',
|
|
7
7
|
long_description=open('README.md').read(),
|
|
8
8
|
long_description_content_type='text/markdown',
|
|
@@ -14,6 +14,7 @@ setup(
|
|
|
14
14
|
install_requires=[
|
|
15
15
|
'requests==2.32.3',
|
|
16
16
|
'pandas==2.2.3',
|
|
17
|
+
'tqdm==4.66.5'
|
|
17
18
|
],
|
|
18
19
|
classifiers=[
|
|
19
20
|
'Programming Language :: Python :: 3',
|
rustat-python-api-0.1.0/PKG-INFO
DELETED
|
@@ -1,16 +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
|
-
|
|
16
|
-
# rustat-python-api
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# rustat-python-api
|
|
@@ -1,16 +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
|
-
|
|
16
|
-
# rustat-python-api
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{rustat-python-api-0.1.0 → rustat-python-api-0.1.1}/rustat_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|