dunkapi 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: dunkapi
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python client for the DunkAPI NBA data API. No dependencies.
5
5
  Project-URL: Homepage, https://dunkapi.com
6
6
  Project-URL: Documentation, https://dunkapi.com/docs
@@ -0,0 +1 @@
1
+ __version__ = "0.1.4"
@@ -167,7 +167,7 @@ class Client(BaseClient):
167
167
  Costs 5 credits per call.
168
168
 
169
169
  Args:
170
- game_id: ESPN game id, from list_games or get_schedule.
170
+ game_id: Game id, from list_games or get_schedule.
171
171
  league (optional): League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw.
172
172
 
173
173
  Returns:
@@ -286,7 +286,7 @@ class Client(BaseClient):
286
286
  Costs 5 credits per call.
287
287
 
288
288
  Args:
289
- player_id: ESPN athlete id, from search_players.
289
+ player_id: Player id, from search_players.
290
290
  league (optional): League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw.
291
291
 
292
292
  Returns:
@@ -318,7 +318,7 @@ class Client(BaseClient):
318
318
  Costs 5 credits per call.
319
319
 
320
320
  Args:
321
- player_id: ESPN athlete id.
321
+ player_id: Player id.
322
322
  season (optional): Season by the year it ends: 2025 = 2024-25 (default: the latest).
323
323
  season_type (optional): One of: regular, postseason, play_in, preseason.
324
324
  limit (optional): Max games (default 100).
@@ -539,11 +539,11 @@ class Client(BaseClient):
539
539
  """Odds.
540
540
 
541
541
  Use for betting lines: each sportsbook's moneyline, spread and total for a game (opening and
542
- closing per book from July 2020 from The Odds API, and from 2023-24 from ESPN; ESPN's final line
543
- only before that), with implied probabilities and, for finished games, whether the home side
544
- covered and the total went over against the median close. Pass game_id for one game (5 credits)
545
- or date for a day's games (10 credits). Prices are market information: never work out a stake,
546
- payout or profit, recommend a bet, or send the user to a sportsbook.
542
+ closing per book from July 2020; before that, each book's final pregame line only), with implied
543
+ probabilities and, for finished games, whether the home side covered and the total went over
544
+ against the median close. Pass game_id for one game (5 credits) or date for a day's games (10
545
+ credits). Prices are market information: never work out a stake, payout or profit, recommend a
546
+ bet, or send the user to a sportsbook.
547
547
 
548
548
  Costs 5 credits per call.
549
549
 
@@ -575,8 +575,8 @@ class Client(BaseClient):
575
575
  """Line movement.
576
576
 
577
577
  Use to see how a game's line moved before tip-off: our pre-game snapshots of each sportsbook's
578
- moneyline, spread and total (ESPN's once a day, The Odds API's every hour for games in the next
579
- four days). Costs 10 credits. Prices are market information: never work out a stake, payout or
578
+ moneyline, spread and total (captured once a day, and every hour for games in the next four
579
+ days). Costs 10 credits. Prices are market information: never work out a stake, payout or
580
580
  profit, recommend a bet, or send the user to a sportsbook.
581
581
 
582
582
  Costs 10 credits per call.
@@ -650,9 +650,12 @@ class Client(BaseClient):
650
650
  others). Pass game_id for every player's props in one game (10 credits), or player_id with
651
651
  from_date (and to_date) for one player across games (10 credits per game returned, up to 100).
652
652
  Returns the closing line by default (the last before the game starts) or the opening line, with
653
- each book's over and under prices. Set estimate_only to get the price without being charged.
654
- Prices are market information: never work out a stake, payout or profit, recommend a bet, or
655
- send the user to a sportsbook.
653
+ each book's over and under prices. Outside football the archive mostly holds one pre-game
654
+ capture per line, so the opening and closing lines are usually the same; the opening line
655
+ differs only where a second capture was taken (live capture from October 2026, and wherever else
656
+ it is held). Set estimate_only to get the price without being charged. Prices are market
657
+ information: never work out a stake, payout or profit, recommend a bet, or send the user to a
658
+ sportsbook.
656
659
 
657
660
  Costs 10 credits per call.
658
661
 
@@ -669,7 +672,8 @@ class Client(BaseClient):
669
672
  player_steals (steals)
670
673
  bookmaker (optional): Bookmaker key, e.g. draftkings, fanduel, pinnacle.
671
674
  snapshot_type (optional): closing (default): the last line before the game starts. opening:
672
- the first one captured.
675
+ the first one captured, which is the same capture as the close wherever only one was
676
+ taken.
673
677
  estimate_only (optional): Return what this call would cost, without charging or running it.
674
678
  league (optional): League. Defaults to nba. One of: nba, wnba, ncaam.
675
679
 
@@ -706,10 +710,11 @@ class Client(BaseClient):
706
710
 
707
711
  Use to see how a player did against his prop line over time: for one market (points, rebounds,
708
712
  assists, threes, points + rebounds + assists, blocks or steals), one row per game with the
709
- closing line (the median across books, or one book's), the opening line, the prices, what the
710
- player actually recorded from our box scores and the result against the line, plus the over
711
- rate. Costs 10 credits for up to 200 games. Prices are market information: never work out a
712
- stake, payout or profit, recommend a bet, or send the user to a sportsbook.
713
+ closing line (the median across books, or one book's), the opening line (the same as the close
714
+ wherever only one capture was taken), the prices, what the player actually recorded from our box
715
+ scores and the result against the line, plus the over rate. Costs 10 credits for up to 200
716
+ games. Prices are market information: never work out a stake, payout or profit, recommend a bet,
717
+ or send the user to a sportsbook.
713
718
 
714
719
  Costs 10 credits per call.
715
720
 
@@ -1 +0,0 @@
1
- __version__ = "0.1.3"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes