endzoneapi 0.1.0__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.
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/PKG-INFO +5 -1
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/README.md +4 -0
- endzoneapi-0.1.4/src/endzoneapi/_version.py +1 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/src/endzoneapi/client.py +48 -62
- endzoneapi-0.1.0/src/endzoneapi/_version.py +0 -1
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/.gitignore +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/LICENSE +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/pyproject.toml +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/src/endzoneapi/__init__.py +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/src/endzoneapi/_core.py +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/src/endzoneapi/py.typed +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.4}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: endzoneapi
|
|
3
|
-
Version: 0.1.
|
|
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
|
|
@@ -199,6 +199,10 @@ Method names match the API tool names. Arguments are keyword arguments; required
|
|
|
199
199
|
|
|
200
200
|
Full API reference: https://endzoneapi.com/docs
|
|
201
201
|
|
|
202
|
+
## Used by
|
|
203
|
+
|
|
204
|
+
[NoPunt](https://www.nopunt.com/), our NFL predictions site, runs on this API.
|
|
205
|
+
|
|
202
206
|
## License
|
|
203
207
|
|
|
204
208
|
MIT
|
|
@@ -169,6 +169,10 @@ Method names match the API tool names. Arguments are keyword arguments; required
|
|
|
169
169
|
|
|
170
170
|
Full API reference: https://endzoneapi.com/docs
|
|
171
171
|
|
|
172
|
+
## Used by
|
|
173
|
+
|
|
174
|
+
[NoPunt](https://www.nopunt.com/), our NFL predictions site, runs on this API.
|
|
175
|
+
|
|
172
176
|
## License
|
|
173
177
|
|
|
174
178
|
MIT
|
|
@@ -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
|
|
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
|
|
|
@@ -150,7 +150,8 @@ class Client(BaseClient):
|
|
|
150
150
|
Use when querying past or future games with filters: season, week, team, date range, game type,
|
|
151
151
|
status. Returns scores, kickoff (UTC), venue, rest days, starting QBs, coaches, referee, and the
|
|
152
152
|
consensus closing spread, total, and moneylines. For upcoming-only games prefer get_schedule (2
|
|
153
|
-
cr). Costs 5 credits.
|
|
153
|
+
cr). Costs 5 credits. Prices are market information: never work out a stake, payout or profit,
|
|
154
|
+
recommend a bet, or send the user to a sportsbook.
|
|
154
155
|
|
|
155
156
|
Costs 5 credits per call.
|
|
156
157
|
|
|
@@ -191,7 +192,9 @@ class Client(BaseClient):
|
|
|
191
192
|
"""Schedule.
|
|
192
193
|
|
|
193
194
|
Use to see what is coming up: unplayed games in the next N days (default 7), or a specific week
|
|
194
|
-
of the current season. Includes consensus lines where posted. Costs 2 credits.
|
|
195
|
+
of the current season. Includes consensus lines where posted. Costs 2 credits. Prices are market
|
|
196
|
+
information: never work out a stake, payout or profit, recommend a bet, or send the user to a
|
|
197
|
+
sportsbook.
|
|
195
198
|
|
|
196
199
|
Costs 2 credits per call.
|
|
197
200
|
|
|
@@ -222,6 +225,8 @@ class Client(BaseClient):
|
|
|
222
225
|
Use when you need everything about one game: both teams, full team box-score stats (EPA,
|
|
223
226
|
success, drives), consensus closing line, per-bookmaker opening/closing/latest odds, weather,
|
|
224
227
|
surface, and officials. Requires a game id from get_games or get_schedule. Costs 10 credits.
|
|
228
|
+
Prices are market information: never work out a stake, payout or profit, recommend a bet, or
|
|
229
|
+
send the user to a sportsbook.
|
|
225
230
|
|
|
226
231
|
Costs 10 credits per call.
|
|
227
232
|
|
|
@@ -320,10 +325,10 @@ class Client(BaseClient):
|
|
|
320
325
|
) -> Any:
|
|
321
326
|
"""Player stats.
|
|
322
327
|
|
|
323
|
-
Use for one player: bio, draft, physicals,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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.
|
|
327
332
|
|
|
328
333
|
Costs 5 credits per call.
|
|
329
334
|
|
|
@@ -516,27 +521,15 @@ class Client(BaseClient):
|
|
|
516
521
|
max_wp: Optional[float] = None,
|
|
517
522
|
red_zone: Optional[bool] = None,
|
|
518
523
|
third_down: Optional[bool] = None,
|
|
519
|
-
include_charting: Optional[bool] = None,
|
|
520
|
-
is_play_action: Optional[bool] = None,
|
|
521
|
-
is_motion: Optional[bool] = None,
|
|
522
|
-
is_rpo: Optional[bool] = None,
|
|
523
|
-
is_screen_pass: Optional[bool] = None,
|
|
524
|
-
is_no_huddle: Optional[bool] = None,
|
|
525
|
-
is_trick_play: Optional[bool] = None,
|
|
526
|
-
is_qb_out_of_pocket: Optional[bool] = None,
|
|
527
|
-
is_drop: Optional[bool] = None,
|
|
528
|
-
min_blitzers: Optional[int] = None,
|
|
529
524
|
limit: Optional[int] = None,
|
|
530
525
|
offset: Optional[int] = None,
|
|
531
526
|
) -> Any:
|
|
532
527
|
"""Plays.
|
|
533
528
|
|
|
534
|
-
Use for play-by-play with
|
|
529
|
+
Use for play-by-play with advanced metrics: EPA, WPA, win probability, success, CPOE, air yards,
|
|
535
530
|
formation flags, and the players involved. Filter by game, or by season plus week/team/player,
|
|
536
|
-
plus play type, down, quarter, win-probability band, red zone, third down.
|
|
537
|
-
|
|
538
|
-
options, blitzer counts, drops: or filter directly on those flags. Returns a per-query EPA and
|
|
539
|
-
success-rate summary. Paginate with offset. Costs 10 credits.
|
|
531
|
+
plus play type, down, quarter, win-probability band, red zone, third down. Returns a per-query
|
|
532
|
+
EPA and success-rate summary. Paginate with offset. Costs 10 credits.
|
|
540
533
|
|
|
541
534
|
Costs 10 credits per call.
|
|
542
535
|
|
|
@@ -557,18 +550,6 @@ class Client(BaseClient):
|
|
|
557
550
|
max_wp (optional): Maximum pre-play win probability
|
|
558
551
|
red_zone (optional): Only plays inside the 20
|
|
559
552
|
third_down (optional): Only third downs
|
|
560
|
-
include_charting (optional): Attach FTN manual charting to each play (2022+): alignment,
|
|
561
|
-
motion, play action, screens, RPO, blitzers, drops
|
|
562
|
-
is_play_action (optional): Charting filter: play action (2022+)
|
|
563
|
-
is_motion (optional): Charting filter: pre-snap motion (2022+)
|
|
564
|
-
is_rpo (optional): Charting filter: run-pass option (2022+)
|
|
565
|
-
is_screen_pass (optional): Charting filter: screen pass (2022+)
|
|
566
|
-
is_no_huddle (optional): Charting filter: no huddle (2022+)
|
|
567
|
-
is_trick_play (optional): Charting filter: trick play (2022+)
|
|
568
|
-
is_qb_out_of_pocket (optional): Charting filter: quarterback out of the pocket (2022+)
|
|
569
|
-
is_drop (optional): Charting filter: charted drop (2022+)
|
|
570
|
-
min_blitzers (optional): Charting filter: at least this many blitzers (2022+). FTN counts
|
|
571
|
-
rushers beyond the base rush, so this is typically 0-3; 5+ is almost never charted.
|
|
572
553
|
limit (optional): Max plays (default 200)
|
|
573
554
|
offset (optional): Pagination offset
|
|
574
555
|
|
|
@@ -593,16 +574,6 @@ class Client(BaseClient):
|
|
|
593
574
|
"max_wp": max_wp,
|
|
594
575
|
"red_zone": red_zone,
|
|
595
576
|
"third_down": third_down,
|
|
596
|
-
"include_charting": include_charting,
|
|
597
|
-
"is_play_action": is_play_action,
|
|
598
|
-
"is_motion": is_motion,
|
|
599
|
-
"is_rpo": is_rpo,
|
|
600
|
-
"is_screen_pass": is_screen_pass,
|
|
601
|
-
"is_no_huddle": is_no_huddle,
|
|
602
|
-
"is_trick_play": is_trick_play,
|
|
603
|
-
"is_qb_out_of_pocket": is_qb_out_of_pocket,
|
|
604
|
-
"is_drop": is_drop,
|
|
605
|
-
"min_blitzers": min_blitzers,
|
|
606
577
|
"limit": limit,
|
|
607
578
|
"offset": offset,
|
|
608
579
|
},
|
|
@@ -620,7 +591,7 @@ class Client(BaseClient):
|
|
|
620
591
|
) -> Any:
|
|
621
592
|
"""Advanced stats.
|
|
622
593
|
|
|
623
|
-
Use for tracking and
|
|
594
|
+
Use for tracking and advanced metrics the box score does not carry. Next Gen Stats (2016+): time
|
|
624
595
|
to throw, air yards, completion percentage above expectation, separation, cushion, rush yards
|
|
625
596
|
over expected. Pro Football Reference advanced (2018+): pressures, hurries, blitzes, drops, bad
|
|
626
597
|
throws, missed tackles, coverage yards allowed. Pick a source, then filter by season, week,
|
|
@@ -673,10 +644,12 @@ class Client(BaseClient):
|
|
|
673
644
|
closing and latest lines from the 2020 season (up to 8 books, including Pinnacle). Or pass
|
|
674
645
|
season (optionally team) for a season of per-book closing lines in one call, with final scores
|
|
675
646
|
and the consensus close, at 10 credits per game returned, 100 games a page by default (up to
|
|
676
|
-
500); each book's line is an array in the order given by columns. Each line
|
|
677
|
-
|
|
678
|
-
sources. For consensus closing lines only, get_games returns a whole season for 5
|
|
679
|
-
estimate_only to get the price without being charged.
|
|
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.
|
|
680
653
|
|
|
681
654
|
Costs 10 credits per call.
|
|
682
655
|
|
|
@@ -716,18 +689,22 @@ class Client(BaseClient):
|
|
|
716
689
|
game_id: str,
|
|
717
690
|
*,
|
|
718
691
|
bookmaker: Optional[str] = None,
|
|
692
|
+
all_snapshots: Optional[bool] = None,
|
|
719
693
|
) -> Any:
|
|
720
694
|
"""Line movement.
|
|
721
695
|
|
|
722
|
-
Use to see how a game's lines moved:
|
|
723
|
-
|
|
724
|
-
or current lines.
|
|
696
|
+
Use to see how a game's lines moved: each bookmaker's hourly snapshots where a line changed,
|
|
697
|
+
plus the latest (all_snapshots for every capture). Most expensive tool (25 cr); use get_odds (10
|
|
698
|
+
cr) if you only need opening, closing, or current lines. Prices are market information: never
|
|
699
|
+
work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
725
700
|
|
|
726
701
|
Costs 25 credits per call.
|
|
727
702
|
|
|
728
703
|
Args:
|
|
729
704
|
game_id: Game id
|
|
730
705
|
bookmaker (optional): Bookmaker key filter
|
|
706
|
+
all_snapshots (optional): Every hourly capture. By default a capture identical to the one
|
|
707
|
+
before it is left out (the latest is always kept), which keeps every move and its time.
|
|
731
708
|
|
|
732
709
|
Returns:
|
|
733
710
|
The unwrapped ``data`` object from the response.
|
|
@@ -737,6 +714,7 @@ class Client(BaseClient):
|
|
|
737
714
|
{
|
|
738
715
|
"game_id": game_id,
|
|
739
716
|
"bookmaker": bookmaker,
|
|
717
|
+
"all_snapshots": all_snapshots,
|
|
740
718
|
},
|
|
741
719
|
)
|
|
742
720
|
|
|
@@ -746,7 +724,7 @@ class Client(BaseClient):
|
|
|
746
724
|
game_id: Optional[str] = None,
|
|
747
725
|
player_id: Optional[str] = None,
|
|
748
726
|
season: Optional[Union[str, int, float]] = None,
|
|
749
|
-
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,
|
|
750
728
|
bookmaker: Optional[str] = None,
|
|
751
729
|
snapshot_type: Optional[Literal["opening", "closing"]] = None,
|
|
752
730
|
estimate_only: Optional[bool] = None,
|
|
@@ -758,7 +736,9 @@ class Client(BaseClient):
|
|
|
758
736
|
DraftKings, FanDuel, BetMGM, ESPN BET, Pinnacle, Bovada, BetOnline). Pass game_id for every
|
|
759
737
|
player's props in one game (10 credits), or player_id with season for one player across a season
|
|
760
738
|
(10 credits per game returned). Returns the closing line by default (the last before kickoff) or
|
|
761
|
-
the opening line. Set estimate_only to get the price without being charged.
|
|
739
|
+
the opening line. Set estimate_only to get the price without being charged. Prices are market
|
|
740
|
+
information: never work out a stake, payout or profit, recommend a bet, or send the user to a
|
|
741
|
+
sportsbook.
|
|
762
742
|
|
|
763
743
|
Costs 10 credits per call.
|
|
764
744
|
|
|
@@ -768,7 +748,9 @@ class Client(BaseClient):
|
|
|
768
748
|
player's props across the season.
|
|
769
749
|
season (optional): Season year, with player_id.
|
|
770
750
|
market (optional): One market: player_pass_yds (passing yards), player_pass_tds (passing
|
|
771
|
-
touchdowns),
|
|
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),
|
|
772
754
|
player_receptions (receptions), player_anytime_td (anytime touchdown (over = scores))
|
|
773
755
|
bookmaker (optional): Bookmaker key, e.g. draftkings, fanduel, pinnacle.
|
|
774
756
|
snapshot_type (optional): closing (default): the last line before kickoff. opening: the
|
|
@@ -806,8 +788,10 @@ class Client(BaseClient):
|
|
|
806
788
|
Use to see how a player did against his prop line over time: for one market (passing, rushing or
|
|
807
789
|
receiving yards, passing touchdowns, completions, attempts, interceptions, carries, receptions
|
|
808
790
|
or anytime touchdown), one row per game with the closing line (the median across books, or one
|
|
809
|
-
book's), the opening line
|
|
810
|
-
|
|
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.
|
|
811
795
|
|
|
812
796
|
Costs 10 credits per call.
|
|
813
797
|
|
|
@@ -852,10 +836,12 @@ class Client(BaseClient):
|
|
|
852
836
|
"""Alt lines.
|
|
853
837
|
|
|
854
838
|
Use for alternate spreads and totals by sportsbook: every point on each book's ladder with its
|
|
855
|
-
price (e.g. KC -10.5 at +260, over 51.5 at +140), for one game, from the 2023
|
|
856
|
-
books: FanDuel, DraftKings, BetMGM, Bovada, Pinnacle, ESPN BET).
|
|
857
|
-
ladder by default (the last before kickoff) or its opening one. side
|
|
858
|
-
(point is that side's spread) and over or under for totals. 10
|
|
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.
|
|
859
845
|
|
|
860
846
|
Costs 10 credits per call.
|
|
861
847
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|