cbbd 1.19.1__py3-none-any.whl → 1.20.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.
- cbbd/__init__.py +7 -2
- cbbd/api/conferences_api.py +1 -1
- cbbd/api/draft_api.py +1 -1
- cbbd/api/games_api.py +1 -1
- cbbd/api/lines_api.py +1 -1
- cbbd/api/lineups_api.py +1 -1
- cbbd/api/plays_api.py +1 -1
- cbbd/api/rankings_api.py +1 -1
- cbbd/api/ratings_api.py +1 -1
- cbbd/api/recruiting_api.py +1 -1
- cbbd/api/stats_api.py +375 -1
- cbbd/api/teams_api.py +1 -1
- cbbd/api/venues_api.py +1 -1
- cbbd/api_client.py +2 -2
- cbbd/configuration.py +3 -3
- cbbd/exceptions.py +1 -1
- cbbd/models/__init__.py +6 -1
- cbbd/models/adjusted_efficiency_info.py +1 -1
- cbbd/models/adjusted_efficiency_info_rankings.py +1 -1
- cbbd/models/conference_history.py +1 -1
- cbbd/models/conference_history_teams_inner.py +1 -1
- cbbd/models/conference_info.py +1 -1
- cbbd/models/draft_pick.py +1 -1
- cbbd/models/draft_position.py +1 -1
- cbbd/models/draft_team.py +1 -1
- cbbd/models/game_box_score_players.py +1 -1
- cbbd/models/game_box_score_players_players_inner.py +1 -1
- cbbd/models/game_box_score_team.py +1 -1
- cbbd/models/game_box_score_team_stats.py +1 -1
- cbbd/models/game_box_score_team_stats_points.py +1 -1
- cbbd/models/game_info.py +1 -1
- cbbd/models/game_line_info.py +1 -1
- cbbd/models/game_lines.py +1 -1
- cbbd/models/game_media_info.py +1 -1
- cbbd/models/game_media_info_broadcasts_inner.py +1 -1
- cbbd/models/game_status.py +1 -1
- cbbd/models/line_provider_info.py +1 -1
- cbbd/models/lineup_stats.py +1 -1
- cbbd/models/lineup_unit_stats.py +1 -1
- cbbd/models/lineup_unit_stats_four_factors.py +1 -1
- cbbd/models/lineup_unit_stats_two_pointers.py +1 -1
- cbbd/models/play_info.py +1 -1
- cbbd/models/play_info_on_floor_inner.py +1 -1
- cbbd/models/play_info_participants_inner.py +1 -1
- cbbd/models/play_type_info.py +1 -1
- cbbd/models/player_season_shooting_stats.py +124 -0
- cbbd/models/player_season_stats.py +1 -1
- cbbd/models/player_season_stats_win_shares.py +1 -1
- cbbd/models/player_subsititution.py +1 -1
- cbbd/models/player_subsititution_sub_in.py +1 -1
- cbbd/models/poll_team_info.py +1 -1
- cbbd/models/recruit.py +1 -1
- cbbd/models/recruit_committed_to.py +1 -1
- cbbd/models/recruit_hometown.py +1 -1
- cbbd/models/season_shooting_stats.py +120 -0
- cbbd/models/season_shooting_stats_attempts_breakdown.py +80 -0
- cbbd/models/season_shooting_stats_dunks.py +80 -0
- cbbd/models/season_type.py +1 -1
- cbbd/models/shooting_stats.py +1 -1
- cbbd/models/shot_info.py +1 -1
- cbbd/models/shot_info_location.py +1 -1
- cbbd/models/shot_info_shooter.py +1 -1
- cbbd/models/shot_type_breakdown.py +76 -0
- cbbd/models/srs_info.py +1 -1
- cbbd/models/team_info.py +1 -1
- cbbd/models/team_roster.py +1 -1
- cbbd/models/team_roster_player.py +1 -1
- cbbd/models/team_roster_player_hometown.py +1 -1
- cbbd/models/team_season_stats.py +1 -1
- cbbd/models/team_season_unit_stats.py +1 -1
- cbbd/models/team_season_unit_stats_field_goals.py +1 -1
- cbbd/models/team_season_unit_stats_fouls.py +1 -1
- cbbd/models/team_season_unit_stats_four_factors.py +1 -1
- cbbd/models/team_season_unit_stats_points.py +1 -1
- cbbd/models/team_season_unit_stats_rebounds.py +1 -1
- cbbd/models/team_season_unit_stats_turnovers.py +1 -1
- cbbd/models/venue_info.py +1 -1
- cbbd/rest.py +1 -1
- {cbbd-1.19.1.dist-info → cbbd-1.20.0.dist-info}/METADATA +1 -1
- cbbd-1.20.0.dist-info/RECORD +85 -0
- cbbd-1.19.1.dist-info/RECORD +0 -80
- {cbbd-1.19.1.dist-info → cbbd-1.20.0.dist-info}/WHEEL +0 -0
- {cbbd-1.19.1.dist-info → cbbd-1.20.0.dist-info}/top_level.txt +0 -0
cbbd/__init__.py
CHANGED
@@ -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.20.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.20.0"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from cbbd.api.conferences_api import ConferencesApi
|
@@ -71,6 +71,7 @@ from cbbd.models.play_info import PlayInfo
|
|
71
71
|
from cbbd.models.play_info_on_floor_inner import PlayInfoOnFloorInner
|
72
72
|
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
73
73
|
from cbbd.models.play_type_info import PlayTypeInfo
|
74
|
+
from cbbd.models.player_season_shooting_stats import PlayerSeasonShootingStats
|
74
75
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
75
76
|
from cbbd.models.player_season_stats_win_shares import PlayerSeasonStatsWinShares
|
76
77
|
from cbbd.models.player_subsititution import PlayerSubsititution
|
@@ -79,11 +80,15 @@ from cbbd.models.poll_team_info import PollTeamInfo
|
|
79
80
|
from cbbd.models.recruit import Recruit
|
80
81
|
from cbbd.models.recruit_committed_to import RecruitCommittedTo
|
81
82
|
from cbbd.models.recruit_hometown import RecruitHometown
|
83
|
+
from cbbd.models.season_shooting_stats import SeasonShootingStats
|
84
|
+
from cbbd.models.season_shooting_stats_attempts_breakdown import SeasonShootingStatsAttemptsBreakdown
|
85
|
+
from cbbd.models.season_shooting_stats_dunks import SeasonShootingStatsDunks
|
82
86
|
from cbbd.models.season_type import SeasonType
|
83
87
|
from cbbd.models.shooting_stats import ShootingStats
|
84
88
|
from cbbd.models.shot_info import ShotInfo
|
85
89
|
from cbbd.models.shot_info_location import ShotInfoLocation
|
86
90
|
from cbbd.models.shot_info_shooter import ShotInfoShooter
|
91
|
+
from cbbd.models.shot_type_breakdown import ShotTypeBreakdown
|
87
92
|
from cbbd.models.srs_info import SrsInfo
|
88
93
|
from cbbd.models.team_info import TeamInfo
|
89
94
|
from cbbd.models.team_roster import TeamRoster
|
cbbd/api/conferences_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/draft_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/games_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/lines_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/lineups_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/plays_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/rankings_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/ratings_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/recruiting_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/stats_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -26,7 +26,9 @@ from pydantic import Field, StrictFloat, StrictInt, StrictStr
|
|
26
26
|
|
27
27
|
from typing import List, Optional, Union
|
28
28
|
|
29
|
+
from cbbd.models.player_season_shooting_stats import PlayerSeasonShootingStats
|
29
30
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
31
|
+
from cbbd.models.season_shooting_stats import SeasonShootingStats
|
30
32
|
from cbbd.models.season_type import SeasonType
|
31
33
|
from cbbd.models.team_season_stats import TeamSeasonStats
|
32
34
|
|
@@ -50,6 +52,192 @@ class StatsApi:
|
|
50
52
|
api_client = ApiClient.get_default()
|
51
53
|
self.api_client = api_client
|
52
54
|
|
55
|
+
@validate_arguments
|
56
|
+
def get_player_season_shooting_stats(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Team filter, required if conference is not provided")] = None, conference : Annotated[Optional[StrictStr], Field(description="Conference abbreviation filter, required if team is not provided")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start date range filter")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end date range filter")] = None, **kwargs) -> List[PlayerSeasonShootingStats]: # noqa: E501
|
57
|
+
"""get_player_season_shooting_stats # noqa: E501
|
58
|
+
|
59
|
+
Retrieves player season shooting statistics # noqa: E501
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
62
|
+
|
63
|
+
>>> thread = api.get_player_season_shooting_stats(season, season_type, team, conference, start_date_range, end_date_range, async_req=True)
|
64
|
+
>>> result = thread.get()
|
65
|
+
|
66
|
+
:param season: Required season filter (required)
|
67
|
+
:type season: int
|
68
|
+
:param season_type: Optional season type filter
|
69
|
+
:type season_type: SeasonType
|
70
|
+
:param team: Team filter, required if conference is not provided
|
71
|
+
:type team: str
|
72
|
+
:param conference: Conference abbreviation filter, required if team is not provided
|
73
|
+
:type conference: str
|
74
|
+
:param start_date_range: Optional start date range filter
|
75
|
+
:type start_date_range: datetime
|
76
|
+
:param end_date_range: Optional end date range filter
|
77
|
+
:type end_date_range: datetime
|
78
|
+
:param async_req: Whether to execute the request asynchronously.
|
79
|
+
:type async_req: bool, optional
|
80
|
+
:param _request_timeout: timeout setting for this request.
|
81
|
+
If one number provided, it will be total request
|
82
|
+
timeout. It can also be a pair (tuple) of
|
83
|
+
(connection, read) timeouts.
|
84
|
+
:return: Returns the result object.
|
85
|
+
If the method is called asynchronously,
|
86
|
+
returns the request thread.
|
87
|
+
:rtype: List[PlayerSeasonShootingStats]
|
88
|
+
"""
|
89
|
+
kwargs['_return_http_data_only'] = True
|
90
|
+
if '_preload_content' in kwargs:
|
91
|
+
message = "Error! Please call the get_player_season_shooting_stats_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
92
|
+
raise ValueError(message)
|
93
|
+
return self.get_player_season_shooting_stats_with_http_info(season, season_type, team, conference, start_date_range, end_date_range, **kwargs) # noqa: E501
|
94
|
+
|
95
|
+
@validate_arguments
|
96
|
+
def get_player_season_shooting_stats_with_http_info(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Team filter, required if conference is not provided")] = None, conference : Annotated[Optional[StrictStr], Field(description="Conference abbreviation filter, required if team is not provided")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start date range filter")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end date range filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
97
|
+
"""get_player_season_shooting_stats # noqa: E501
|
98
|
+
|
99
|
+
Retrieves player season shooting statistics # noqa: E501
|
100
|
+
This method makes a synchronous HTTP request by default. To make an
|
101
|
+
asynchronous HTTP request, please pass async_req=True
|
102
|
+
|
103
|
+
>>> thread = api.get_player_season_shooting_stats_with_http_info(season, season_type, team, conference, start_date_range, end_date_range, async_req=True)
|
104
|
+
>>> result = thread.get()
|
105
|
+
|
106
|
+
:param season: Required season filter (required)
|
107
|
+
:type season: int
|
108
|
+
:param season_type: Optional season type filter
|
109
|
+
:type season_type: SeasonType
|
110
|
+
:param team: Team filter, required if conference is not provided
|
111
|
+
:type team: str
|
112
|
+
:param conference: Conference abbreviation filter, required if team is not provided
|
113
|
+
:type conference: str
|
114
|
+
:param start_date_range: Optional start date range filter
|
115
|
+
:type start_date_range: datetime
|
116
|
+
:param end_date_range: Optional end date range filter
|
117
|
+
:type end_date_range: datetime
|
118
|
+
:param async_req: Whether to execute the request asynchronously.
|
119
|
+
:type async_req: bool, optional
|
120
|
+
:param _preload_content: if False, the ApiResponse.data will
|
121
|
+
be set to none and raw_data will store the
|
122
|
+
HTTP response body without reading/decoding.
|
123
|
+
Default is True.
|
124
|
+
:type _preload_content: bool, optional
|
125
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
126
|
+
object with status code, headers, etc
|
127
|
+
:type _return_http_data_only: bool, optional
|
128
|
+
:param _request_timeout: timeout setting for this request. If one
|
129
|
+
number provided, it will be total request
|
130
|
+
timeout. It can also be a pair (tuple) of
|
131
|
+
(connection, read) timeouts.
|
132
|
+
:param _request_auth: set to override the auth_settings for an a single
|
133
|
+
request; this effectively ignores the authentication
|
134
|
+
in the spec for a single request.
|
135
|
+
:type _request_auth: dict, optional
|
136
|
+
:type _content_type: string, optional: force content-type for the request
|
137
|
+
:return: Returns the result object.
|
138
|
+
If the method is called asynchronously,
|
139
|
+
returns the request thread.
|
140
|
+
:rtype: tuple(List[PlayerSeasonShootingStats], status_code(int), headers(HTTPHeaderDict))
|
141
|
+
"""
|
142
|
+
|
143
|
+
_params = locals()
|
144
|
+
|
145
|
+
_all_params = [
|
146
|
+
'season',
|
147
|
+
'season_type',
|
148
|
+
'team',
|
149
|
+
'conference',
|
150
|
+
'start_date_range',
|
151
|
+
'end_date_range'
|
152
|
+
]
|
153
|
+
_all_params.extend(
|
154
|
+
[
|
155
|
+
'async_req',
|
156
|
+
'_return_http_data_only',
|
157
|
+
'_preload_content',
|
158
|
+
'_request_timeout',
|
159
|
+
'_request_auth',
|
160
|
+
'_content_type',
|
161
|
+
'_headers'
|
162
|
+
]
|
163
|
+
)
|
164
|
+
|
165
|
+
# validate the arguments
|
166
|
+
for _key, _val in _params['kwargs'].items():
|
167
|
+
if _key not in _all_params:
|
168
|
+
raise ApiTypeError(
|
169
|
+
"Got an unexpected keyword argument '%s'"
|
170
|
+
" to method get_player_season_shooting_stats" % _key
|
171
|
+
)
|
172
|
+
_params[_key] = _val
|
173
|
+
del _params['kwargs']
|
174
|
+
|
175
|
+
_collection_formats = {}
|
176
|
+
|
177
|
+
# process the path parameters
|
178
|
+
_path_params = {}
|
179
|
+
|
180
|
+
# process the query parameters
|
181
|
+
_query_params = []
|
182
|
+
if _params.get('season') is not None: # noqa: E501
|
183
|
+
_query_params.append(('season', _params['season']))
|
184
|
+
|
185
|
+
if _params.get('season_type') is not None: # noqa: E501
|
186
|
+
_query_params.append(('seasonType', _params['season_type'].value))
|
187
|
+
|
188
|
+
if _params.get('team') is not None: # noqa: E501
|
189
|
+
_query_params.append(('team', _params['team']))
|
190
|
+
|
191
|
+
if _params.get('conference') is not None: # noqa: E501
|
192
|
+
_query_params.append(('conference', _params['conference']))
|
193
|
+
|
194
|
+
if _params.get('start_date_range') is not None: # noqa: E501
|
195
|
+
if isinstance(_params['start_date_range'], datetime):
|
196
|
+
_query_params.append(('startDateRange', _params['start_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
197
|
+
else:
|
198
|
+
_query_params.append(('startDateRange', _params['start_date_range']))
|
199
|
+
|
200
|
+
if _params.get('end_date_range') is not None: # noqa: E501
|
201
|
+
if isinstance(_params['end_date_range'], datetime):
|
202
|
+
_query_params.append(('endDateRange', _params['end_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
203
|
+
else:
|
204
|
+
_query_params.append(('endDateRange', _params['end_date_range']))
|
205
|
+
|
206
|
+
# process the header parameters
|
207
|
+
_header_params = dict(_params.get('_headers', {}))
|
208
|
+
# process the form parameters
|
209
|
+
_form_params = []
|
210
|
+
_files = {}
|
211
|
+
# process the body parameter
|
212
|
+
_body_params = None
|
213
|
+
# set the HTTP header `Accept`
|
214
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
215
|
+
['application/json']) # noqa: E501
|
216
|
+
|
217
|
+
# authentication setting
|
218
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
219
|
+
|
220
|
+
_response_types_map = {
|
221
|
+
'200': "List[PlayerSeasonShootingStats]",
|
222
|
+
}
|
223
|
+
|
224
|
+
return self.api_client.call_api(
|
225
|
+
'/stats/player/shooting/season', 'GET',
|
226
|
+
_path_params,
|
227
|
+
_query_params,
|
228
|
+
_header_params,
|
229
|
+
body=_body_params,
|
230
|
+
post_params=_form_params,
|
231
|
+
files=_files,
|
232
|
+
response_types_map=_response_types_map,
|
233
|
+
auth_settings=_auth_settings,
|
234
|
+
async_req=_params.get('async_req'),
|
235
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
236
|
+
_preload_content=_params.get('_preload_content', True),
|
237
|
+
_request_timeout=_params.get('_request_timeout'),
|
238
|
+
collection_formats=_collection_formats,
|
239
|
+
_request_auth=_params.get('_request_auth'))
|
240
|
+
|
53
241
|
@validate_arguments
|
54
242
|
def get_player_season_stats(self, season : Annotated[Union[StrictFloat, StrictInt], Field(..., description="Required season filter")], season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team name filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, start_date_range : Optional[datetime] = None, end_date_range : Optional[datetime] = None, **kwargs) -> List[PlayerSeasonStats]: # noqa: E501
|
55
243
|
"""get_player_season_stats # noqa: E501
|
@@ -236,6 +424,192 @@ class StatsApi:
|
|
236
424
|
collection_formats=_collection_formats,
|
237
425
|
_request_auth=_params.get('_request_auth'))
|
238
426
|
|
427
|
+
@validate_arguments
|
428
|
+
def get_team_season_shooting_stats(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Team filter, required if conference is not provided")] = None, conference : Annotated[Optional[StrictStr], Field(description="Conference abbreviation filter, required if team is not provided")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start date range filter")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end date range filter")] = None, **kwargs) -> List[SeasonShootingStats]: # noqa: E501
|
429
|
+
"""get_team_season_shooting_stats # noqa: E501
|
430
|
+
|
431
|
+
Retrieves team season shooting statistics # noqa: E501
|
432
|
+
This method makes a synchronous HTTP request by default. To make an
|
433
|
+
asynchronous HTTP request, please pass async_req=True
|
434
|
+
|
435
|
+
>>> thread = api.get_team_season_shooting_stats(season, season_type, team, conference, start_date_range, end_date_range, async_req=True)
|
436
|
+
>>> result = thread.get()
|
437
|
+
|
438
|
+
:param season: Required season filter (required)
|
439
|
+
:type season: int
|
440
|
+
:param season_type: Optional season type filter
|
441
|
+
:type season_type: SeasonType
|
442
|
+
:param team: Team filter, required if conference is not provided
|
443
|
+
:type team: str
|
444
|
+
:param conference: Conference abbreviation filter, required if team is not provided
|
445
|
+
:type conference: str
|
446
|
+
:param start_date_range: Optional start date range filter
|
447
|
+
:type start_date_range: datetime
|
448
|
+
:param end_date_range: Optional end date range filter
|
449
|
+
:type end_date_range: datetime
|
450
|
+
:param async_req: Whether to execute the request asynchronously.
|
451
|
+
:type async_req: bool, optional
|
452
|
+
:param _request_timeout: timeout setting for this request.
|
453
|
+
If one number provided, it will be total request
|
454
|
+
timeout. It can also be a pair (tuple) of
|
455
|
+
(connection, read) timeouts.
|
456
|
+
:return: Returns the result object.
|
457
|
+
If the method is called asynchronously,
|
458
|
+
returns the request thread.
|
459
|
+
:rtype: List[SeasonShootingStats]
|
460
|
+
"""
|
461
|
+
kwargs['_return_http_data_only'] = True
|
462
|
+
if '_preload_content' in kwargs:
|
463
|
+
message = "Error! Please call the get_team_season_shooting_stats_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
464
|
+
raise ValueError(message)
|
465
|
+
return self.get_team_season_shooting_stats_with_http_info(season, season_type, team, conference, start_date_range, end_date_range, **kwargs) # noqa: E501
|
466
|
+
|
467
|
+
@validate_arguments
|
468
|
+
def get_team_season_shooting_stats_with_http_info(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Team filter, required if conference is not provided")] = None, conference : Annotated[Optional[StrictStr], Field(description="Conference abbreviation filter, required if team is not provided")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start date range filter")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end date range filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
469
|
+
"""get_team_season_shooting_stats # noqa: E501
|
470
|
+
|
471
|
+
Retrieves team season shooting statistics # noqa: E501
|
472
|
+
This method makes a synchronous HTTP request by default. To make an
|
473
|
+
asynchronous HTTP request, please pass async_req=True
|
474
|
+
|
475
|
+
>>> thread = api.get_team_season_shooting_stats_with_http_info(season, season_type, team, conference, start_date_range, end_date_range, async_req=True)
|
476
|
+
>>> result = thread.get()
|
477
|
+
|
478
|
+
:param season: Required season filter (required)
|
479
|
+
:type season: int
|
480
|
+
:param season_type: Optional season type filter
|
481
|
+
:type season_type: SeasonType
|
482
|
+
:param team: Team filter, required if conference is not provided
|
483
|
+
:type team: str
|
484
|
+
:param conference: Conference abbreviation filter, required if team is not provided
|
485
|
+
:type conference: str
|
486
|
+
:param start_date_range: Optional start date range filter
|
487
|
+
:type start_date_range: datetime
|
488
|
+
:param end_date_range: Optional end date range filter
|
489
|
+
:type end_date_range: datetime
|
490
|
+
:param async_req: Whether to execute the request asynchronously.
|
491
|
+
:type async_req: bool, optional
|
492
|
+
:param _preload_content: if False, the ApiResponse.data will
|
493
|
+
be set to none and raw_data will store the
|
494
|
+
HTTP response body without reading/decoding.
|
495
|
+
Default is True.
|
496
|
+
:type _preload_content: bool, optional
|
497
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
498
|
+
object with status code, headers, etc
|
499
|
+
:type _return_http_data_only: bool, optional
|
500
|
+
:param _request_timeout: timeout setting for this request. If one
|
501
|
+
number provided, it will be total request
|
502
|
+
timeout. It can also be a pair (tuple) of
|
503
|
+
(connection, read) timeouts.
|
504
|
+
:param _request_auth: set to override the auth_settings for an a single
|
505
|
+
request; this effectively ignores the authentication
|
506
|
+
in the spec for a single request.
|
507
|
+
:type _request_auth: dict, optional
|
508
|
+
:type _content_type: string, optional: force content-type for the request
|
509
|
+
:return: Returns the result object.
|
510
|
+
If the method is called asynchronously,
|
511
|
+
returns the request thread.
|
512
|
+
:rtype: tuple(List[SeasonShootingStats], status_code(int), headers(HTTPHeaderDict))
|
513
|
+
"""
|
514
|
+
|
515
|
+
_params = locals()
|
516
|
+
|
517
|
+
_all_params = [
|
518
|
+
'season',
|
519
|
+
'season_type',
|
520
|
+
'team',
|
521
|
+
'conference',
|
522
|
+
'start_date_range',
|
523
|
+
'end_date_range'
|
524
|
+
]
|
525
|
+
_all_params.extend(
|
526
|
+
[
|
527
|
+
'async_req',
|
528
|
+
'_return_http_data_only',
|
529
|
+
'_preload_content',
|
530
|
+
'_request_timeout',
|
531
|
+
'_request_auth',
|
532
|
+
'_content_type',
|
533
|
+
'_headers'
|
534
|
+
]
|
535
|
+
)
|
536
|
+
|
537
|
+
# validate the arguments
|
538
|
+
for _key, _val in _params['kwargs'].items():
|
539
|
+
if _key not in _all_params:
|
540
|
+
raise ApiTypeError(
|
541
|
+
"Got an unexpected keyword argument '%s'"
|
542
|
+
" to method get_team_season_shooting_stats" % _key
|
543
|
+
)
|
544
|
+
_params[_key] = _val
|
545
|
+
del _params['kwargs']
|
546
|
+
|
547
|
+
_collection_formats = {}
|
548
|
+
|
549
|
+
# process the path parameters
|
550
|
+
_path_params = {}
|
551
|
+
|
552
|
+
# process the query parameters
|
553
|
+
_query_params = []
|
554
|
+
if _params.get('season') is not None: # noqa: E501
|
555
|
+
_query_params.append(('season', _params['season']))
|
556
|
+
|
557
|
+
if _params.get('season_type') is not None: # noqa: E501
|
558
|
+
_query_params.append(('seasonType', _params['season_type'].value))
|
559
|
+
|
560
|
+
if _params.get('team') is not None: # noqa: E501
|
561
|
+
_query_params.append(('team', _params['team']))
|
562
|
+
|
563
|
+
if _params.get('conference') is not None: # noqa: E501
|
564
|
+
_query_params.append(('conference', _params['conference']))
|
565
|
+
|
566
|
+
if _params.get('start_date_range') is not None: # noqa: E501
|
567
|
+
if isinstance(_params['start_date_range'], datetime):
|
568
|
+
_query_params.append(('startDateRange', _params['start_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
569
|
+
else:
|
570
|
+
_query_params.append(('startDateRange', _params['start_date_range']))
|
571
|
+
|
572
|
+
if _params.get('end_date_range') is not None: # noqa: E501
|
573
|
+
if isinstance(_params['end_date_range'], datetime):
|
574
|
+
_query_params.append(('endDateRange', _params['end_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
575
|
+
else:
|
576
|
+
_query_params.append(('endDateRange', _params['end_date_range']))
|
577
|
+
|
578
|
+
# process the header parameters
|
579
|
+
_header_params = dict(_params.get('_headers', {}))
|
580
|
+
# process the form parameters
|
581
|
+
_form_params = []
|
582
|
+
_files = {}
|
583
|
+
# process the body parameter
|
584
|
+
_body_params = None
|
585
|
+
# set the HTTP header `Accept`
|
586
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
587
|
+
['application/json']) # noqa: E501
|
588
|
+
|
589
|
+
# authentication setting
|
590
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
591
|
+
|
592
|
+
_response_types_map = {
|
593
|
+
'200': "List[SeasonShootingStats]",
|
594
|
+
}
|
595
|
+
|
596
|
+
return self.api_client.call_api(
|
597
|
+
'/stats/team/shooting/season', 'GET',
|
598
|
+
_path_params,
|
599
|
+
_query_params,
|
600
|
+
_header_params,
|
601
|
+
body=_body_params,
|
602
|
+
post_params=_form_params,
|
603
|
+
files=_files,
|
604
|
+
response_types_map=_response_types_map,
|
605
|
+
auth_settings=_auth_settings,
|
606
|
+
async_req=_params.get('async_req'),
|
607
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
608
|
+
_preload_content=_params.get('_preload_content', True),
|
609
|
+
_request_timeout=_params.get('_request_timeout'),
|
610
|
+
collection_formats=_collection_formats,
|
611
|
+
_request_auth=_params.get('_request_auth'))
|
612
|
+
|
239
613
|
@validate_arguments
|
240
614
|
def get_team_season_stats(self, season : Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Optional season filter, required if team is not provided")] = None, season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team name filter, required if season is not provided")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, start_date_range : Optional[datetime] = None, end_date_range : Optional[datetime] = None, **kwargs) -> List[TeamSeasonStats]: # noqa: E501
|
241
615
|
"""get_team_season_stats # noqa: E501
|
cbbd/api/teams_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/venues_api.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api_client.py
CHANGED
@@ -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.20.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.20.0/python'
|
82
82
|
self.client_side_validation = configuration.client_side_validation
|
83
83
|
|
84
84
|
def __enter__(self):
|
cbbd/configuration.py
CHANGED
@@ -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.20.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.20.0\n"\
|
380
|
+
"SDK Package Version: 1.20.0".\
|
381
381
|
format(env=sys.platform, pyversion=sys.version)
|
382
382
|
|
383
383
|
def get_host_settings(self):
|
cbbd/exceptions.py
CHANGED
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/__init__.py
CHANGED
@@ -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.20.0
|
10
10
|
Contact: admin@collegefootballdata.com
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
12
|
|
@@ -43,6 +43,7 @@ from cbbd.models.play_info import PlayInfo
|
|
43
43
|
from cbbd.models.play_info_on_floor_inner import PlayInfoOnFloorInner
|
44
44
|
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
45
45
|
from cbbd.models.play_type_info import PlayTypeInfo
|
46
|
+
from cbbd.models.player_season_shooting_stats import PlayerSeasonShootingStats
|
46
47
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
47
48
|
from cbbd.models.player_season_stats_win_shares import PlayerSeasonStatsWinShares
|
48
49
|
from cbbd.models.player_subsititution import PlayerSubsititution
|
@@ -51,11 +52,15 @@ from cbbd.models.poll_team_info import PollTeamInfo
|
|
51
52
|
from cbbd.models.recruit import Recruit
|
52
53
|
from cbbd.models.recruit_committed_to import RecruitCommittedTo
|
53
54
|
from cbbd.models.recruit_hometown import RecruitHometown
|
55
|
+
from cbbd.models.season_shooting_stats import SeasonShootingStats
|
56
|
+
from cbbd.models.season_shooting_stats_attempts_breakdown import SeasonShootingStatsAttemptsBreakdown
|
57
|
+
from cbbd.models.season_shooting_stats_dunks import SeasonShootingStatsDunks
|
54
58
|
from cbbd.models.season_type import SeasonType
|
55
59
|
from cbbd.models.shooting_stats import ShootingStats
|
56
60
|
from cbbd.models.shot_info import ShotInfo
|
57
61
|
from cbbd.models.shot_info_location import ShotInfoLocation
|
58
62
|
from cbbd.models.shot_info_shooter import ShotInfoShooter
|
63
|
+
from cbbd.models.shot_type_breakdown import ShotTypeBreakdown
|
59
64
|
from cbbd.models.srs_info import SrsInfo
|
60
65
|
from cbbd.models.team_info import TeamInfo
|
61
66
|
from cbbd.models.team_roster import TeamRoster
|
@@ -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.20.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|