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.2.tar.gz (12.3 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.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlbrecaps-0.1.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mlbrecaps-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d3edd723ee761c08c764b6691be5930d4c89e723ae9ec513cc5f54bd53e12763
MD5 24af656cf0352c877503553c1014ff1e
BLAKE2b-256 48a55d00b8c419561d1bc4711bd485e2f10d3adb877ff975667fb502dfacb1a1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mlbrecaps-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mlbrecaps-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32c7ec0a02f1a31b3f28879cc11b1b142e777bcdb7bc2a29d3f5b4374533072e
MD5 1798e4b1b627ea3c0203c37b9341598f
BLAKE2b-256 0c34e67429278a56dfd3e8c876fdf97919d3745943e7690c4a7787b2c77058f3

See more details on using hashes here.

Provenance

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