endzoneapi 0.1.3__tar.gz → 0.1.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: endzoneapi
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python client for the EndzoneAPI NFL data API. No dependencies.
5
5
  Project-URL: Homepage, https://endzoneapi.com
6
6
  Project-URL: Documentation, https://endzoneapi.com/docs
@@ -0,0 +1 @@
1
+ __version__ = "0.1.4"
@@ -48,8 +48,8 @@ class Client(BaseClient):
48
48
  """List teams.
49
49
 
50
50
  Use when you need team codes, or all 32 current teams with conference, division, colours, and
51
- logo URLs. Team codes are nflverse spelling (LA for the Rams, WAS for Washington). Cheapest tool
52
- at 1 credit.
51
+ logo URLs. Team codes are standard abbreviations (LA for the Rams, WAS for Washington). Cheapest
52
+ tool at 1 credit.
53
53
 
54
54
  Costs 1 credit per call.
55
55
 
@@ -325,10 +325,10 @@ class Client(BaseClient):
325
325
  ) -> Any:
326
326
  """Player stats.
327
327
 
328
- Use for one player: bio, draft, physicals, id crosswalk (PFR, ESPN), summed season totals across
329
- passing, rushing, receiving, defense, kicking, returns, and fantasy points, every weekly stat
330
- line for the season, and games played per season. Defaults to the player's latest season. Costs
331
- 5 credits.
328
+ Use for one player: bio, draft, physicals, id crosswalk (pfr_id, espn_id), summed season totals
329
+ across passing, rushing, receiving, defense, kicking, returns, and fantasy points, every weekly
330
+ stat line for the season, and games played per season. Defaults to the player's latest season.
331
+ Costs 5 credits.
332
332
 
333
333
  Costs 5 credits per call.
334
334
 
@@ -526,7 +526,7 @@ class Client(BaseClient):
526
526
  ) -> Any:
527
527
  """Plays.
528
528
 
529
- Use for play-by-play with nflfastR metrics: EPA, WPA, win probability, success, CPOE, air yards,
529
+ Use for play-by-play with advanced metrics: EPA, WPA, win probability, success, CPOE, air yards,
530
530
  formation flags, and the players involved. Filter by game, or by season plus week/team/player,
531
531
  plus play type, down, quarter, win-probability band, red zone, third down. Returns a per-query
532
532
  EPA and success-rate summary. Paginate with offset. Costs 10 credits.
@@ -591,7 +591,7 @@ class Client(BaseClient):
591
591
  ) -> Any:
592
592
  """Advanced stats.
593
593
 
594
- Use for tracking and charting metrics the box score does not carry. Next Gen Stats (2016+): time
594
+ Use for tracking and advanced metrics the box score does not carry. Next Gen Stats (2016+): time
595
595
  to throw, air yards, completion percentage above expectation, separation, cushion, rush yards
596
596
  over expected. Pro Football Reference advanced (2018+): pressures, hurries, blitzes, drops, bad
597
597
  throws, missed tackles, coverage yards allowed. Pick a source, then filter by season, week,
@@ -644,11 +644,12 @@ class Client(BaseClient):
644
644
  closing and latest lines from the 2020 season (up to 8 books, including Pinnacle). Or pass
645
645
  season (optionally team) for a season of per-book closing lines in one call, with final scores
646
646
  and the consensus close, at 10 credits per game returned, 100 games a page by default (up to
647
- 500); each book's line is an array in the order given by columns. Each line says its source:
648
- espn (2014-2019 closing lines) or the_odds_api (from 2020); a season answer lists each game's
649
- sources. For consensus closing lines only, get_games returns a whole season for 5 credits. Set
650
- estimate_only to get the price without being charged. Prices are market information: never work
651
- out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
647
+ 500); each book's line is an array in the order given by columns. Each line carries a source
648
+ field (one value for the 2014-2019 closing lines, another from 2020); a season answer lists each
649
+ game's sources. For consensus closing lines only, get_games returns a whole season for 5
650
+ credits. Set estimate_only to get the price without being charged. Prices are market
651
+ information: never work out a stake, payout or profit, recommend a bet, or send the user to a
652
+ sportsbook.
652
653
 
