puckapi 0.1.2__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: puckapi
3
- Version: 0.1.2
3
+ Version: 0.1.4
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
@@ -190,6 +190,10 @@ Method names match the API tool names. Arguments are keyword arguments; required
190
190
 
191
191
  Full API reference: https://puckapi.com/docs
192
192
 
193
+ ## Used by
194
+
195
+ [PuckCast](https://puckcast.ai/), our NHL predictions site, runs on this API.
196
+
193
197
  ## License
194
198
 
195
199
  MIT
@@ -160,6 +160,10 @@ Method names match the API tool names. Arguments are keyword arguments; required
160
160
 
161
161
  Full API reference: https://puckapi.com/docs
162
162
 
163
+ ## Used by
164
+
165
+ [PuckCast](https://puckcast.ai/), our NHL predictions site, runs on this API.
166
+
163
167
  ## License
164
168
 
165
169
  MIT
@@ -0,0 +1 @@
1
+ __version__ = "0.1.4"
@@ -350,10 +350,10 @@ class Client(BaseClient):
350
350
  ) -> Any:
351
351
  """Player stats.
352
352
 
353
- Use when you need full details for one player: bio, team, physical attributes, and headshot. For
354
- skaters, also returns the latest season line (games, goals, assists, points, +/-, PP/SH,
355
- shooting%, TOI). For goalies, save%, GAA, GSAX, and trend data. Requires player ID from
356
- search_players. Costs 5 credits.
353
+ Use when you need full details for one player: bio, team, and physical attributes. For skaters,
354
+ also returns the latest season line (games, goals, assists, points, +/-, PP/SH, shooting%, TOI).
355
+ For goalies, save%, GAA, GSAX, and trend data. Requires player ID from search_players. Costs 5
356
+ credits.
357
357
 
358
358
  Costs 5 credits per call.
359
359
 
@@ -399,7 +399,8 @@ class Client(BaseClient):
399
399
  also accepted. Defaults to the most recent season with stats, which is the current
400
400
  season once it is under way and the previous one before that. The season actually used
401
401
  is echoed in filters.season.
402
- min_games (optional): Minimum games played (default 10)
402
+ min_games (optional): Minimum games played (default 10; early in a season, half the most
403
+ games anyone has played so far)
403
404
  sort_by (optional): Sort metric (default save_pct). gsax is goals saved above expected. One
404
405
  of: save_pct, gaa, gsax, wins.
405
406
  limit (optional): Max results (default 20)
@@ -446,7 +447,8 @@ class Client(BaseClient):
446
447
  also accepted. Defaults to the most recent season with stats, which is the current
447
448
  season once it is under way and the previous one before that. The season actually used
448
449
  is echoed in filters.season.
449
- min_games (optional): Minimum games played (default 10)
450
+ min_games (optional): Minimum games played (default 10; early in a season, half the most
451
+ games anyone has played so far)
450
452
  sort_by (optional): Sort metric (default points). One of: points, goals, assists,
451
453
  plus_minus, shots.
452
454
  limit (optional): Max results (default 20)
@@ -540,10 +542,10 @@ class Client(BaseClient):
540
542
  without being charged. Every game from 2019-20 on (and part of the 2019 playoffs): about 16 to
541
543
  18 books a game from 2020-21 to 2023-24, about 6 in 2019-20, 8 in 2024-25 and 2025-26 (60+ on
542
544
  about 300 games in 2025-26), with all_books; a season answer defaults to the four main books. A
543
- season those four do not carry (2019-20) returns every book it has. Each line says its source:
544
- the_odds_api (our Odds API pulls, from August 2020) or espn (ESPN's per-book lines); a season
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.
545
+ season those four do not carry (2019-20) returns every book it has. Each line carries a source
546
+ field (one value for opening and closing lines from August 2020, another for final per-book
547
+ lines); a season answer lists each game's sources. Prices are market information: never work out
548
+ a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
547
549
 
548
550
  Costs 10 credits per call.
549
551
 
@@ -554,7 +556,8 @@ class Client(BaseClient):
554
556
  team (optional): With season: only this team's games (abbreviation, e.g. BUF).
555
557
  bookmaker (optional): Filter by bookmaker key (e.g. draftkings, fanduel, betmgm). Lowercase.
556
558
  snapshot_type (optional): opening (game-day morning; for a game not yet played, the latest
557
- morning line) or closing (final pre-game). Single game: default both. Season: default
559
+ morning line) or closing (final pre-game). Single game: default every snapshot held,
560
+ including first (each book's first posted line, from October 2026). Season: default
558
561
  closing.
559
562
  all_books (optional): With season: every book held (16 to 18 a game from 2020-21 to 2023-24,
560
563
  8 in 2024-25, more than 60 on about 300 games in 2025-26) instead of DraftKings,
@@ -630,9 +633,12 @@ class Client(BaseClient):
630
633
  ESPN BET, Pinnacle and others). Pass game_id for every player's props in one game (10 credits),
631
634
  or player_id with from_date (and to_date) for one player across games (10 credits per game
632
635
  returned, up to 100). Returns the closing line by default (the last before the game starts) or
633
- the opening line, with each book's over and under prices. Set estimate_only to get the price
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.
636
+ the opening line, with each book's over and under prices. Outside football the archive mostly
637
+ holds one pre-game capture per line, so the opening and closing lines are usually the same; the
638
+ opening line differs only where a second capture was taken (live capture from October 2026, and
639
+ wherever else it is held). Set estimate_only to get the price without being charged. Prices are
640
+ market information: never work out a stake, payout or profit, recommend a bet, or send the user
641
+ to a sportsbook.
636
642
 
637
643
  Costs 10 credits per call.
638
644
 
@@ -649,7 +655,8 @@ class Client(BaseClient):
649
655
  = scores))
650
656
  bookmaker (optional): Bookmaker key, e.g. draftkings, fanduel, pinnacle.
651
657
  snapshot_type (optional): closing (default): the last line before the game starts. opening:
652
- the first one captured.
658
+ the first one captured, which is the same capture as the close wherever only one was
659
+ taken.
653
660
  estimate_only (optional): Return what this call would cost, without charging or running it.
654
661
 
655
662
  Returns:
@@ -683,10 +690,11 @@ class Client(BaseClient):
683
690
 
684
691
  Use to see how a player did against his prop line over time: for one market (points, goals,
685
692
  assists, shots on goal, blocked shots, goalie saves or anytime goal scorer), one row per game
686
- with the closing line (the median across books, or one book's), the opening line, the prices,
687
- what the player actually recorded from our box scores and the result against the line, plus the
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.
693
+ with the closing line (the median across books, or one book's), the opening line (the same as
694
+ the close wherever only one capture was taken), the prices, what the player actually recorded
695
+ from our box scores and the result against the line, plus the over rate. Costs 10 credits for up
696
+ to 200 games. Prices are market information: never work out a stake, payout or profit, recommend
697
+ a bet, or send the user to a sportsbook.
690
698
 
691
699
  Costs 10 credits per call.
692
700
 
@@ -907,8 +915,8 @@ class Client(BaseClient):
907
915
  probability, the A/B/C confidence grade, start time, plus the model version and when the slate
908
916
  was generated. Takes no arguments (current slate only). Probabilities are the model's own; no
909
917
  odds, prices or goalie and injury notes are included. The accuracy note states the backtest
910
- figure and that it is not a live record. An empty slate costs nothing; so does a failed call.
911
- Costs 5 credits.
918
+ figure and that it is not a live record. An empty slate costs nothing, and a note says why (not
919
+ generated yet, or no games today); so does a failed call. Costs 5 credits.
912
920
 
913
921
  Costs 5 credits per call.
914
922
 
@@ -1 +0,0 @@
1
- __version__ = "0.1.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes