cbbd 1.19.2__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.
Files changed (83) hide show
  1. cbbd/__init__.py +7 -2
  2. cbbd/api/conferences_api.py +1 -1
  3. cbbd/api/draft_api.py +1 -1
  4. cbbd/api/games_api.py +1 -1
  5. cbbd/api/lines_api.py +1 -1
  6. cbbd/api/lineups_api.py +1 -1
  7. cbbd/api/plays_api.py +1 -1
  8. cbbd/api/rankings_api.py +1 -1
  9. cbbd/api/ratings_api.py +1 -1
  10. cbbd/api/recruiting_api.py +1 -1
  11. cbbd/api/stats_api.py +375 -1
  12. cbbd/api/teams_api.py +1 -1
  13. cbbd/api/venues_api.py +1 -1
  14. cbbd/api_client.py +2 -2
  15. cbbd/configuration.py +3 -3
  16. cbbd/exceptions.py +1 -1
  17. cbbd/models/__init__.py +6 -1
  18. cbbd/models/adjusted_efficiency_info.py +1 -1
  19. cbbd/models/adjusted_efficiency_info_rankings.py +1 -1
  20. cbbd/models/conference_history.py +1 -1
  21. cbbd/models/conference_history_teams_inner.py +1 -1
  22. cbbd/models/conference_info.py +1 -1
  23. cbbd/models/draft_pick.py +1 -1
  24. cbbd/models/draft_position.py +1 -1
  25. cbbd/models/draft_team.py +1 -1
  26. cbbd/models/game_box_score_players.py +1 -1
  27. cbbd/models/game_box_score_players_players_inner.py +1 -1
  28. cbbd/models/game_box_score_team.py +1 -1
  29. cbbd/models/game_box_score_team_stats.py +1 -1
  30. cbbd/models/game_box_score_team_stats_points.py +1 -1
  31. cbbd/models/game_info.py +1 -1
  32. cbbd/models/game_line_info.py +1 -1
  33. cbbd/models/game_lines.py +1 -1
  34. cbbd/models/game_media_info.py +1 -1
  35. cbbd/models/game_media_info_broadcasts_inner.py +1 -1
  36. cbbd/models/game_status.py +1 -1
  37. cbbd/models/line_provider_info.py +1 -1
  38. cbbd/models/lineup_stats.py +1 -1
  39. cbbd/models/lineup_unit_stats.py +1 -1
  40. cbbd/models/lineup_unit_stats_four_factors.py +1 -1
  41. cbbd/models/lineup_unit_stats_two_pointers.py +1 -1
  42. cbbd/models/play_info.py +1 -1
  43. cbbd/models/play_info_on_floor_inner.py +1 -1
  44. cbbd/models/play_info_participants_inner.py +1 -1
  45. cbbd/models/play_type_info.py +1 -1
  46. cbbd/models/player_season_shooting_stats.py +124 -0
  47. cbbd/models/player_season_stats.py +1 -1
  48. cbbd/models/player_season_stats_win_shares.py +1 -1
  49. cbbd/models/player_subsititution.py +1 -1
  50. cbbd/models/player_subsititution_sub_in.py +1 -1
  51. cbbd/models/poll_team_info.py +1 -1
  52. cbbd/models/recruit.py +1 -1
  53. cbbd/models/recruit_committed_to.py +1 -1
  54. cbbd/models/recruit_hometown.py +1 -1
  55. cbbd/models/season_shooting_stats.py +120 -0
  56. cbbd/models/season_shooting_stats_attempts_breakdown.py +80 -0
  57. cbbd/models/season_shooting_stats_dunks.py +80 -0
  58. cbbd/models/season_type.py +1 -1
  59. cbbd/models/shooting_stats.py +1 -1
  60. cbbd/models/shot_info.py +1 -1
  61. cbbd/models/shot_info_location.py +1 -1
  62. cbbd/models/shot_info_shooter.py +1 -1
  63. cbbd/models/shot_type_breakdown.py +76 -0
  64. cbbd/models/srs_info.py +1 -1
  65. cbbd/models/team_info.py +1 -1
  66. cbbd/models/team_roster.py +1 -1
  67. cbbd/models/team_roster_player.py +1 -1
  68. cbbd/models/team_roster_player_hometown.py +1 -1
  69. cbbd/models/team_season_stats.py +1 -1
  70. cbbd/models/team_season_unit_stats.py +1 -1
  71. cbbd/models/team_season_unit_stats_field_goals.py +1 -1
  72. cbbd/models/team_season_unit_stats_fouls.py +1 -1
  73. cbbd/models/team_season_unit_stats_four_factors.py +1 -1
  74. cbbd/models/team_season_unit_stats_points.py +1 -1
  75. cbbd/models/team_season_unit_stats_rebounds.py +1 -1
  76. cbbd/models/team_season_unit_stats_turnovers.py +1 -1
  77. cbbd/models/venue_info.py +1 -1
  78. cbbd/rest.py +1 -1
  79. {cbbd-1.19.2.dist-info → cbbd-1.20.0.dist-info}/METADATA +1 -1
  80. cbbd-1.20.0.dist-info/RECORD +85 -0
  81. cbbd-1.19.2.dist-info/RECORD +0 -80
  82. {cbbd-1.19.2.dist-info → cbbd-1.20.0.dist-info}/WHEEL +0 -0
  83. {cbbd-1.19.2.dist-info → cbbd-1.20.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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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/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.19.2
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
 
@@ -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.19.2
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/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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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/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.19.2
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
 
@@ -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.19.2
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/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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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/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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -0,0 +1,124 @@
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.20.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 Optional, Union
23
+ from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
24
+ from cbbd.models.season_shooting_stats_attempts_breakdown import SeasonShootingStatsAttemptsBreakdown
25
+ from cbbd.models.season_shooting_stats_dunks import SeasonShootingStatsDunks
26
+ from cbbd.models.shot_type_breakdown import ShotTypeBreakdown
27
+
28
+ class PlayerSeasonShootingStats(BaseModel):
29
+ """
30
+ PlayerSeasonShootingStats
31
+ """
32
+ season: StrictInt = Field(...)
33
+ team_id: StrictInt = Field(default=..., alias="teamId")
34
+ team: StrictStr = Field(...)
35
+ conference: Optional[StrictStr] = Field(...)
36
+ tracked_shots: StrictInt = Field(default=..., alias="trackedShots")
37
+ assisted_pct: Union[StrictFloat, StrictInt] = Field(default=..., alias="assistedPct")
38
+ dunks: SeasonShootingStatsDunks = Field(...)
39
+ layups: SeasonShootingStatsDunks = Field(...)
40
+ tip_ins: ShotTypeBreakdown = Field(default=..., alias="tipIns")
41
+ two_point_jumpers: SeasonShootingStatsDunks = Field(default=..., alias="twoPointJumpers")
42
+ three_point_jumpers: SeasonShootingStatsDunks = Field(default=..., alias="threePointJumpers")
43
+ attempts_breakdown: SeasonShootingStatsAttemptsBreakdown = Field(default=..., alias="attemptsBreakdown")
44
+ athlete_id: StrictInt = Field(default=..., alias="athleteId")
45
+ athlete_name: StrictStr = Field(default=..., alias="athleteName")
46
+ __properties = ["season", "teamId", "team", "conference", "trackedShots", "assistedPct", "dunks", "layups", "tipIns", "twoPointJumpers", "threePointJumpers", "attemptsBreakdown", "athleteId", "athleteName"]
47
+
48
+ class Config:
49
+ """Pydantic configuration"""
50
+ allow_population_by_field_name = True
51
+ validate_assignment = True
52
+
53
+ def to_str(self) -> str:
54
+ """Returns the string representation of the model using alias"""
55
+ return pprint.pformat(self.dict(by_alias=True))
56
+
57
+ def to_json(self) -> str:
58
+ """Returns the JSON representation of the model using alias"""
59
+ return json.dumps(self.to_dict())
60
+
61
+ @classmethod
62
+ def from_json(cls, json_str: str) -> PlayerSeasonShootingStats:
63
+ """Create an instance of PlayerSeasonShootingStats from a JSON string"""
64
+ return cls.from_dict(json.loads(json_str))
65
+
66
+ def to_dict(self):
67
+ """Returns the dictionary representation of the model using alias"""
68
+ _dict = self.dict(by_alias=True,
69
+ exclude={
70
+ },
71
+ exclude_none=True)
72
+ # override the default output from pydantic by calling `to_dict()` of dunks
73
+ if self.dunks:
74
+ _dict['dunks'] = self.dunks.to_dict()
75
+ # override the default output from pydantic by calling `to_dict()` of layups
76
+ if self.layups:
77
+ _dict['layups'] = self.layups.to_dict()
78
+ # override the default output from pydantic by calling `to_dict()` of tip_ins
79
+ if self.tip_ins:
80
+ _dict['tipIns'] = self.tip_ins.to_dict()
81
+ # override the default output from pydantic by calling `to_dict()` of two_point_jumpers
82
+ if self.two_point_jumpers:
83
+ _dict['twoPointJumpers'] = self.two_point_jumpers.to_dict()
84
+ # override the default output from pydantic by calling `to_dict()` of three_point_jumpers
85
+ if self.three_point_jumpers:
86
+ _dict['threePointJumpers'] = self.three_point_jumpers.to_dict()
87
+ # override the default output from pydantic by calling `to_dict()` of attempts_breakdown
88
+ if self.attempts_breakdown:
89
+ _dict['attemptsBreakdown'] = self.attempts_breakdown.to_dict()
90
+ # set to None if conference (nullable) is None
91
+ # and __fields_set__ contains the field
92
+ if self.conference is None and "conference" in self.__fields_set__:
93
+ _dict['conference'] = None
94
+
95
+ return _dict
96
+
97
+ @classmethod
98
+ def from_dict(cls, obj: dict) -> PlayerSeasonShootingStats:
99
+ """Create an instance of PlayerSeasonShootingStats from a dict"""
100
+ if obj is None:
101
+ return None
102
+
103
+ if not isinstance(obj, dict):
104
+ return PlayerSeasonShootingStats.parse_obj(obj)
105
+
106
+ _obj = PlayerSeasonShootingStats.parse_obj({
107
+ "season": obj.get("season"),
108
+ "team_id": obj.get("teamId"),
109
+ "team": obj.get("team"),
110
+ "conference": obj.get("conference"),
111
+ "tracked_shots": obj.get("trackedShots"),
112
+ "assisted_pct": obj.get("assistedPct"),
113
+ "dunks": SeasonShootingStatsDunks.from_dict(obj.get("dunks")) if obj.get("dunks") is not None else None,
114
+ "layups": SeasonShootingStatsDunks.from_dict(obj.get("layups")) if obj.get("layups") is not None else None,
115
+ "tip_ins": ShotTypeBreakdown.from_dict(obj.get("tipIns")) if obj.get("tipIns") is not None else None,
116
+ "two_point_jumpers": SeasonShootingStatsDunks.from_dict(obj.get("twoPointJumpers")) if obj.get("twoPointJumpers") is not None else None,
117
+ "three_point_jumpers": SeasonShootingStatsDunks.from_dict(obj.get("threePointJumpers")) if obj.get("threePointJumpers") is not None else None,
118
+ "attempts_breakdown": SeasonShootingStatsAttemptsBreakdown.from_dict(obj.get("attemptsBreakdown")) if obj.get("attemptsBreakdown") is not None else None,
119
+ "athlete_id": obj.get("athleteId"),
120
+ "athlete_name": obj.get("athleteName")
121
+ })
122
+ return _obj
123
+
124
+
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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/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.19.2
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
 
@@ -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.19.2
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
 
@@ -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.19.2
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
 
@@ -0,0 +1,120 @@
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.20.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 Optional, Union
23
+ from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
24
+ from cbbd.models.season_shooting_stats_attempts_breakdown import SeasonShootingStatsAttemptsBreakdown
25
+ from cbbd.models.season_shooting_stats_dunks import SeasonShootingStatsDunks
26
+ from cbbd.models.shot_type_breakdown import ShotTypeBreakdown
27
+
28
+ class SeasonShootingStats(BaseModel):
29
+ """
30
+ SeasonShootingStats
31
+ """
32
+ season: StrictInt = Field(...)
33
+ team_id: StrictInt = Field(default=..., alias="teamId")
34
+ team: StrictStr = Field(...)
35
+ conference: Optional[StrictStr] = Field(...)
36
+ tracked_shots: StrictInt = Field(default=..., alias="trackedShots")
37
+ assisted_pct: Union[StrictFloat, StrictInt] = Field(default=..., alias="assistedPct")
38
+ dunks: SeasonShootingStatsDunks = Field(...)
39
+ layups: SeasonShootingStatsDunks = Field(...)
40
+ tip_ins: ShotTypeBreakdown = Field(default=..., alias="tipIns")
41
+ two_point_jumpers: SeasonShootingStatsDunks = Field(default=..., alias="twoPointJumpers")
42
+ three_point_jumpers: SeasonShootingStatsDunks = Field(default=..., alias="threePointJumpers")
43
+ attempts_breakdown: SeasonShootingStatsAttemptsBreakdown = Field(default=..., alias="attemptsBreakdown")
44
+ __properties = ["season", "teamId", "team", "conference", "trackedShots", "assistedPct", "dunks", "layups", "tipIns", "twoPointJumpers", "threePointJumpers", "attemptsBreakdown"]
45
+
46
+ class Config:
47
+ """Pydantic configuration"""
48
+ allow_population_by_field_name = True
49
+ validate_assignment = True
50
+
51
+ def to_str(self) -> str:
52
+ """Returns the string representation of the model using alias"""
53
+ return pprint.pformat(self.dict(by_alias=True))
54
+
55
+ def to_json(self) -> str:
56
+ """Returns the JSON representation of the model using alias"""
57
+ return json.dumps(self.to_dict())
58
+
59
+ @classmethod
60
+ def from_json(cls, json_str: str) -> SeasonShootingStats:
61
+ """Create an instance of SeasonShootingStats from a JSON string"""
62
+ return cls.from_dict(json.loads(json_str))
63
+
64
+ def to_dict(self):
65
+ """Returns the dictionary representation of the model using alias"""
66
+ _dict = self.dict(by_alias=True,
67
+ exclude={
68
+ },
69
+ exclude_none=True)
70
+ # override the default output from pydantic by calling `to_dict()` of dunks
71
+ if self.dunks:
72
+ _dict['dunks'] = self.dunks.to_dict()
73
+ # override the default output from pydantic by calling `to_dict()` of layups
74
+ if self.layups:
75
+ _dict['layups'] = self.layups.to_dict()
76
+ # override the default output from pydantic by calling `to_dict()` of tip_ins
77
+ if self.tip_ins:
78
+ _dict['tipIns'] = self.tip_ins.to_dict()
79
+ # override the default output from pydantic by calling `to_dict()` of two_point_jumpers
80
+ if self.two_point_jumpers:
81
+ _dict['twoPointJumpers'] = self.two_point_jumpers.to_dict()
82
+ # override the default output from pydantic by calling `to_dict()` of three_point_jumpers
83
+ if self.three_point_jumpers:
84
+ _dict['threePointJumpers'] = self.three_point_jumpers.to_dict()
85
+ # override the default output from pydantic by calling `to_dict()` of attempts_breakdown
86
+ if self.attempts_breakdown:
87
+ _dict['attemptsBreakdown'] = self.attempts_breakdown.to_dict()
88
+ # set to None if conference (nullable) is None
89
+ # and __fields_set__ contains the field
90
+ if self.conference is None and "conference" in self.__fields_set__:
91
+ _dict['conference'] = None
92
+
93
+ return _dict
94
+
95
+ @classmethod
96
+ def from_dict(cls, obj: dict) -> SeasonShootingStats:
97
+ """Create an instance of SeasonShootingStats from a dict"""
98
+ if obj is None:
99
+ return None
100
+
101
+ if not isinstance(obj, dict):
102
+ return SeasonShootingStats.parse_obj(obj)
103
+
104
+ _obj = SeasonShootingStats.parse_obj({
105
+ "season": obj.get("season"),
106
+ "team_id": obj.get("teamId"),
107
+ "team": obj.get("team"),
108
+ "conference": obj.get("conference"),
109
+ "tracked_shots": obj.get("trackedShots"),
110
+ "assisted_pct": obj.get("assistedPct"),
111
+ "dunks": SeasonShootingStatsDunks.from_dict(obj.get("dunks")) if obj.get("dunks") is not None else None,
112
+ "layups": SeasonShootingStatsDunks.from_dict(obj.get("layups")) if obj.get("layups") is not None else None,
113
+ "tip_ins": ShotTypeBreakdown.from_dict(obj.get("tipIns")) if obj.get("tipIns") is not None else None,
114
+ "two_point_jumpers": SeasonShootingStatsDunks.from_dict(obj.get("twoPointJumpers")) if obj.get("twoPointJumpers") is not None else None,
115
+ "three_point_jumpers": SeasonShootingStatsDunks.from_dict(obj.get("threePointJumpers")) if obj.get("threePointJumpers") is not None else None,
116
+ "attempts_breakdown": SeasonShootingStatsAttemptsBreakdown.from_dict(obj.get("attemptsBreakdown")) if obj.get("attemptsBreakdown") is not None else None
117
+ })
118
+ return _obj
119
+
120
+