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.1.tar.gz (12.2 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.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file mlbrecaps-0.1.1.tar.gz.

File metadata

  • Download URL: mlbrecaps-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 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.1.tar.gz
Algorithm Hash digest
SHA256 14ebddd786a808d850442e5d2cf8ba8d3af54635fb1873a3ef75c1050cf7636f
MD5 c352c145b6fdd7b399ed8b6b9fa262ce
BLAKE2b-256 3e445cc8f38e5a76da8e0a8b035170f4769a5de310f666bf43080ff87835d997

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlbrecaps-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: mlbrecaps-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12f2f32a7f457b26928517bd77920ee7f3a584802e78373c630fe024b3cf51cf
MD5 9f670693dc443cace84623823fe614ca
BLAKE2b-256 70ecacaba7b97a0cbcbfc5176c90b65244c925f834127d3216b911fbe7373e71

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlbrecaps-0.1.1-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