Package that gathers information on given MLB games and allows downloading of video clips of plays.
Project description
mlbrecaps
mlbrecaps is a Python library for querying and retrieving highlight videos and play information from Major League Baseball (MLB) games. It provides a simple interface to access game recaps, top plays, and player highlights programmatically.
Features
- Query highlight videos for specific MLB games
- Retrieve top plays for a given day, month, or year
- Get player-specific highlight clips
- Easily integrate with your own Python scripts
Installation
You can install mlbrecaps directly from PyPI using pip:
pip install mlbrecaps
Install from Source
-
Clone the repository:
git clone https://github.com/yourusername/mlbrecaps.git cd mlbrecaps
-
Install dependencies with uv:
uv pip install -e .
This will install the package in editable mode along with all required dependencies.
Example Scripts
The examples/ directory contains ready-to-run scripts:
examples/top_player_plays.py— Get top plays for a playerexamples/top_plays_of_month.py— Get top plays for a monthexamples/top_plays_of_year.py— Get top plays for a year
Run an example with:
python examples/top_player_plays.py
Contributing
Contributions are welcome! To contribute:
- Fork the repository and create your branch.
- Make your changes and add tests if applicable.
- Ensure code style and formatting are consistent.
- Submit a pull request with a clear description of your changes.
License
This project is open source and available under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlbrecaps-0.1.0.tar.gz.
File metadata
- Download URL: mlbrecaps-0.1.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e8506e29a38507a7b7529de5f2a9ef02652c050852e1761bfcd53372e86fbd3
|
|
| MD5 |
33a2d5dc9185c643b458fea3dba6c5be
|
|
| BLAKE2b-256 |
2a5c33afbf05b53e30fdacdf40cdd4c8d359ffd3efcb1ea41d527fbeea9d7d77
|
Provenance
The following attestation bundles were made for mlbrecaps-0.1.0.tar.gz:
Publisher:
workflow.yml on Karsten-Larson/mlbrecaps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mlbrecaps-0.1.0.tar.gz -
Subject digest:
9e8506e29a38507a7b7529de5f2a9ef02652c050852e1761bfcd53372e86fbd3 - Sigstore transparency entry: 517271607
- Sigstore integration time:
-
Permalink:
Karsten-Larson/mlbrecaps@0ef178c9da65bc02cf8b5c850bcf8011dbafdfac -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Karsten-Larson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0ef178c9da65bc02cf8b5c850bcf8011dbafdfac -
Trigger Event:
push
-
Statement type:
File details
Details for the file mlbrecaps-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlbrecaps-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d561c1082dabc3f3dfd39d676214f4261c71c3abd47237772657a386d32e2fdb
|
|
| MD5 |
d2c32ad9794c5aadaf55d523b709b4db
|
|
| BLAKE2b-256 |
b7f1ed9ba88151d2ab462e710b4cb6e03f5247ec136be087d3c435af28059f42
|
Provenance
The following attestation bundles were made for mlbrecaps-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on Karsten-Larson/mlbrecaps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mlbrecaps-0.1.0-py3-none-any.whl -
Subject digest:
d561c1082dabc3f3dfd39d676214f4261c71c3abd47237772657a386d32e2fdb - Sigstore transparency entry: 517271613
- Sigstore integration time:
-
Permalink:
Karsten-Larson/mlbrecaps@0ef178c9da65bc02cf8b5c850bcf8011dbafdfac -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Karsten-Larson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0ef178c9da65bc02cf8b5c850bcf8011dbafdfac -
Trigger Event:
push
-
Statement type: