Skip to content

Commit a98b08c

Browse files
committedSep 22, 2024
feat(wepa): moving team endpoint and adding new player endpoints
1 parent ee4ad02 commit a98b08c

File tree

298 files changed

+2555
-572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+2555
-572
lines changed
 

‎.openapi-generator/FILES

+21-12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
README.md
77
cfbd/__init__.py
88
cfbd/api/__init__.py
9+
cfbd/api/adjusted_metrics_api.py
910
cfbd/api/betting_api.py
1011
cfbd/api/coaches_api.py
1112
cfbd/api/conferences_api.py
@@ -26,10 +27,10 @@ cfbd/api_response.py
2627
cfbd/configuration.py
2728
cfbd/exceptions.py
2829
cfbd/models/__init__.py
29-
cfbd/models/adjusted_metrics.py
30-
cfbd/models/adjusted_metrics_epa.py
31-
cfbd/models/adjusted_metrics_rushing.py
32-
cfbd/models/adjusted_metrics_success_rate.py
30+
cfbd/models/adjusted_team_metrics.py
31+
cfbd/models/adjusted_team_metrics_epa.py
32+
cfbd/models/adjusted_team_metrics_rushing.py
33+
cfbd/models/adjusted_team_metrics_success_rate.py
3334
cfbd/models/advanced_box_score.py
3435
cfbd/models/advanced_box_score_game_info.py
3536
cfbd/models/advanced_box_score_players.py
@@ -74,6 +75,7 @@ cfbd/models/game_team_stats.py
7475
cfbd/models/game_team_stats_team.py
7576
cfbd/models/game_team_stats_team_stat.py
7677
cfbd/models/game_weather.py
78+
cfbd/models/kicker_paar.py
7779
cfbd/models/live_game.py
7880
cfbd/models/live_game_drive.py
7981
cfbd/models/live_game_play.py
@@ -101,6 +103,7 @@ cfbd/models/player_stats_by_quarter.py
101103
cfbd/models/player_transfer.py
102104
cfbd/models/player_usage.py
103105
cfbd/models/player_usage_usage.py
106+
cfbd/models/player_weighted_epa.py
104107
cfbd/models/poll.py
105108
cfbd/models/poll_rank.py
106109
cfbd/models/poll_week.py
@@ -149,10 +152,11 @@ cfbd/models/transfer_eligibility.py
149152
cfbd/models/venue.py
150153
cfbd/py.typed
151154
cfbd/rest.py
152-
docs/AdjustedMetrics.md
153-
docs/AdjustedMetricsEpa.md
154-
docs/AdjustedMetricsRushing.md
155-
docs/AdjustedMetricsSuccessRate.md
155+
docs/AdjustedMetricsApi.md
156+
docs/AdjustedTeamMetrics.md
157+
docs/AdjustedTeamMetricsEpa.md
158+
docs/AdjustedTeamMetricsRushing.md
159+
docs/AdjustedTeamMetricsSuccessRate.md
156160
docs/AdvancedBoxScore.md
157161
docs/AdvancedBoxScoreGameInfo.md
158162
docs/AdvancedBoxScorePlayers.md
@@ -203,6 +207,7 @@ docs/GameTeamStatsTeam.md
203207
docs/GameTeamStatsTeamStat.md
204208
docs/GameWeather.md
205209
docs/GamesApi.md
210+
docs/KickerPAAR.md
206211
docs/LiveGame.md
207212
docs/LiveGameDrive.md
208213
docs/LiveGamePlay.md
@@ -231,6 +236,7 @@ docs/PlayerStatsByQuarter.md
231236
docs/PlayerTransfer.md
232237
docs/PlayerUsage.md
233238
docs/PlayerUsageUsage.md
239+
docs/PlayerWeightedEPA.md
234240
docs/PlayersApi.md
235241
docs/PlaysApi.md
236242
docs/Poll.md
@@ -292,10 +298,11 @@ setup.cfg
292298
setup.py
293299
test-requirements.txt
294300
test/__init__.py
295-
test/test_adjusted_metrics.py
296-
test/test_adjusted_metrics_epa.py
297-
test/test_adjusted_metrics_rushing.py
298-
test/test_adjusted_metrics_success_rate.py
301+
test/test_adjusted_metrics_api.py
302+
test/test_adjusted_team_metrics.py
303+
test/test_adjusted_team_metrics_epa.py
304+
test/test_adjusted_team_metrics_rushing.py
305+
test/test_adjusted_team_metrics_success_rate.py
299306
test/test_advanced_box_score.py
300307
test/test_advanced_box_score_game_info.py
301308
test/test_advanced_box_score_players.py
@@ -346,6 +353,7 @@ test/test_game_team_stats_team.py
346353
test/test_game_team_stats_team_stat.py
347354
test/test_game_weather.py
348355
test/test_games_api.py
356+
test/test_kicker_paar.py
349357
test/test_live_game.py
350358
test/test_live_game_drive.py
351359
test/test_live_game_play.py
@@ -374,6 +382,7 @@ test/test_player_stats_by_quarter.py
374382
test/test_player_transfer.py
375383
test/test_player_usage.py
376384
test/test_player_usage_usage.py
385+
test/test_player_weighted_epa.py
377386
test/test_players_api.py
378387
test/test_plays_api.py
379388
test/test_poll.py

