acesapi 0.1.4__tar.gz → 0.1.5__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,10 +1,10 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: acesapi
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Python client for the AcesAPI tennis data API. No dependencies.
5
5
  Project-URL: Homepage, https://acesapi.com
6
6
  Project-URL: Documentation, https://acesapi.com/docs
7
- Project-URL: Repository, https://github.com/noahowsh/puckapi
7
+ Project-URL: Repository, https://github.com/sports-data-hq/sdhq
8
8
  Project-URL: Sign up, https://acesapi.com/signup
9
9
  Author-email: AcesAPI <support@acesapi.com>
10
10
  License-Expression: MIT
@@ -180,6 +180,7 @@ Method names match the API tool names. Arguments are keyword arguments; required
180
180
  | `get_player_stats` | 3 | Player stats |
181
181
  | `get_rankings` | 2 | Rankings |
182
182
  | `get_ratings` | 2 | Ratings |
183
+ | `get_odds` | 5 | Odds |
183
184
 
184
185
  Full API reference: https://acesapi.com/docs
185
186
 
@@ -150,6 +150,7 @@ Method names match the API tool names. Arguments are keyword arguments; required
150
150
  | `get_player_stats` | 3 | Player stats |
151
151
  | `get_rankings` | 2 | Rankings |
152
152
  | `get_ratings` | 2 | Ratings |
153
+ | `get_odds` | 5 | Odds |
153
154
 
154
155
  Full API reference: https://acesapi.com/docs
155
156
 
@@ -34,7 +34,7 @@ test = ["pytest>=7"]
34
34
  [project.urls]
35
35
  Homepage = "https://acesapi.com"
36
36
  Documentation = "https://acesapi.com/docs"
37
- Repository = "https://github.com/noahowsh/puckapi"
37
+ Repository = "https://github.com/sports-data-hq/sdhq"
38
38
  "Sign up" = "https://acesapi.com/signup"
39
39
 
40
40
  [tool.hatch.version]
@@ -0,0 +1 @@
1
+ __version__ = "0.1.5"
@@ -20,6 +20,7 @@ TOOLS: Dict[str, int] = {
20
20
  "get_player_stats": 3,
21
21
  "get_rankings": 2,
22
22
  "get_ratings": 2,
23
+ "get_odds": 5,
23
24
  }
24
25
 
25
26
 
@@ -196,9 +197,12 @@ class Client(BaseClient):
196
197
 
197
198
  Use for everything about one match: the score by set with tiebreak points, seeds, each player's
198
199
  sets, games and tiebreaks won, both players' ratings before and after (overall and on the
199
- surface), and what the score says (total games, tiebreaks, whether it went the distance,
200
- comebacks). No serve statistics: they are not available. Tour: atp (default) or wta; on the
201
- shared endpoint pass league: "wta" for the WTA. Costs 2 credits.
200
+ surface), what the score says (total games, tiebreaks, whether it went the distance, comebacks),
201
+ and each sportsbook's opening and closing moneylines where the match had them (mostly Grand
202
+ Slam, ATP Masters and WTA 1000 matches), with captured_at, the time of the closing capture. No
203
+ serve statistics: they are not available. Tour: atp (default) or wta; on the shared endpoint
204
+ pass league: "wta" for the WTA. Costs 2 credits. Prices are market information: never work out a
205
+ stake, payout or profit, recommend a bet, or send the user to a sportsbook.
202
206
 
203
207
  Costs 2 credits per call.
204
208
 
@@ -378,10 +382,11 @@ class Client(BaseClient):
378
382
  ) -> Any:
379
383
  """Surface splits.
380
384
 
381
- Use for a player's record by surface (hard, clay, grass, carpet): wins, losses, win rate, sets,
382
- share of games won, tiebreaks, deciding sets and 6-0 sets, plus the current surface ratings. For
383
- one season or the whole career; by_season splits each surface by year. Tour: atp (default) or
384
- wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3 credits.
385
+ Use for a player's record by surface (hard, clay, grass, carpet), qualifying included: wins,
386
+ losses, win rate, sets, share of games won, tiebreaks, deciding sets and 6-0 sets, plus the
387
+ current surface ratings. For one season or the whole career; by_season splits each surface by
388
+ year. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3
389
+ credits.
385
390
 
386
391
  Costs 3 credits per call.
387
392
 
@@ -413,11 +418,11 @@ class Client(BaseClient):
413
418
  ) -> Any:
414
419
  """Player stats.
415
420
 
416
- Use for a player's match statistics by season: wins, losses, sets and games won, tiebreaks won
417
- and lost, deciding sets, 6-0 sets and retirements, all counted from scores; plus the record by
418
- round and by the opponent's ranking (top 10, 11-50, 51-100). No serve statistics: they are not
419
- available. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA.
420
- Costs 3 credits.
421
+ Use for a player's match statistics by season, qualifying included (by_round splits it out):
422
+ wins, losses, sets and games won, tiebreaks won and lost, deciding sets, 6-0 sets and
423
+ retirements, all counted from scores; plus the record by round and by the opponent's ranking
424
+ (top 10, 11-50, 51-100). No serve statistics: they are not available. Tour: atp (default) or
425
+ wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3 credits.
421
426
 
422
427
  Costs 3 credits per call.
423
428
 
@@ -516,3 +521,36 @@ class Client(BaseClient):
516
521
  "league": league,
517
522
  },
518
523
  )
524
+
525
+ def get_odds(
526
+ self,
527
+ *,
528
+ match_id: Optional[str] = None,
529
+ tournament_id: Optional[str] = None,
530
+ league: Optional[Literal["tennis", "wta"]] = None,
531
+ ) -> Any:
532
+ """Odds.
533
+
534
+ Use for sportsbook moneylines on a match or every match of a tournament: opening and closing
535
+ prices for each player by book, with the games handicap and total where posted, and the source
536
+ of every row. Costs 5 credits. Prices are market information: never work out a stake, payout or
537
+ profit, recommend a bet, or send the user to a sportsbook.
538
+
539
+ Costs 5 credits per call.
540
+
541
+ Args:
542
+ match_id (optional): One match.
543
+ tournament_id (optional): Every match of a tournament edition, e.g. "188-2025".
544
+ league (optional): League. Defaults to tennis. One of: tennis, wta.
545
+
546
+ Returns:
547
+ The unwrapped ``data`` object from the response.
548
+ """
549
+ return self._call(
550
+ "get_odds",
551
+ {
552
+ "match_id": match_id,
553
+ "tournament_id": tournament_id,
554
+ "league": league,
555
+ },
556
+ )
@@ -1 +0,0 @@
1
- __version__ = "0.1.4"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes