acesapi 0.1.0__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.
- {acesapi-0.1.0 → acesapi-0.1.5}/PKG-INFO +3 -2
- {acesapi-0.1.0 → acesapi-0.1.5}/README.md +1 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/pyproject.toml +1 -1
- acesapi-0.1.5/src/acesapi/_version.py +1 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/src/acesapi/client.py +56 -18
- acesapi-0.1.0/src/acesapi/_version.py +0 -1
- {acesapi-0.1.0 → acesapi-0.1.5}/.gitignore +0 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/LICENSE +0 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/src/acesapi/__init__.py +0 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/src/acesapi/_core.py +0 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/src/acesapi/py.typed +0 -0
- {acesapi-0.1.0 → acesapi-0.1.5}/tests/test_client.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: acesapi
|
|
3
|
-
Version: 0.1.
|
|
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/
|
|
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/
|
|
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
|
|
|
@@ -166,7 +167,7 @@ class Client(BaseClient):
|
|
|
166
167
|
"""Schedule.
|
|
167
168
|
|
|
168
169
|
Use for upcoming matches: every scheduled or in-progress singles match in the next N days
|
|
169
|
-
(default 7, max 30) with players, seeds, round and start time where
|
|
170
|
+
(default 7, max 30) with players, seeds, round and start time where one is set. Tour: atp
|
|
170
171
|
(default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 2 credits.
|
|
171
172
|
|
|
172
173
|
Costs 2 credits per call.
|
|
@@ -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),
|
|
200
|
-
|
|
201
|
-
|
|
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
|
|
|
@@ -228,9 +232,9 @@ class Client(BaseClient):
|
|
|
228
232
|
"""Search players.
|
|
229
233
|
|
|
230
234
|
Use to find a player's id. Search by name (accents optional) and/or country code (e.g. ITA);
|
|
231
|
-
most-played first, with matches, last match and rank on the current list (null outside
|
|
232
|
-
|
|
233
|
-
WTA. Costs 1 credit.
|
|
235
|
+
most-played first, with matches, last match and rank on the current list (null outside the top
|
|
236
|
+
100 to 150 listed). Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for
|
|
237
|
+
the WTA. Costs 1 credit.
|
|
234
238
|
|
|
235
239
|
Costs 1 credit per call.
|
|
236
240
|
|
|
@@ -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)
|
|
382
|
-
share of games won, tiebreaks, deciding sets and 6-0 sets, plus the
|
|
383
|
-
one season or the whole career; by_season splits each surface by
|
|
384
|
-
wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3
|
|
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
|
|
417
|
-
and lost, deciding sets, 6-0 sets and
|
|
418
|
-
|
|
419
|
-
|
|
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
|
|
|
@@ -452,8 +457,8 @@ class Client(BaseClient):
|
|
|
452
457
|
|
|
453
458
|
Use for the ranking list: the latest (default), or a season and week, or the list in force on a
|
|
454
459
|
date, with rank, previous rank, points and player. Pass player_id instead for one player's
|
|
455
|
-
ranking history.
|
|
456
|
-
wta; on the shared endpoint pass league: "wta" for the WTA. Costs 2 credits.
|
|
460
|
+
ranking history. Weekly lists hold the top 100 to 150 for most weeks since 2007. Tour: atp
|
|
461
|
+
(default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 2 credits.
|
|
457
462
|
|
|
458
463
|
Costs 2 credits per call.
|
|
459
464
|
|
|
@@ -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.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|