‎README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: 5.1.3
7-
- Package version: 5.1.3a1
6+
- API version: 5.2.0
7+
- Package version: 5.2.0a1
88
- Generator version: 7.7.0
99
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
1010

@@ -16,9 +16,9 @@ Python 3.7+
1616
### pip install
1717

1818
```sh
19-
pip install cfbd@5.1.3a1
19+
pip install cfbd@5.2.0a1
2020
```
21-
(you may need to run `pip` with root permission: `sudo pip install cfbd@5.1.3a1`)
21+
(you may need to run `pip` with root permission: `sudo pip install cfbd@5.2.0a1`)
2222

2323
Then import the package:
2424
```python
@@ -56,23 +56,18 @@ configuration = cfbd.Configuration(
5656
# Enter a context with an instance of the API client
5757
with cfbd.ApiClient(configuration) as api_client:
5858
# Create an instance of the API class
59-
api_instance = cfbd.BettingApi(api_client)
60-
game_id = 56 # int | Optional gameId filter (optional)
61-
year = 56 # int | Year filter, required if game id not specified (optional)
62-
season_type = cfbd.SeasonType() # SeasonType | Optional season type filter (optional)
63-
week = 56 # int | Optional week filter (optional)
59+
api_instance = cfbd.AdjustedMetricsApi(api_client)
60+
year = 56 # int | Optional year filter (optional)
6461
team = 'team_example' # str | Optional team filter (optional)
65-
home = 'home_example' # str | Optional home team filter (optional)
66-
away = 'away_example' # str | Optional away team filter (optional)
67-
conference = 'conference_example' # str | Optional conference filter (optional)
68-
provider = 'provider_example' # str | Optional provider name filter (optional)
62+
conference = 'conference_example' # str | Optional conference abbreviation filter (optional)
63+
position = 'position_example' # str | Optional position abbreviation filter (optional)
6964

7065
try:
71-
api_response = api_instance.get_lines(game_id=game_id, year=year, season_type=season_type, week=week, team=team, home=home, away=away, conference=conference, provider=provider)
72-
print("The response of BettingApi->get_lines:\n")
66+
api_response = api_instance.get_adjusted_player_passing_stats(year=year, team=team, conference=conference, position=position)
67+
print("The response of AdjustedMetricsApi->get_adjusted_player_passing_stats:\n")
7368
pprint(api_response)
7469
except ApiException as e:
75-
print("Exception when calling BettingApi->get_lines: %s\n" % e)
70+
print("Exception when calling AdjustedMetricsApi->get_adjusted_player_passing_stats: %s\n" % e)
7671

7772
```
7873

@@ -82,6 +77,10 @@ All URIs are relative to *https://apinext.collegefootballdata.com*
8277

