Skip to main content

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

  1. Clone the repository:

    git clone https://github.com/yourusername/mlbrecaps.git
    cd mlbrecaps
    
  2. 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 player
  • examples/top_plays_of_month.py — Get top plays for a month
  • examples/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:

  1. Fork the repository and create your branch.
  2. Make your changes and add tests if applicable.
  3. Ensure code style and formatting are consistent.
  4. 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

mlbrecaps-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlbrecaps-0.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

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

Hashes for mlbrecaps-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e8506e29a38507a7b7529de5f2a9ef02652c050852e1761bfcd53372e86fbd3
MD5 33a2d5dc9185c643b458fea3dba6c5be
BLAKE2b-256 2a5c33afbf05b53e30fdacdf40cdd4c8d359ffd3efcb1ea41d527fbeea9d7d77

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlbrecaps-0.1.0.tar.gz:

Publisher: workflow.yml on Karsten-Larson/mlbrecaps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mlbrecaps-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d561c1082dabc3f3dfd39d676214f4261c71c3abd47237772657a386d32e2fdb
MD5 d2c32ad9794c5aadaf55d523b709b4db
BLAKE2b-256 b7f1ed9ba88151d2ab462e710b4cb6e03f5247ec136be087d3c435af28059f42

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlbrecaps-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on Karsten-Larson/mlbrecaps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page