cbbd 1.1.0a1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- cbbd/__init__.py +64 -0
- cbbd/api/__init__.py +10 -0
- cbbd/api/conferences_api.py +176 -0
- cbbd/api/games_api.py +806 -0
- cbbd/api/plays_api.py +761 -0
- cbbd/api/stats_api.py +423 -0
- cbbd/api/teams_api.py +195 -0
- cbbd/api/venues_api.py +176 -0
- cbbd/api_client.py +767 -0
- cbbd/api_response.py +25 -0
- cbbd/configuration.py +443 -0
- cbbd/exceptions.py +167 -0
- cbbd/models/__init__.py +42 -0
- cbbd/models/conference_info.py +80 -0
- cbbd/models/game_box_score_players.py +147 -0
- cbbd/models/game_box_score_players_players_inner.py +238 -0
- cbbd/models/game_box_score_team.py +148 -0
- cbbd/models/game_box_score_team_stats.py +170 -0
- cbbd/models/game_box_score_team_stats_points.py +112 -0
- cbbd/models/game_info.py +212 -0
- cbbd/models/game_media_info.py +133 -0
- cbbd/models/game_media_info_broadcasts_inner.py +74 -0
- cbbd/models/game_status.py +44 -0
- cbbd/models/play_info.py +193 -0
- cbbd/models/play_info_participants_inner.py +74 -0
- cbbd/models/play_type_info.py +74 -0
- cbbd/models/player_season_stats.py +231 -0
- cbbd/models/season_type.py +42 -0
- cbbd/models/team_info.py +160 -0
- cbbd/models/team_season_stats.py +112 -0
- cbbd/models/team_season_unit_stats.py +163 -0
- cbbd/models/team_season_unit_stats_field_goals.py +91 -0
- cbbd/models/team_season_unit_stats_fouls.py +91 -0
- cbbd/models/team_season_unit_stats_four_factors.py +98 -0
- cbbd/models/team_season_unit_stats_points.py +98 -0
- cbbd/models/team_season_unit_stats_rebounds.py +91 -0
- cbbd/models/team_season_unit_stats_turnovers.py +84 -0
- cbbd/models/venue_info.py +102 -0
- cbbd/py.typed +0 -0
- cbbd/rest.py +330 -0
- cbbd-1.1.0a1.dist-info/METADATA +24 -0
- cbbd-1.1.0a1.dist-info/RECORD +44 -0
- cbbd-1.1.0a1.dist-info/WHEEL +5 -0
- cbbd-1.1.0a1.dist-info/top_level.txt +1 -0
cbbd/__init__.py
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# flake8: noqa
|
4
|
+
|
5
|
+
"""
|
6
|
+
College Basketball Data API
|
7
|
+
|
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
|
+
|
10
|
+
The version of the OpenAPI document: 1.1.0
|
11
|
+
Contact: admin@collegefootballdata.com
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
13
|
+
|
14
|
+
Do not edit the class manually.
|
15
|
+
""" # noqa: E501
|
16
|
+
|
17
|
+
|
18
|
+
__version__ = "1.1.0a1"
|
19
|
+
|
20
|
+
# import apis into sdk package
|
21
|
+
from cbbd.api.conferences_api import ConferencesApi
|
22
|
+
from cbbd.api.games_api import GamesApi
|
23
|
+
from cbbd.api.plays_api import PlaysApi
|
24
|
+
from cbbd.api.stats_api import StatsApi
|
25
|
+
from cbbd.api.teams_api import TeamsApi
|
26
|
+
from cbbd.api.venues_api import VenuesApi
|
27
|
+
|
28
|
+
# import ApiClient
|
29
|
+
from cbbd.api_response import ApiResponse
|
30
|
+
from cbbd.api_client import ApiClient
|
31
|
+
from cbbd.configuration import Configuration
|
32
|
+
from cbbd.exceptions import OpenApiException
|
33
|
+
from cbbd.exceptions import ApiTypeError
|
34
|
+
from cbbd.exceptions import ApiValueError
|
35
|
+
from cbbd.exceptions import ApiKeyError
|
36
|
+
from cbbd.exceptions import ApiAttributeError
|
37
|
+
from cbbd.exceptions import ApiException
|
38
|
+
|
39
|
+
# import models into sdk package
|
40
|
+
from cbbd.models.conference_info import ConferenceInfo
|
41
|
+
from cbbd.models.game_box_score_players import GameBoxScorePlayers
|
42
|
+
from cbbd.models.game_box_score_players_players_inner import GameBoxScorePlayersPlayersInner
|
43
|
+
from cbbd.models.game_box_score_team import GameBoxScoreTeam
|
44
|
+
from cbbd.models.game_box_score_team_stats import GameBoxScoreTeamStats
|
45
|
+
from cbbd.models.game_box_score_team_stats_points import GameBoxScoreTeamStatsPoints
|
46
|
+
from cbbd.models.game_info import GameInfo
|
47
|
+
from cbbd.models.game_media_info import GameMediaInfo
|
48
|
+
from cbbd.models.game_media_info_broadcasts_inner import GameMediaInfoBroadcastsInner
|
49
|
+
from cbbd.models.game_status import GameStatus
|
50
|
+
from cbbd.models.play_info import PlayInfo
|
51
|
+
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
52
|
+
from cbbd.models.play_type_info import PlayTypeInfo
|
53
|
+
from cbbd.models.player_season_stats import PlayerSeasonStats
|
54
|
+
from cbbd.models.season_type import SeasonType
|
55
|
+
from cbbd.models.team_info import TeamInfo
|
56
|
+
from cbbd.models.team_season_stats import TeamSeasonStats
|
57
|
+
from cbbd.models.team_season_unit_stats import TeamSeasonUnitStats
|
58
|
+
from cbbd.models.team_season_unit_stats_field_goals import TeamSeasonUnitStatsFieldGoals
|
59
|
+
from cbbd.models.team_season_unit_stats_fouls import TeamSeasonUnitStatsFouls
|
60
|
+
from cbbd.models.team_season_unit_stats_four_factors import TeamSeasonUnitStatsFourFactors
|
61
|
+
from cbbd.models.team_season_unit_stats_points import TeamSeasonUnitStatsPoints
|
62
|
+
from cbbd.models.team_season_unit_stats_rebounds import TeamSeasonUnitStatsRebounds
|
63
|
+
from cbbd.models.team_season_unit_stats_turnovers import TeamSeasonUnitStatsTurnovers
|
64
|
+
from cbbd.models.venue_info import VenueInfo
|
cbbd/api/__init__.py
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# flake8: noqa
|
2
|
+
|
3
|
+
# import apis into api package
|
4
|
+
from cbbd.api.conferences_api import ConferencesApi
|
5
|
+
from cbbd.api.games_api import GamesApi
|
6
|
+
from cbbd.api.plays_api import PlaysApi
|
7
|
+
from cbbd.api.stats_api import StatsApi
|
8
|
+
from cbbd.api.teams_api import TeamsApi
|
9
|
+
from cbbd.api.venues_api import VenuesApi
|
10
|
+
|
@@ -0,0 +1,176 @@
|
|
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.1.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 import List
|
23
|
+
|
24
|
+
from cbbd.models.conference_info import ConferenceInfo
|
25
|
+
|
26
|
+
from cbbd.api_client import ApiClient
|
27
|
+
from cbbd.api_response import ApiResponse
|
28
|
+
from cbbd.exceptions import ( # noqa: F401
|
29
|
+
ApiTypeError,
|
30
|
+
ApiValueError
|
31
|
+
)
|
32
|
+
|
33
|
+
|
34
|
+
class ConferencesApi:
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
36
|
+
Ref: https://openapi-generator.tech
|
37
|
+
|
38
|
+
Do not edit the class manually.
|
39
|
+
"""
|
40
|
+
|
41
|
+
def __init__(self, api_client=None) -> None:
|
42
|
+
if api_client is None:
|
43
|
+
api_client = ApiClient.get_default()
|
44
|
+
self.api_client = api_client
|
45
|
+
|
46
|
+
@validate_arguments
|
47
|
+
def get_conferences(self, **kwargs) -> List[ConferenceInfo]: # noqa: E501
|
48
|
+
"""get_conferences # noqa: E501
|
49
|
+
|
50
|
+
Retrieves list of available conferences # noqa: E501
|
51
|
+
This method makes a synchronous HTTP request by default. To make an
|
52
|
+
asynchronous HTTP request, please pass async_req=True
|
53
|
+
|
54
|
+
>>> thread = api.get_conferences(async_req=True)
|
55
|
+
>>> result = thread.get()
|
56
|
+
|
57
|
+
:param async_req: Whether to execute the request asynchronously.
|
58
|
+
:type async_req: bool, optional
|
59
|
+
:param _request_timeout: timeout setting for this request.
|
60
|
+
If one number provided, it will be total request
|
61
|
+
timeout. It can also be a pair (tuple) of
|
62
|
+
(connection, read) timeouts.
|
63
|
+
:return: Returns the result object.
|
64
|
+
If the method is called asynchronously,
|
65
|
+
returns the request thread.
|
66
|
+
:rtype: List[ConferenceInfo]
|
67
|
+
"""
|
68
|
+
kwargs['_return_http_data_only'] = True
|
69
|
+
if '_preload_content' in kwargs:
|
70
|
+
message = "Error! Please call the get_conferences_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
71
|
+
raise ValueError(message)
|
72
|
+
return self.get_conferences_with_http_info(**kwargs) # noqa: E501
|
73
|
+
|
74
|
+
@validate_arguments
|
75
|
+
def get_conferences_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
|
76
|
+
"""get_conferences # noqa: E501
|
77
|
+
|
78
|
+
Retrieves list of available conferences # noqa: E501
|
79
|
+
This method makes a synchronous HTTP request by default. To make an
|
80
|
+
asynchronous HTTP request, please pass async_req=True
|
81
|
+
|
82
|
+
>>> thread = api.get_conferences_with_http_info(async_req=True)
|
83
|
+
>>> result = thread.get()
|
84
|
+
|
85
|
+
:param async_req: Whether to execute the request asynchronously.
|
86
|
+
:type async_req: bool, optional
|
87
|
+
:param _preload_content: if False, the ApiResponse.data will
|
88
|
+
be set to none and raw_data will store the
|
89
|
+
HTTP response body without reading/decoding.
|
90
|
+
Default is True.
|
91
|
+
:type _preload_content: bool, optional
|
92
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
93
|
+
object with status code, headers, etc
|
94
|
+
:type _return_http_data_only: bool, optional
|
95
|
+
:param _request_timeout: timeout setting for this request. If one
|
96
|
+
number provided, it will be total request
|
97
|
+
timeout. It can also be a pair (tuple) of
|
98
|
+
(connection, read) timeouts.
|
99
|
+
:param _request_auth: set to override the auth_settings for an a single
|
100
|
+
request; this effectively ignores the authentication
|
101
|
+
in the spec for a single request.
|
102
|
+
:type _request_auth: dict, optional
|
103
|
+
:type _content_type: string, optional: force content-type for the request
|
104
|
+
:return: Returns the result object.
|
105
|
+
If the method is called asynchronously,
|
106
|
+
returns the request thread.
|
107
|
+
:rtype: tuple(List[ConferenceInfo], status_code(int), headers(HTTPHeaderDict))
|
108
|
+
"""
|
109
|
+
|
110
|
+
_params = locals()
|
111
|
+
|
112
|
+
_all_params = [
|
113
|
+
]
|
114
|
+
_all_params.extend(
|
115
|
+
[
|
116
|
+
'async_req',
|
117
|
+
'_return_http_data_only',
|
118
|
+
'_preload_content',
|
119
|
+
'_request_timeout',
|
120
|
+
'_request_auth',
|
121
|
+
'_content_type',
|
122
|
+
'_headers'
|
123
|
+
]
|
124
|
+
)
|
125
|
+
|
126
|
+
# validate the arguments
|
127
|
+
for _key, _val in _params['kwargs'].items():
|
128
|
+
if _key not in _all_params:
|
129
|
+
raise ApiTypeError(
|
130
|
+
"Got an unexpected keyword argument '%s'"
|
131
|
+
" to method get_conferences" % _key
|
132
|
+
)
|
133
|
+
_params[_key] = _val
|
134
|
+
del _params['kwargs']
|
135
|
+
|
136
|
+
_collection_formats = {}
|
137
|
+
|
138
|
+
# process the path parameters
|
139
|
+
_path_params = {}
|
140
|
+
|
141
|
+
# process the query parameters
|
142
|
+
_query_params = []
|
143
|
+
# process the header parameters
|
144
|
+
_header_params = dict(_params.get('_headers', {}))
|
145
|
+
# process the form parameters
|
146
|
+
_form_params = []
|
147
|
+
_files = {}
|
148
|
+
# process the body parameter
|
149
|
+
_body_params = None
|
150
|
+
# set the HTTP header `Accept`
|
151
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
152
|
+
['application/json']) # noqa: E501
|
153
|
+
|
154
|
+
# authentication setting
|
155
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
156
|
+
|
157
|
+
_response_types_map = {
|
158
|
+
'200': "List[ConferenceInfo]",
|
159
|
+
}
|
160
|
+
|
161
|
+
return self.api_client.call_api(
|
162
|
+
'/conferences', 'GET',
|
163
|
+
_path_params,
|
164
|
+
_query_params,
|
165
|
+
_header_params,
|
166
|
+
body=_body_params,
|
167
|
+
post_params=_form_params,
|
168
|
+
files=_files,
|
169
|
+
response_types_map=_response_types_map,
|
170
|
+
auth_settings=_auth_settings,
|
171
|
+
async_req=_params.get('async_req'),
|
172
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
173
|
+
_preload_content=_params.get('_preload_content', True),
|
174
|
+
_request_timeout=_params.get('_request_timeout'),
|
175
|
+
collection_formats=_collection_formats,
|
176
|
+
_request_auth=_params.get('_request_auth'))
|