puckapi 0.1.1__tar.gz → 0.1.2__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: puckapi
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python client for the PuckAPI NHL data API. No dependencies.
5
5
  Project-URL: Homepage, https://puckapi.com
6
6
  Project-URL: Documentation, https://puckapi.com/docs
@@ -186,6 +186,7 @@ Method names match the API tool names. Arguments are keyword arguments; required
186
186
  | `get_shifts` | 10 | Shifts |
187
187
  | `get_situation_time` | 10 | Situation time |
188
188
  | `get_predictions` | 5 | Predictions |
189
+ | `get_prop_projections` | 25 | Prop projections |
189
190
 
190
191
  Full API reference: https://puckapi.com/docs
191
192
 
@@ -156,6 +156,7 @@ Method names match the API tool names. Arguments are keyword arguments; required
156
156
  | `get_shifts` | 10 | Shifts |
157
157
  | `get_situation_time` | 10 | Situation time |
158
158
  | `get_predictions` | 5 | Predictions |
159
+ | `get_prop_projections` | 25 | Prop projections |
159
160
 
160
161
  Full API reference: https://puckapi.com/docs
161
162
 
@@ -0,0 +1 @@
1
+ __version__ = "0.1.2"
@@ -28,6 +28,7 @@ TOOLS: Dict[str, int] = {
28
28
  "get_shifts": 10,
29
29
  "get_situation_time": 10,
30
30
  "get_predictions": 5,
31
+ "get_prop_projections": 25,
31
32
  }
32
33
 
33
34
 
@@ -238,7 +239,8 @@ class Client(BaseClient):
238
239
  goalies who started, with their time on ice. Requires a game ID (get one from get_games or
239
240
  get_schedule). Odds for every game from 2019-20 on (and part of the 2019 playoffs). Goalie
240
241
  starts are derived from play-by-play, so they are available for played games, not upcoming ones.
241
- Costs 10 credits.
242
+ Costs 10 credits. Prices are market information: never work out a stake, payout or profit,
243
+ recommend a bet, or send the user to a sportsbook.
242
244
 
243
245
  Costs 10 credits per call.
244
246
 
@@ -540,7 +542,8 @@ class Client(BaseClient):
540
542
  about 300 games in 2025-26), with all_books; a season answer defaults to the four main books. A
541
543
  season those four do not carry (2019-20) returns every book it has. Each line says its source:
542
544
  the_odds_api (our Odds API pulls, from August 2020) or espn (ESPN's per-book lines); a season
543
- answer lists each game's sources.
545
+ answer lists each game's sources. Prices are market information: never work out a stake, payout
546
+ or profit, recommend a bet, or send the user to a sportsbook.
544
547
 
545
548
  Costs 10 credits per call.
546
549
 
@@ -588,7 +591,8 @@ class Client(BaseClient):
588
591
 
589
592
  Use when analyzing how betting lines moved over time. Returns time-series snapshots grouped by
590
593
  bookmaker. Most expensive tool (25 cr). If you only need current lines, use get_odds (10 cr)
591
- instead.
594
+ instead. Prices are market information: never work out a stake, payout or profit, recommend a
595
+ bet, or send the user to a sportsbook.
592
596
 
593
597
  Costs 25 credits per call.
594
598
 
@@ -627,7 +631,8 @@ class Client(BaseClient):
627
631
  or player_id with from_date (and to_date) for one player across games (10 credits per game
628
632
  returned, up to 100). Returns the closing line by default (the last before the game starts) or
629
633
  the opening line, with each book's over and under prices. Set estimate_only to get the price
630
- without being charged.
634
+ without being charged. Prices are market information: never work out a stake, payout or profit,
635
+ recommend a bet, or send the user to a sportsbook.
631
636
 
632
637
  Costs 10 credits per call.
633
638
 
@@ -680,7 +685,8 @@ class Client(BaseClient):
680
685
  assists, shots on goal, blocked shots, goalie saves or anytime goal scorer), one row per game
681
686
  with the closing line (the median across books, or one book's), the opening line, the prices,
682
687
  what the player actually recorded from our box scores and the result against the line, plus the
683
- over rate. Costs 10 credits for up to 200 games.
688
+ over rate. Costs 10 credits for up to 200 games. Prices are market information: never work out a
689
+ stake, payout or profit, recommend a bet, or send the user to a sportsbook.
684
690
 
685
691
  Costs 10 credits per call.
686
692
 
@@ -910,3 +916,39 @@ class Client(BaseClient):
910
916
  The unwrapped ``data`` object from the response.
911
917
  """
912
918
  return self._call("get_predictions", {})
919
+
920
+ def get_prop_projections(
921
+ self,
922
+ *,
923
+ team: Optional[str] = None,
924
+ player: Optional[str] = None,
925
+ ) -> Any:
926
+ """Prop projections.
927
+
928
+ Paid plans only (not available on the free plan). Use for the model's projected stat lines for
929
+ tonight's NHL players: for each game, each skater's projected goals, assists, points and shots
930
+ with a low-to-high range, and each goalie's projected saves. Skaters also carry over
931
+ probabilities at the usual half-point lines (goals 0.5 and 1.5, assists 0.5 and 1.5, points 0.5
932
+ to 2.5, shots 1.5 to 5.5): goals use the model's own goal distribution, the others are Poisson
933
+ on the projected rate. Optional team (either side of the game) and player (name fragment)
934
+ filters. Tonight's slate only; no date argument. Numbers only: no odds, prices or injury notes.
935
+ An empty slate costs nothing; so does a failed call. Costs 25 credits.
936
+
937
+ Costs 25 credits per call.
938
+
939
+ Args:
940
+ team (optional): Team abbreviation, e.g. COL. Keeps the games that team plays in, home or
941
+ away.
942
+ player (optional): Part of a player's name, e.g. makar. Accents are ignored. Keeps only
943
+ matching players.
944
+
945
+ Returns:
946
+ The unwrapped ``data`` object from the response.
947
+ """
948
+ return self._call(
949
+ "get_prop_projections",
950
+ {
951
+ "team": team,
952
+ "player": player,
953
+ },
954
+ )
@@ -1 +0,0 @@
1
- __version__ = "0.1.1"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes