cbbd 1.15.2__py3-none-any.whl → 1.16.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 +4 -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/plays_api.py +438 -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 +1 -1
- cbbd/api/teams_api.py +1 -1
- cbbd/api/venues_api.py +1 -1
- cbbd/api_client.py +3 -3
- cbbd/configuration.py +3 -3
- cbbd/exceptions.py +1 -1
- cbbd/models/__init__.py +3 -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/play_info.py +1 -1
- cbbd/models/play_info_participants_inner.py +1 -1
- cbbd/models/play_type_info.py +1 -1
- cbbd/models/player_season_stats.py +1 -1
- cbbd/models/player_season_stats_win_shares.py +1 -1
- cbbd/models/player_subsititution.py +118 -0
- cbbd/models/player_subsititution_sub_in.py +78 -0
- 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_type.py +1 -1
- cbbd/models/shot_info.py +5 -20
- cbbd/models/shot_info_location.py +14 -4
- cbbd/models/shot_info_shooter.py +14 -4
- 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.15.2.dist-info → cbbd-1.16.0.dist-info}/METADATA +1 -1
- cbbd-1.16.0.dist-info/RECORD +73 -0
- {cbbd-1.15.2.dist-info → cbbd-1.16.0.dist-info}/WHEEL +1 -1
- cbbd-1.15.2.dist-info/RECORD +0 -71
- {cbbd-1.15.2.dist-info → cbbd-1.16.0.dist-info}/top_level.txt +0 -0
@@ -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.16.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/conference_info.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/draft_pick.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/draft_position.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/draft_team.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.16.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.16.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.16.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.16.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_info.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_line_info.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_lines.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_media_info.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_status.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/play_info.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/play_type_info.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.16.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,118 @@
|
|
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.16.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
|
+
from datetime import datetime
|
22
|
+
from typing import Optional
|
23
|
+
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
24
|
+
from cbbd.models.player_subsititution_sub_in import PlayerSubsititutionSubIn
|
25
|
+
|
26
|
+
class PlayerSubsititution(BaseModel):
|
27
|
+
"""
|
28
|
+
PlayerSubsititution
|
29
|
+
"""
|
30
|
+
game_id: StrictInt = Field(default=..., alias="gameId")
|
31
|
+
start_date: datetime = Field(default=..., alias="startDate")
|
32
|
+
team_id: StrictInt = Field(default=..., alias="teamId")
|
33
|
+
team: StrictStr = Field(...)
|
34
|
+
conference: Optional[StrictStr] = Field(...)
|
35
|
+
athlete_id: StrictInt = Field(default=..., alias="athleteId")
|
36
|
+
athlete: StrictStr = Field(...)
|
37
|
+
position: Optional[StrictStr] = Field(...)
|
38
|
+
opponent_id: StrictInt = Field(default=..., alias="opponentId")
|
39
|
+
opponent: StrictStr = Field(...)
|
40
|
+
opponent_conference: Optional[StrictStr] = Field(default=..., alias="opponentConference")
|
41
|
+
sub_in: PlayerSubsititutionSubIn = Field(default=..., alias="subIn")
|
42
|
+
sub_out: PlayerSubsititutionSubIn = Field(default=..., alias="subOut")
|
43
|
+
__properties = ["gameId", "startDate", "teamId", "team", "conference", "athleteId", "athlete", "position", "opponentId", "opponent", "opponentConference", "subIn", "subOut"]
|
44
|
+
|
45
|
+
class Config:
|
46
|
+
"""Pydantic configuration"""
|
47
|
+
allow_population_by_field_name = True
|
48
|
+
validate_assignment = True
|
49
|
+
|
50
|
+
def to_str(self) -> str:
|
51
|
+
"""Returns the string representation of the model using alias"""
|
52
|
+
return pprint.pformat(self.dict(by_alias=True))
|
53
|
+
|
54
|
+
def to_json(self) -> str:
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
56
|
+
return json.dumps(self.to_dict())
|
57
|
+
|
58
|
+
@classmethod
|
59
|
+
def from_json(cls, json_str: str) -> PlayerSubsititution:
|
60
|
+
"""Create an instance of PlayerSubsititution from a JSON string"""
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the dictionary representation of the model using alias"""
|
65
|
+
_dict = self.dict(by_alias=True,
|
66
|
+
exclude={
|
67
|
+
},
|
68
|
+
exclude_none=True)
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of sub_in
|
70
|
+
if self.sub_in:
|
71
|
+
_dict['subIn'] = self.sub_in.to_dict()
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of sub_out
|
73
|
+
if self.sub_out:
|
74
|
+
_dict['subOut'] = self.sub_out.to_dict()
|
75
|
+
# set to None if conference (nullable) is None
|
76
|
+
# and __fields_set__ contains the field
|
77
|
+
if self.conference is None and "conference" in self.__fields_set__:
|
78
|
+
_dict['conference'] = None
|
79
|
+
|
80
|
+
# set to None if position (nullable) is None
|
81
|
+
# and __fields_set__ contains the field
|
82
|
+
if self.position is None and "position" in self.__fields_set__:
|
83
|
+
_dict['position'] = None
|
84
|
+
|
85
|
+
# set to None if opponent_conference (nullable) is None
|
86
|
+
# and __fields_set__ contains the field
|
87
|
+
if self.opponent_conference is None and "opponent_conference" in self.__fields_set__:
|
88
|
+
_dict['opponentConference'] = None
|
89
|
+
|
90
|
+
return _dict
|
91
|
+
|
92
|
+
@classmethod
|
93
|
+
def from_dict(cls, obj: dict) -> PlayerSubsititution:
|
94
|
+
"""Create an instance of PlayerSubsititution from a dict"""
|
95
|
+
if obj is None:
|
96
|
+
return None
|
97
|
+
|
98
|
+
if not isinstance(obj, dict):
|
99
|
+
return PlayerSubsititution.parse_obj(obj)
|
100
|
+
|
101
|
+
_obj = PlayerSubsititution.parse_obj({
|
102
|
+
"game_id": obj.get("gameId"),
|
103
|
+
"start_date": obj.get("startDate"),
|
104
|
+
"team_id": obj.get("teamId"),
|
105
|
+
"team": obj.get("team"),
|
106
|
+
"conference": obj.get("conference"),
|
107
|
+
"athlete_id": obj.get("athleteId"),
|
108
|
+
"athlete": obj.get("athlete"),
|
109
|
+
"position": obj.get("position"),
|
110
|
+
"opponent_id": obj.get("opponentId"),
|
111
|
+
"opponent": obj.get("opponent"),
|
112
|
+
"opponent_conference": obj.get("opponentConference"),
|
113
|
+
"sub_in": PlayerSubsititutionSubIn.from_dict(obj.get("subIn")) if obj.get("subIn") is not None else None,
|
114
|
+
"sub_out": PlayerSubsititutionSubIn.from_dict(obj.get("subOut")) if obj.get("subOut") is not None else None
|
115
|
+
})
|
116
|
+
return _obj
|
117
|
+
|
118
|
+
|
@@ -0,0 +1,78 @@
|
|
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.16.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
|
+
|
23
|
+
from pydantic import BaseModel, Field, StrictInt
|
24
|
+
|
25
|
+
class PlayerSubsititutionSubIn(BaseModel):
|
26
|
+
"""
|
27
|
+
PlayerSubsititutionSubIn
|
28
|
+
"""
|
29
|
+
opponent_points: StrictInt = Field(default=..., alias="opponentPoints")
|
30
|
+
team_points: StrictInt = Field(default=..., alias="teamPoints")
|
31
|
+
seconds_remaining: StrictInt = Field(default=..., alias="secondsRemaining")
|
32
|
+
period: StrictInt = Field(...)
|
33
|
+
__properties = ["opponentPoints", "teamPoints", "secondsRemaining", "period"]
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
"""Pydantic configuration"""
|
37
|
+
allow_population_by_field_name = True
|
38
|
+
validate_assignment = True
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.dict(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
return json.dumps(self.to_dict())
|
47
|
+
|
48
|
+
@classmethod
|
49
|
+
def from_json(cls, json_str: str) -> PlayerSubsititutionSubIn:
|
50
|
+
"""Create an instance of PlayerSubsititutionSubIn from a JSON string"""
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
52
|
+
|
53
|
+
def to_dict(self):
|
54
|
+
"""Returns the dictionary representation of the model using alias"""
|
55
|
+
_dict = self.dict(by_alias=True,
|
56
|
+
exclude={
|
57
|
+
},
|
58
|
+
exclude_none=True)
|
59
|
+
return _dict
|
60
|
+
|
61
|
+
@classmethod
|
62
|
+
def from_dict(cls, obj: dict) -> PlayerSubsititutionSubIn:
|
63
|
+
"""Create an instance of PlayerSubsititutionSubIn from a dict"""
|
64
|
+
if obj is None:
|
65
|
+
return None
|
66
|
+
|
67
|
+
if not isinstance(obj, dict):
|
68
|
+
return PlayerSubsititutionSubIn.parse_obj(obj)
|
69
|
+
|
70
|
+
_obj = PlayerSubsititutionSubIn.parse_obj({
|
71
|
+
"opponent_points": obj.get("opponentPoints"),
|
72
|
+
"team_points": obj.get("teamPoints"),
|
73
|
+
"seconds_remaining": obj.get("secondsRemaining"),
|
74
|
+
"period": obj.get("period")
|
75
|
+
})
|
76
|
+
return _obj
|
77
|
+
|
78
|
+
|
cbbd/models/poll_team_info.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/recruit.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.16.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/recruit_hometown.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/season_type.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/shot_info.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
19
19
|
import json
|
20
20
|
|
21
21
|
|
22
|
-
|
22
|
+
|
23
23
|
from pydantic import BaseModel, Field, StrictBool, StrictStr, validator
|
24
24
|
from cbbd.models.shot_info_location import ShotInfoLocation
|
25
25
|
from cbbd.models.shot_info_shooter import ShotInfoShooter
|
@@ -28,12 +28,12 @@ class ShotInfo(BaseModel):
|
|
28
28
|
"""
|
29
29
|
ShotInfo
|
30
30
|
"""
|
31
|
-
shooter:
|
31
|
+
shooter: ShotInfoShooter = Field(...)
|
32
32
|
made: StrictBool = Field(...)
|
33
33
|
range: StrictStr = Field(...)
|
34
34
|
assisted: StrictBool = Field(...)
|
35
|
-
assisted_by:
|
36
|
-
location:
|
35
|
+
assisted_by: ShotInfoShooter = Field(default=..., alias="assistedBy")
|
36
|
+
location: ShotInfoLocation = Field(...)
|
37
37
|
__properties = ["shooter", "made", "range", "assisted", "assistedBy", "location"]
|
38
38
|
|
39
39
|
@validator('range')
|
@@ -76,21 +76,6 @@ class ShotInfo(BaseModel):
|
|
76
76
|
# override the default output from pydantic by calling `to_dict()` of location
|
77
77
|
if self.location:
|
78
78
|
_dict['location'] = self.location.to_dict()
|
79
|
-
# set to None if shooter (nullable) is None
|
80
|
-
# and __fields_set__ contains the field
|
81
|
-
if self.shooter is None and "shooter" in self.__fields_set__:
|
82
|
-
_dict['shooter'] = None
|
83
|
-
|
84
|
-
# set to None if assisted_by (nullable) is None
|
85
|
-
# and __fields_set__ contains the field
|
86
|
-
if self.assisted_by is None and "assisted_by" in self.__fields_set__:
|
87
|
-
_dict['assistedBy'] = None
|
88
|
-
|
89
|
-
# set to None if location (nullable) is None
|
90
|
-
# and __fields_set__ contains the field
|
91
|
-
if self.location is None and "location" in self.__fields_set__:
|
92
|
-
_dict['location'] = None
|
93
|
-
|
94
79
|
return _dict
|
95
80
|
|
96
81
|
@classmethod
|
@@ -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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -19,15 +19,15 @@ import re # noqa: F401
|
|
19
19
|
import json
|
20
20
|
|
21
21
|
|
22
|
-
from typing import Union
|
22
|
+
from typing import Optional, Union
|
23
23
|
from pydantic import BaseModel, Field, StrictFloat, StrictInt
|
24
24
|
|
25
25
|
class ShotInfoLocation(BaseModel):
|
26
26
|
"""
|
27
27
|
ShotInfoLocation
|
28
28
|
"""
|
29
|
-
y: Union[StrictFloat, StrictInt] = Field(...)
|
30
|
-
x: Union[StrictFloat, StrictInt] = Field(...)
|
29
|
+
y: Optional[Union[StrictFloat, StrictInt]] = Field(...)
|
30
|
+
x: Optional[Union[StrictFloat, StrictInt]] = Field(...)
|
31
31
|
__properties = ["y", "x"]
|
32
32
|
|
33
33
|
class Config:
|
@@ -54,6 +54,16 @@ class ShotInfoLocation(BaseModel):
|
|
54
54
|
exclude={
|
55
55
|
},
|
56
56
|
exclude_none=True)
|
57
|
+
# set to None if y (nullable) is None
|
58
|
+
# and __fields_set__ contains the field
|
59
|
+
if self.y is None and "y" in self.__fields_set__:
|
60
|
+
_dict['y'] = None
|
61
|
+
|
62
|
+
# set to None if x (nullable) is None
|
63
|
+
# and __fields_set__ contains the field
|
64
|
+
if self.x is None and "x" in self.__fields_set__:
|
65
|
+
_dict['x'] = None
|
66
|
+
|
57
67
|
return _dict
|
58
68
|
|
59
69
|
@classmethod
|
cbbd/models/shot_info_shooter.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -19,15 +19,15 @@ import re # noqa: F401
|
|
19
19
|
import json
|
20
20
|
|
21
21
|
|
22
|
-
|
22
|
+
from typing import Optional
|
23
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
24
24
|
|
25
25
|
class ShotInfoShooter(BaseModel):
|
26
26
|
"""
|
27
27
|
ShotInfoShooter
|
28
28
|
"""
|
29
|
-
name: StrictStr = Field(...)
|
30
|
-
id: StrictInt = Field(...)
|
29
|
+
name: Optional[StrictStr] = Field(...)
|
30
|
+
id: Optional[StrictInt] = Field(...)
|
31
31
|
__properties = ["name", "id"]
|
32
32
|
|
33
33
|
class Config:
|
@@ -54,6 +54,16 @@ class ShotInfoShooter(BaseModel):
|
|
54
54
|
exclude={
|
55
55
|
},
|
56
56
|
exclude_none=True)
|
57
|
+
# set to None if name (nullable) is None
|
58
|
+
# and __fields_set__ contains the field
|
59
|
+
if self.name is None and "name" in self.__fields_set__:
|
60
|
+
_dict['name'] = None
|
61
|
+
|
62
|
+
# set to None if id (nullable) is None
|
63
|
+
# and __fields_set__ contains the field
|
64
|
+
if self.id is None and "id" in self.__fields_set__:
|
65
|
+
_dict['id'] = None
|
66
|
+
|
57
67
|
return _dict
|
58
68
|
|
59
69
|
@classmethod
|
cbbd/models/srs_info.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.16.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|