puckapi 0.1.2__tar.gz → 0.1.3__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.
- {puckapi-0.1.2 → puckapi-0.1.3}/PKG-INFO +5 -1
- {puckapi-0.1.2 → puckapi-0.1.3}/README.md +4 -0
- puckapi-0.1.3/src/puckapi/_version.py +1 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/src/puckapi/client.py +10 -7
- puckapi-0.1.2/src/puckapi/_version.py +0 -1
- {puckapi-0.1.2 → puckapi-0.1.3}/.gitignore +0 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/LICENSE +0 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/pyproject.toml +0 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/src/puckapi/__init__.py +0 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/src/puckapi/_core.py +0 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/src/puckapi/py.typed +0 -0
- {puckapi-0.1.2 → puckapi-0.1.3}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: puckapi
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
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.3"
|
|
@@ -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
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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)
|
|
@@ -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
|
|
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,
|
|
@@ -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
|