8378
Class | Method | HTTP request | Description
8479
------------ | ------------- | ------------- | -------------
80+
*AdjustedMetricsApi* | [**get_adjusted_player_passing_stats**](docs/AdjustedMetricsApi.md#get_adjusted_player_passing_stats) | **GET** /wepa/players/passing |
81+
*AdjustedMetricsApi* | [**get_adjusted_player_rushing_stats**](docs/AdjustedMetricsApi.md#get_adjusted_player_rushing_stats) | **GET** /wepa/players/rushing |
82+
*AdjustedMetricsApi* | [**get_adjusted_team_season_stats**](docs/AdjustedMetricsApi.md#get_adjusted_team_season_stats) | **GET** /wepa/team/season |
83+
*AdjustedMetricsApi* | [**get_kicker_paar**](docs/AdjustedMetricsApi.md#get_kicker_paar) | **GET** /wepa/players/kicking |
8584
*BettingApi* | [**get_lines**](docs/BettingApi.md#get_lines) | **GET** /lines |
8685
*CoachesApi* | [**get_coaches**](docs/CoachesApi.md#get_coaches) | **GET** /coaches |
8786
*ConferencesApi* | [**get_conferences**](docs/ConferencesApi.md#get_conferences) | **GET** /conferences |
@@ -124,7 +123,6 @@ Class | Method | HTTP request | Description
124123
*RecruitingApi* | [**get_aggregated_team_recruiting_ratings**](docs/RecruitingApi.md#get_aggregated_team_recruiting_ratings) | **GET** /recruiting/groups |
125124
*RecruitingApi* | [**get_recruits**](docs/RecruitingApi.md#get_recruits) | **GET** /recruiting/players |
126125
*RecruitingApi* | [**get_team_recruiting_rankings**](docs/RecruitingApi.md#get_team_recruiting_rankings) | **GET** /recruiting/teams |
127-
*StatsApi* | [**get_adjusted_team_season_stats**](docs/StatsApi.md#get_adjusted_team_season_stats) | **GET** /stats/season/adjusted |
128126
*StatsApi* | [**get_advanced_game_stats**](docs/StatsApi.md#get_advanced_game_stats) | **GET** /stats/game/advanced |
129127
*StatsApi* | [**get_advanced_season_stats**](docs/StatsApi.md#get_advanced_season_stats) | **GET** /stats/season/advanced |
130128
*StatsApi* | [**get_categories**](docs/StatsApi.md#get_categories) | **GET** /stats/categories |
@@ -140,10 +138,10 @@ Class | Method | HTTP request | Description
140138

141139
## Documentation For Models
142140

143-
- [AdjustedMetrics](docs/AdjustedMetrics.md)
144-
- [AdjustedMetricsEpa](docs/AdjustedMetricsEpa.md)
145-
- [AdjustedMetricsRushing](docs/AdjustedMetricsRushing.md)
146-
- [AdjustedMetricsSuccessRate](docs/AdjustedMetricsSuccessRate.md)
141+
- [AdjustedTeamMetrics](docs/AdjustedTeamMetrics.md)
142+
- [AdjustedTeamMetricsEpa](docs/AdjustedTeamMetricsEpa.md)
143+
- [AdjustedTeamMetricsRushing](docs/AdjustedTeamMetricsRushing.md)
144+
- [AdjustedTeamMetricsSuccessRate](docs/AdjustedTeamMetricsSuccessRate.md)
147145
- [AdvancedBoxScore](docs/AdvancedBoxScore.md)
148146
- [AdvancedBoxScoreGameInfo](docs/AdvancedBoxScoreGameInfo.md)
149147
- [AdvancedBoxScorePlayers](docs/AdvancedBoxScorePlayers.md)
@@ -188,6 +186,7 @@ Class | Method | HTTP request | Description
188186
- [GameTeamStatsTeam](docs/GameTeamStatsTeam.md)
189187
- [GameTeamStatsTeamStat](docs/GameTeamStatsTeamStat.md)
190188
- [GameWeather](docs/GameWeather.md)
189+
- [KickerPAAR](docs/KickerPAAR.md)
191190
- [LiveGame](docs/LiveGame.md)
192191
- [LiveGameDrive](docs/LiveGameDrive.md)
193192
- [LiveGamePlay](docs/LiveGamePlay.md)
@@ -215,6 +214,7 @@ Class | Method | HTTP request | Description
215214
- [PlayerTransfer](docs/PlayerTransfer.md)
216215
- [PlayerUsage](docs/PlayerUsage.md)
217216
- [PlayerUsageUsage](docs/PlayerUsageUsage.md)
217+
- [PlayerWeightedEPA](docs/PlayerWeightedEPA.md)
218218
- [Poll](docs/Poll.md)
219219
- [PollRank](docs/PollRank.md)
220220
- [PollWeek](docs/PollWeek.md)

0 commit comments

Comments
 (0)