cbbd 1.1.0a1__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.
Files changed (44) hide show
  1. cbbd/__init__.py +64 -0
  2. cbbd/api/__init__.py +10 -0
  3. cbbd/api/conferences_api.py +176 -0
  4. cbbd/api/games_api.py +806 -0
  5. cbbd/api/plays_api.py +761 -0
  6. cbbd/api/stats_api.py +423 -0
  7. cbbd/api/teams_api.py +195 -0
  8. cbbd/api/venues_api.py +176 -0
  9. cbbd/api_client.py +767 -0
  10. cbbd/api_response.py +25 -0
  11. cbbd/configuration.py +443 -0
  12. cbbd/exceptions.py +167 -0
  13. cbbd/models/__init__.py +42 -0
  14. cbbd/models/conference_info.py +80 -0
  15. cbbd/models/game_box_score_players.py +147 -0
  16. cbbd/models/game_box_score_players_players_inner.py +238 -0
  17. cbbd/models/game_box_score_team.py +148 -0
  18. cbbd/models/game_box_score_team_stats.py +170 -0
  19. cbbd/models/game_box_score_team_stats_points.py +112 -0
  20. cbbd/models/game_info.py +212 -0
  21. cbbd/models/game_media_info.py +133 -0
  22. cbbd/models/game_media_info_broadcasts_inner.py +74 -0
  23. cbbd/models/game_status.py +44 -0
  24. cbbd/models/play_info.py +193 -0
  25. cbbd/models/play_info_participants_inner.py +74 -0
  26. cbbd/models/play_type_info.py +74 -0
  27. cbbd/models/player_season_stats.py +231 -0
  28. cbbd/models/season_type.py +42 -0
  29. cbbd/models/team_info.py +160 -0
  30. cbbd/models/team_season_stats.py +112 -0
  31. cbbd/models/team_season_unit_stats.py +163 -0
  32. cbbd/models/team_season_unit_stats_field_goals.py +91 -0
  33. cbbd/models/team_season_unit_stats_fouls.py +91 -0
  34. cbbd/models/team_season_unit_stats_four_factors.py +98 -0
  35. cbbd/models/team_season_unit_stats_points.py +98 -0
  36. cbbd/models/team_season_unit_stats_rebounds.py +91 -0
  37. cbbd/models/team_season_unit_stats_turnovers.py +84 -0
  38. cbbd/models/venue_info.py +102 -0
  39. cbbd/py.typed +0 -0
  40. cbbd/rest.py +330 -0
  41. cbbd-1.1.0a1.dist-info/METADATA +24 -0
  42. cbbd-1.1.0a1.dist-info/RECORD +44 -0
  43. cbbd-1.1.0a1.dist-info/WHEEL +5 -0
  44. cbbd-1.1.0a1.dist-info/top_level.txt +1 -0
cbbd/api/venues_api.py ADDED
@@ -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.venue_info import VenueInfo
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 VenuesApi:
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_venues(self, **kwargs) -> List[VenueInfo]: # noqa: E501
48
+ """get_venues # noqa: E501
49
+
50
+ Retrieves list of available venues # 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_venues(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[VenueInfo]
67
+ """
68
+ kwargs['_return_http_data_only'] = True
69
+ if '_preload_content' in kwargs:
70
+ message = "Error! Please call the get_venues_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_venues_with_http_info(**kwargs) # noqa: E501
73
+
74
+ @validate_arguments
75
+ def get_venues_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
76
+ """get_venues # noqa: E501
77
+
78
+ Retrieves list of available venues # 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_venues_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[VenueInfo], 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_venues" % _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[VenueInfo]",
159
+ }
160
+
161
+ return self.api_client.call_api(
162
+ '/venues', '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'))