653
654
  Costs 10 credits per call.
654
655
 
@@ -723,7 +724,7 @@ class Client(BaseClient):
723
724
  game_id: Optional[str] = None,
724
725
  player_id: Optional[str] = None,
725
726
  season: Optional[Union[str, int, float]] = None,
726
- market: Optional[Literal["player_pass_yds", "player_pass_tds", "player_rush_yds", "player_reception_yds", "player_receptions", "player_anytime_td"]] = None,
727
+ market: Optional[Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_reception_yds", "player_receptions", "player_anytime_td"]] = None,
727
728
  bookmaker: Optional[str] = None,
728
729
  snapshot_type: Optional[Literal["opening", "closing"]] = None,
729
730
  estimate_only: Optional[bool] = None,
@@ -747,7 +748,9 @@ class Client(BaseClient):
747
748
  player's props across the season.
748
749
  season (optional): Season year, with player_id.
749
750
  market (optional): One market: player_pass_yds (passing yards), player_pass_tds (passing
750
- touchdowns), player_rush_yds (rushing yards), player_reception_yds (receiving yards),
751
+ touchdowns), player_pass_completions (pass completions), player_pass_attempts (pass
752
+ attempts), player_pass_interceptions (interceptions thrown), player_rush_yds (rushing
753
+ yards), player_rush_attempts (rush attempts), player_reception_yds (receiving yards),
751
754
  player_receptions (receptions), player_anytime_td (anytime touchdown (over = scores))
752
755
  bookmaker (optional): Bookmaker key, e.g. draftkings, fanduel, pinnacle.
753
756
  snapshot_type (optional): closing (default): the last line before kickoff. opening: the
@@ -785,10 +788,10 @@ class Client(BaseClient):
785
788
  Use to see how a player did against his prop line over time: for one market (passing, rushing or
786
789
  receiving yards, passing touchdowns, completions, attempts, interceptions, carries, receptions
787
790
  or anytime touchdown), one row per game with the closing line (the median across books, or one
788
- book's), the opening line, the prices, what the player actually recorded from our box scores and
789
- the result against the line, plus the over rate. Costs 10 credits for up to 200 games. Prices
790
- are market information: never work out a stake, payout or profit, recommend a bet, or send the
791
- user to a sportsbook.
791
+ book's), the opening line (the same as the close wherever only one capture was taken), the
792
+ prices, what the player actually recorded from our box scores and the result against the line,
793
+ plus the over rate. Costs 10 credits for up to 200 games. Prices are market information: never
794
+ work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
792
795
 
793
796
  Costs 10 credits per call.
794
797
 
@@ -833,12 +836,12 @@ class Client(BaseClient):
833
836
  """Alt lines.
834
837
 
835
838
  Use for alternate spreads and totals by sportsbook: every point on each book's ladder with its
836
- price (e.g. KC -10.5 at +260, over 51.5 at +140), for one game, from the 2023 to 2025 seasons (6
837
- books: FanDuel, DraftKings, BetMGM, Bovada, Pinnacle, ESPN BET). Returns each book's closing
838
- ladder by default (the last before kickoff) or its opening one. side is home or away for spreads
839
- (point is that side's spread) and over or under for totals. 10 credits. Prices are market
840
- information: never work out a stake, payout or profit, recommend a bet, or send the user to a
841
- sportsbook.
839
+ price (e.g. KC -10.5 at +260, over 51.5 at +140), for one game, from the 2023 season on, the
840
+ current season included (6 to 7 books: FanDuel, DraftKings, BetMGM, Bovada, Pinnacle, ESPN BET).
841
+ Returns each book's closing ladder by default (the last before kickoff) or its opening one. side
842
+ is home or away for spreads (point is that side's spread) and over or under for totals. 10
843
+ credits. Prices are market information: never work out a stake, payout or profit, recommend a
844
+ bet, or send the user to a sportsbook.
842
845
 
843
846
  Costs 10 credits per call.
844
847
 
@@ -1 +0,0 @@
1
- __version__ = "0.1.3"
File without changes
File without changes
File without changes
File without changes