cbbd 1.4.0__tar.gz → 1.6.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cbbd-1.4.0 → cbbd-1.6.0}/PKG-INFO +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/README.md +6 -4
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/__init__.py +3 -2
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/conferences_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/games_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/lines_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/plays_api.py +1 -1
- cbbd-1.6.0/cbbd/api/ratings_api.py +360 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/stats_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/teams_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/venues_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api_client.py +2 -2
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/configuration.py +3 -3
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/exceptions.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/__init__.py +2 -1
- cbbd-1.6.0/cbbd/models/adjusted_efficiency_info.py +84 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/conference_history.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/conference_history_teams_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/conference_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_box_score_players.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_box_score_players_players_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_box_score_team.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_box_score_team_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_box_score_team_stats_points.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_info.py +11 -4
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_line_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_lines.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_media_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_media_info_broadcasts_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/game_status.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/line_provider_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/play_info.py +9 -2
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/play_info_participants_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/play_type_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/player_season_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/season_type.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/srs_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_roster.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_roster_player.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_roster_player_hometown.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats_field_goals.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats_fouls.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats_four_factors.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats_points.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats_rebounds.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/team_season_unit_stats_turnovers.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/models/venue_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/rest.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd.egg-info/PKG-INFO +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd.egg-info/SOURCES.txt +2 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/pyproject.toml +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/setup.py +2 -2
- cbbd-1.6.0/test/test_adjusted_efficiency_info.py +66 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_conference_history.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_conference_history_teams_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_conference_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_conferences_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_box_score_players.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_box_score_players_players_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_box_score_team.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_box_score_team_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_box_score_team_stats_points.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_info.py +3 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_line_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_lines.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_media_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_media_info_broadcasts_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_game_status.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_games_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_line_provider_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_lines_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_play_info.py +3 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_play_info_participants_inner.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_play_type_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_player_season_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_plays_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_ratings_api.py +7 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_season_type.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_srs_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_stats_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_roster.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_roster_player.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_roster_player_hometown.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats_field_goals.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats_fouls.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats_four_factors.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats_points.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats_rebounds.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_team_season_unit_stats_turnovers.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_teams_api.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_venue_info.py +1 -1
- {cbbd-1.4.0 → cbbd-1.6.0}/test/test_venues_api.py +1 -1
- cbbd-1.4.0/cbbd/api/ratings_api.py +0 -203
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api/__init__.py +0 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/api_response.py +0 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd/py.typed +0 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd.egg-info/dependency_links.txt +0 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd.egg-info/requires.txt +0 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/cbbd.egg-info/top_level.txt +0 -0
- {cbbd-1.4.0 → cbbd-1.6.0}/setup.cfg +0 -0
@@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub
|
|
3
3
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
5
5
|
|
6
|
-
- API version: 1.
|
7
|
-
- Package version: 1.
|
6
|
+
- API version: 1.6.0
|
7
|
+
- Package version: 1.6.0
|
8
8
|
- Generator version: 7.11.0
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
|
10
10
|
|
@@ -16,9 +16,9 @@ Python 3.7+
|
|
16
16
|
### pip install
|
17
17
|
|
18
18
|
```sh
|
19
|
-
pip install cbbd@1.
|
19
|
+
pip install cbbd@1.6.0
|
20
20
|
```
|
21
|
-
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.
|
21
|
+
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.6.0`)
|
22
22
|
|
23
23
|
Then import the package:
|
24
24
|
```python
|
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
|
|
87
87
|
*PlaysApi* | [**get_plays_by_date**](docs/PlaysApi.md#get_plays_by_date) | **GET** /plays/date |
|
88
88
|
*PlaysApi* | [**get_plays_by_player_id**](docs/PlaysApi.md#get_plays_by_player_id) | **GET** /plays/player/{playerId} |
|
89
89
|
*PlaysApi* | [**get_plays_by_team**](docs/PlaysApi.md#get_plays_by_team) | **GET** /plays/team |
|
90
|
+
*RatingsApi* | [**get_adjusted_efficiency**](docs/RatingsApi.md#get_adjusted_efficiency) | **GET** /ratings/adjusted |
|
90
91
|
*RatingsApi* | [**get_srs**](docs/RatingsApi.md#get_srs) | **GET** /ratings/srs |
|
91
92
|
*StatsApi* | [**get_player_season_stats**](docs/StatsApi.md#get_player_season_stats) | **GET** /stats/player/season |
|
92
93
|
*StatsApi* | [**get_team_season_stats**](docs/StatsApi.md#get_team_season_stats) | **GET** /stats/team/season |
|
@@ -97,6 +98,7 @@ Class | Method | HTTP request | Description
|
|
97
98
|
|
98
99
|
## Documentation For Models
|
99
100
|
|
101
|
+
- [AdjustedEfficiencyInfo](docs/AdjustedEfficiencyInfo.md)
|
100
102
|
- [ConferenceHistory](docs/ConferenceHistory.md)
|
101
103
|
- [ConferenceHistoryTeamsInner](docs/ConferenceHistoryTeamsInner.md)
|
102
104
|
- [ConferenceInfo](docs/ConferenceInfo.md)
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
9
9
|
|
10
|
-
The version of the OpenAPI document: 1.
|
10
|
+
The version of the OpenAPI document: 1.6.0
|
11
11
|
Contact: admin@collegefootballdata.com
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
13
13
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "1.
|
18
|
+
__version__ = "1.6.0"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from cbbd.api.conferences_api import ConferencesApi
|
@@ -39,6 +39,7 @@ from cbbd.exceptions import ApiAttributeError
|
|
39
39
|
from cbbd.exceptions import ApiException
|
40
40
|
|
41
41
|
# import models into sdk package
|
42
|
+
from cbbd.models.adjusted_efficiency_info import AdjustedEfficiencyInfo
|
42
43
|
from cbbd.models.conference_history import ConferenceHistory
|
43
44
|
from cbbd.models.conference_history_teams_inner import ConferenceHistoryTeamsInner
|
44
45
|
from cbbd.models.conference_info import ConferenceInfo
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,360 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
import re # noqa: F401
|
17
|
+
import io
|
18
|
+
import warnings
|
19
|
+
|
20
|
+
from pydantic import validate_arguments, ValidationError
|
21
|
+
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from pydantic import Field, StrictInt, StrictStr
|
24
|
+
|
25
|
+
from typing import List, Optional
|
26
|
+
|
27
|
+
from cbbd.models.adjusted_efficiency_info import AdjustedEfficiencyInfo
|
28
|
+
from cbbd.models.srs_info import SrsInfo
|
29
|
+
|
30
|
+
from cbbd.api_client import ApiClient
|
31
|
+
from cbbd.api_response import ApiResponse
|
32
|
+
from cbbd.exceptions import ( # noqa: F401
|
33
|
+
ApiTypeError,
|
34
|
+
ApiValueError
|
35
|
+
)
|
36
|
+
|
37
|
+
|
38
|
+
class RatingsApi:
|
39
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
40
|
+
Ref: https://openapi-generator.tech
|
41
|
+
|
42
|
+
Do not edit the class manually.
|
43
|
+
"""
|
44
|
+
|
45
|
+
def __init__(self, api_client=None) -> None:
|
46
|
+
if api_client is None:
|
47
|
+
api_client = ApiClient.get_default()
|
48
|
+
self.api_client = api_client
|
49
|
+
|
50
|
+
@validate_arguments
|
51
|
+
def get_adjusted_efficiency(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> List[AdjustedEfficiencyInfo]: # noqa: E501
|
52
|
+
"""get_adjusted_efficiency # noqa: E501
|
53
|
+
|
54
|
+
Retrieves adjusted efficiency ratings for the provided season, team, or conference. # noqa: E501
|
55
|
+
This method makes a synchronous HTTP request by default. To make an
|
56
|
+
asynchronous HTTP request, please pass async_req=True
|
57
|
+
|
58
|
+
>>> thread = api.get_adjusted_efficiency(season, team, conference, async_req=True)
|
59
|
+
>>> result = thread.get()
|
60
|
+
|
61
|
+
:param season: Optional season filter
|
62
|
+
:type season: int
|
63
|
+
:param team: Optional team filter
|
64
|
+
:type team: str
|
65
|
+
:param conference: Optional conference abbreviation filter
|
66
|
+
:type conference: str
|
67
|
+
:param async_req: Whether to execute the request asynchronously.
|
68
|
+
:type async_req: bool, optional
|
69
|
+
:param _request_timeout: timeout setting for this request.
|
70
|
+
If one number provided, it will be total request
|
71
|
+
timeout. It can also be a pair (tuple) of
|
72
|
+
(connection, read) timeouts.
|
73
|
+
:return: Returns the result object.
|
74
|
+
If the method is called asynchronously,
|
75
|
+
returns the request thread.
|
76
|
+
:rtype: List[AdjustedEfficiencyInfo]
|
77
|
+
"""
|
78
|
+
kwargs['_return_http_data_only'] = True
|
79
|
+
if '_preload_content' in kwargs:
|
80
|
+
message = "Error! Please call the get_adjusted_efficiency_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
81
|
+
raise ValueError(message)
|
82
|
+
return self.get_adjusted_efficiency_with_http_info(season, team, conference, **kwargs) # noqa: E501
|
83
|
+
|
84
|
+
@validate_arguments
|
85
|
+
def get_adjusted_efficiency_with_http_info(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
86
|
+
"""get_adjusted_efficiency # noqa: E501
|
87
|
+
|
88
|
+
Retrieves adjusted efficiency ratings for the provided season, team, or conference. # noqa: E501
|
89
|
+
This method makes a synchronous HTTP request by default. To make an
|
90
|
+
asynchronous HTTP request, please pass async_req=True
|
91
|
+
|
92
|
+
>>> thread = api.get_adjusted_efficiency_with_http_info(season, team, conference, async_req=True)
|
93
|
+
>>> result = thread.get()
|
94
|
+
|
95
|
+
:param season: Optional season filter
|
96
|
+
:type season: int
|
97
|
+
:param team: Optional team filter
|
98
|
+
:type team: str
|
99
|
+
:param conference: Optional conference abbreviation filter
|
100
|
+
:type conference: str
|
101
|
+
:param async_req: Whether to execute the request asynchronously.
|
102
|
+
:type async_req: bool, optional
|
103
|
+
:param _preload_content: if False, the ApiResponse.data will
|
104
|
+
be set to none and raw_data will store the
|
105
|
+
HTTP response body without reading/decoding.
|
106
|
+
Default is True.
|
107
|
+
:type _preload_content: bool, optional
|
108
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
109
|
+
object with status code, headers, etc
|
110
|
+
:type _return_http_data_only: bool, optional
|
111
|
+
:param _request_timeout: timeout setting for this request. If one
|
112
|
+
number provided, it will be total request
|
113
|
+
timeout. It can also be a pair (tuple) of
|
114
|
+
(connection, read) timeouts.
|
115
|
+
:param _request_auth: set to override the auth_settings for an a single
|
116
|
+
request; this effectively ignores the authentication
|
117
|
+
in the spec for a single request.
|
118
|
+
:type _request_auth: dict, optional
|
119
|
+
:type _content_type: string, optional: force content-type for the request
|
120
|
+
:return: Returns the result object.
|
121
|
+
If the method is called asynchronously,
|
122
|
+
returns the request thread.
|
123
|
+
:rtype: tuple(List[AdjustedEfficiencyInfo], status_code(int), headers(HTTPHeaderDict))
|
124
|
+
"""
|
125
|
+
|
126
|
+
_params = locals()
|
127
|
+
|
128
|
+
_all_params = [
|
129
|
+
'season',
|
130
|
+
'team',
|
131
|
+
'conference'
|
132
|
+
]
|
133
|
+
_all_params.extend(
|
134
|
+
[
|
135
|
+
'async_req',
|
136
|
+
'_return_http_data_only',
|
137
|
+
'_preload_content',
|
138
|
+
'_request_timeout',
|
139
|
+
'_request_auth',
|
140
|
+
'_content_type',
|
141
|
+
'_headers'
|
142
|
+
]
|
143
|
+
)
|
144
|
+
|
145
|
+
# validate the arguments
|
146
|
+
for _key, _val in _params['kwargs'].items():
|
147
|
+
if _key not in _all_params:
|
148
|
+
raise ApiTypeError(
|
149
|
+
"Got an unexpected keyword argument '%s'"
|
150
|
+
" to method get_adjusted_efficiency" % _key
|
151
|
+
)
|
152
|
+
_params[_key] = _val
|
153
|
+
del _params['kwargs']
|
154
|
+
|
155
|
+
_collection_formats = {}
|
156
|
+
|
157
|
+
# process the path parameters
|
158
|
+
_path_params = {}
|
159
|
+
|
160
|
+
# process the query parameters
|
161
|
+
_query_params = []
|
162
|
+
if _params.get('season') is not None: # noqa: E501
|
163
|
+
_query_params.append(('season', _params['season']))
|
164
|
+
|
165
|
+
if _params.get('team') is not None: # noqa: E501
|
166
|
+
_query_params.append(('team', _params['team']))
|
167
|
+
|
168
|
+
if _params.get('conference') is not None: # noqa: E501
|
169
|
+
_query_params.append(('conference', _params['conference']))
|
170
|
+
|
171
|
+
# process the header parameters
|
172
|
+
_header_params = dict(_params.get('_headers', {}))
|
173
|
+
# process the form parameters
|
174
|
+
_form_params = []
|
175
|
+
_files = {}
|
176
|
+
# process the body parameter
|
177
|
+
_body_params = None
|
178
|
+
# set the HTTP header `Accept`
|
179
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
180
|
+
['application/json']) # noqa: E501
|
181
|
+
|
182
|
+
# authentication setting
|
183
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
184
|
+
|
185
|
+
_response_types_map = {
|
186
|
+
'200': "List[AdjustedEfficiencyInfo]",
|
187
|
+
}
|
188
|
+
|
189
|
+
return self.api_client.call_api(
|
190
|
+
'/ratings/adjusted', 'GET',
|
191
|
+
_path_params,
|
192
|
+
_query_params,
|
193
|
+
_header_params,
|
194
|
+
body=_body_params,
|
195
|
+
post_params=_form_params,
|
196
|
+
files=_files,
|
197
|
+
response_types_map=_response_types_map,
|
198
|
+
auth_settings=_auth_settings,
|
199
|
+
async_req=_params.get('async_req'),
|
200
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
201
|
+
_preload_content=_params.get('_preload_content', True),
|
202
|
+
_request_timeout=_params.get('_request_timeout'),
|
203
|
+
collection_formats=_collection_formats,
|
204
|
+
_request_auth=_params.get('_request_auth'))
|
205
|
+
|
206
|
+
@validate_arguments
|
207
|
+
def get_srs(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> List[SrsInfo]: # noqa: E501
|
208
|
+
"""get_srs # noqa: E501
|
209
|
+
|
210
|
+
Retrieves SRS ratings for the provided season, team, or conference. # noqa: E501
|
211
|
+
This method makes a synchronous HTTP request by default. To make an
|
212
|
+
asynchronous HTTP request, please pass async_req=True
|
213
|
+
|
214
|
+
>>> thread = api.get_srs(season, team, conference, async_req=True)
|
215
|
+
>>> result = thread.get()
|
216
|
+
|
217
|
+
:param season: Optional season filter
|
218
|
+
:type season: int
|
219
|
+
:param team: Optional team filter
|
220
|
+
:type team: str
|
221
|
+
:param conference: Optional conference abbreviation filter
|
222
|
+
:type conference: str
|
223
|
+
:param async_req: Whether to execute the request asynchronously.
|
224
|
+
:type async_req: bool, optional
|
225
|
+
:param _request_timeout: timeout setting for this request.
|
226
|
+
If one number provided, it will be total request
|
227
|
+
timeout. It can also be a pair (tuple) of
|
228
|
+
(connection, read) timeouts.
|
229
|
+
:return: Returns the result object.
|
230
|
+
If the method is called asynchronously,
|
231
|
+
returns the request thread.
|
232
|
+
:rtype: List[SrsInfo]
|
233
|
+
"""
|
234
|
+
kwargs['_return_http_data_only'] = True
|
235
|
+
if '_preload_content' in kwargs:
|
236
|
+
message = "Error! Please call the get_srs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
237
|
+
raise ValueError(message)
|
238
|
+
return self.get_srs_with_http_info(season, team, conference, **kwargs) # noqa: E501
|
239
|
+
|
240
|
+
@validate_arguments
|
241
|
+
def get_srs_with_http_info(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
242
|
+
"""get_srs # noqa: E501
|
243
|
+
|
244
|
+
Retrieves SRS ratings for the provided season, team, or conference. # noqa: E501
|
245
|
+
This method makes a synchronous HTTP request by default. To make an
|
246
|
+
asynchronous HTTP request, please pass async_req=True
|
247
|
+
|
248
|
+
>>> thread = api.get_srs_with_http_info(season, team, conference, async_req=True)
|
249
|
+
>>> result = thread.get()
|
250
|
+
|
251
|
+
:param season: Optional season filter
|
252
|
+
:type season: int
|
253
|
+
:param team: Optional team filter
|
254
|
+
:type team: str
|
255
|
+
:param conference: Optional conference abbreviation filter
|
256
|
+
:type conference: str
|
257
|
+
:param async_req: Whether to execute the request asynchronously.
|
258
|
+
:type async_req: bool, optional
|
259
|
+
:param _preload_content: if False, the ApiResponse.data will
|
260
|
+
be set to none and raw_data will store the
|
261
|
+
HTTP response body without reading/decoding.
|
262
|
+
Default is True.
|
263
|
+
:type _preload_content: bool, optional
|
264
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
265
|
+
object with status code, headers, etc
|
266
|
+
:type _return_http_data_only: bool, optional
|
267
|
+
:param _request_timeout: timeout setting for this request. If one
|
268
|
+
number provided, it will be total request
|
269
|
+
timeout. It can also be a pair (tuple) of
|
270
|
+
(connection, read) timeouts.
|
271
|
+
:param _request_auth: set to override the auth_settings for an a single
|
272
|
+
request; this effectively ignores the authentication
|
273
|
+
in the spec for a single request.
|
274
|
+
:type _request_auth: dict, optional
|
275
|
+
:type _content_type: string, optional: force content-type for the request
|
276
|
+
:return: Returns the result object.
|
277
|
+
If the method is called asynchronously,
|
278
|
+
returns the request thread.
|
279
|
+
:rtype: tuple(List[SrsInfo], status_code(int), headers(HTTPHeaderDict))
|
280
|
+
"""
|
281
|
+
|
282
|
+
_params = locals()
|
283
|
+
|
284
|
+
_all_params = [
|
285
|
+
'season',
|
286
|
+
'team',
|
287
|
+
'conference'
|
288
|
+
]
|
289
|
+
_all_params.extend(
|
290
|
+
[
|
291
|
+
'async_req',
|
292
|
+
'_return_http_data_only',
|
293
|
+
'_preload_content',
|
294
|
+
'_request_timeout',
|
295
|
+
'_request_auth',
|
296
|
+
'_content_type',
|
297
|
+
'_headers'
|
298
|
+
]
|
299
|
+
)
|
300
|
+
|
301
|
+
# validate the arguments
|
302
|
+
for _key, _val in _params['kwargs'].items():
|
303
|
+
if _key not in _all_params:
|
304
|
+
raise ApiTypeError(
|
305
|
+
"Got an unexpected keyword argument '%s'"
|
306
|
+
" to method get_srs" % _key
|
307
|
+
)
|
308
|
+
_params[_key] = _val
|
309
|
+
del _params['kwargs']
|
310
|
+
|
311
|
+
_collection_formats = {}
|
312
|
+
|
313
|
+
# process the path parameters
|
314
|
+
_path_params = {}
|
315
|
+
|
316
|
+
# process the query parameters
|
317
|
+
_query_params = []
|
318
|
+
if _params.get('season') is not None: # noqa: E501
|
319
|
+
_query_params.append(('season', _params['season']))
|
320
|
+
|
321
|
+
if _params.get('team') is not None: # noqa: E501
|
322
|
+
_query_params.append(('team', _params['team']))
|
323
|
+
|
324
|
+
if _params.get('conference') is not None: # noqa: E501
|
325
|
+
_query_params.append(('conference', _params['conference']))
|
326
|
+
|
327
|
+
# process the header parameters
|
328
|
+
_header_params = dict(_params.get('_headers', {}))
|
329
|
+
# process the form parameters
|
330
|
+
_form_params = []
|
331
|
+
_files = {}
|
332
|
+
# process the body parameter
|
333
|
+
_body_params = None
|
334
|
+
# set the HTTP header `Accept`
|
335
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
336
|
+
['application/json']) # noqa: E501
|
337
|
+
|
338
|
+
# authentication setting
|
339
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
340
|
+
|
341
|
+
_response_types_map = {
|
342
|
+
'200': "List[SrsInfo]",
|
343
|
+
}
|
344
|
+
|
345
|
+
return self.api_client.call_api(
|
346
|
+
'/ratings/srs', 'GET',
|
347
|
+
_path_params,
|
348
|
+
_query_params,
|
349
|
+
_header_params,
|
350
|
+
body=_body_params,
|
351
|
+
post_params=_form_params,
|
352
|
+
files=_files,
|
353
|
+
response_types_map=_response_types_map,
|
354
|
+
auth_settings=_auth_settings,
|
355
|
+
async_req=_params.get('async_req'),
|
356
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
357
|
+
_preload_content=_params.get('_preload_content', True),
|
358
|
+
_request_timeout=_params.get('_request_timeout'),
|
359
|
+
collection_formats=_collection_formats,
|
360
|
+
_request_auth=_params.get('_request_auth'))
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -78,7 +78,7 @@ class ApiClient:
|
|
78
78
|
self.default_headers[header_name] = header_value
|
79
79
|
self.cookie = cookie
|
80
80
|
# Set default User-Agent.
|
81
|
-
self.user_agent = 'OpenAPI-Generator/1.
|
81
|
+
self.user_agent = 'OpenAPI-Generator/1.6.0/python'
|
82
82
|
self.client_side_validation = configuration.client_side_validation
|
83
83
|
|
84
84
|
def __enter__(self):
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -376,8 +376,8 @@ class Configuration:
|
|
376
376
|
return "Python SDK Debug Report:\n"\
|
377
377
|
"OS: {env}\n"\
|
378
378
|
"Python Version: {pyversion}\n"\
|
379
|
-
"Version of the API: 1.
|
380
|
-
"SDK Package Version: 1.
|
379
|
+
"Version of the API: 1.6.0\n"\
|
380
|
+
"SDK Package Version: 1.6.0".\
|
381
381
|
format(env=sys.platform, pyversion=sys.version)
|
382
382
|
|
383
383
|
def get_host_settings(self):
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
8
8
|
|
9
|
-
The version of the OpenAPI document: 1.
|
9
|
+
The version of the OpenAPI document: 1.6.0
|
10
10
|
Contact: admin@collegefootballdata.com
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
12
|
|
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
# import models into model package
|
18
|
+
from cbbd.models.adjusted_efficiency_info import AdjustedEfficiencyInfo
|
18
19
|
from cbbd.models.conference_history import ConferenceHistory
|
19
20
|
from cbbd.models.conference_history_teams_inner import ConferenceHistoryTeamsInner
|
20
21
|
from cbbd.models.conference_info import ConferenceInfo
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
|
22
|
+
from typing import Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
|
24
|
+
|
25
|
+
class AdjustedEfficiencyInfo(BaseModel):
|
26
|
+
"""
|
27
|
+
AdjustedEfficiencyInfo
|
28
|
+
"""
|
29
|
+
season: StrictInt = Field(...)
|
30
|
+
team_id: StrictInt = Field(default=..., alias="teamId")
|
31
|
+
team: StrictStr = Field(...)
|
32
|
+
conference: StrictStr = Field(...)
|
33
|
+
offensive_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="offensiveRating")
|
34
|
+
defensive_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="defensiveRating")
|
35
|
+
net_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="netRating")
|
36
|
+
__properties = ["season", "teamId", "team", "conference", "offensiveRating", "defensiveRating", "netRating"]
|
37
|
+
|
38
|
+
class Config:
|
39
|
+
"""Pydantic configuration"""
|
40
|
+
allow_population_by_field_name = True
|
41
|
+
validate_assignment = True
|
42
|
+
|
43
|
+
def to_str(self) -> str:
|
44
|
+
"""Returns the string representation of the model using alias"""
|
45
|
+
return pprint.pformat(self.dict(by_alias=True))
|
46
|
+
|
47
|
+
def to_json(self) -> str:
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
49
|
+
return json.dumps(self.to_dict())
|
50
|
+
|
51
|
+
@classmethod
|
52
|
+
def from_json(cls, json_str: str) -> AdjustedEfficiencyInfo:
|
53
|
+
"""Create an instance of AdjustedEfficiencyInfo from a JSON string"""
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
55
|
+
|
56
|
+
def to_dict(self):
|
57
|
+
"""Returns the dictionary representation of the model using alias"""
|
58
|
+
_dict = self.dict(by_alias=True,
|
59
|
+
exclude={
|
60
|
+
},
|
61
|
+
exclude_none=True)
|
62
|
+
return _dict
|
63
|
+
|
64
|
+
@classmethod
|
65
|
+
def from_dict(cls, obj: dict) -> AdjustedEfficiencyInfo:
|
66
|
+
"""Create an instance of AdjustedEfficiencyInfo from a dict"""
|
67
|
+
if obj is None:
|
68
|
+
return None
|
69
|
+
|
70
|
+
if not isinstance(obj, dict):
|
71
|
+
return AdjustedEfficiencyInfo.parse_obj(obj)
|
72
|
+
|
73
|
+
_obj = AdjustedEfficiencyInfo.parse_obj({
|
74
|
+
"season": obj.get("season"),
|
75
|
+
"team_id": obj.get("teamId"),
|
76
|
+
"team": obj.get("team"),
|
77
|
+
"conference": obj.get("conference"),
|
78
|
+
"offensive_rating": obj.get("offensiveRating"),
|
79
|
+
"defensive_rating": obj.get("defensiveRating"),
|
80
|
+
"net_rating": obj.get("netRating")
|
81
|
+
})
|
82
|
+
return _obj
|
83
|
+
|
84
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|