MLB Data Tools
DataFrames, type-safety, and plotting for modern baseball analytics.
Philosophy & Goals
- Expose useful endpoints and datasets (Savant Player Pages, OAA data by play, pitch by pitch statcast)
- Defined data schema/types
- Easily convert to DataFrames
Example Usage
from mlbdatafetch import mlbfetch
all_players = mlbfetch.players(sport_id=1, season=2024)
player = all_players[0]
print(player.full_name, player.primary_position_code)
players_df = all_players.to_df()
players_df.head(1)
Andrew Abbot P
| id | full_name | first_name | last_name | primary_number | ... | |
|---|---|---|---|---|---|---|
| 0 | 671096 | Andrew Abbot | Andrew | Abbot | 41 | ... |
Metadata
Release files for mlbdatatools 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlbdatatools-0.1.4.tar.gz | 13.3 kB | Without provenance | Details for mlbdatatools-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlbdatatools-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for mlbdatatools-0.1.4-py3-none-any.whl |
Total release size: 27.3 kB
Release files / mlbdatatools-0.1.4.tar.gz
| Download URL | mlbdatatools-0.1.4.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0ba96435b95b90764175cfa5a3ba475ce6e63c264fea5149378aa2a7f490cb6
|
|
BLAKE2b-256 checksum How to use checksums |
299a43d2b085bd7cbe92583f4ea2b71d9cb04c796bd170982e2d1804d67a4ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / mlbdatatools-0.1.4-py3-none-any.whl
| Download URL | mlbdatatools-0.1.4-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0542c1a07998a8f6f71da7d0103df1dd1acd9435b7274ae23824b36a78981b2
|
|
BLAKE2b-256 checksum How to use checksums |
e3395f8263efe8d426aabc2b01c5006833943261208df771f358a1e50667a7b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Security for mlbdatatools 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.