{"id":25214008,"url":"https://github.com/eusha425/mlb-strategy-assistant","last_synced_at":"2026-05-19T03:17:41.723Z","repository":{"id":276447642,"uuid":"925585893","full_name":"Eusha425/mlb-strategy-assistant","owner":"Eusha425","description":"AI-Powered Baseball Strategy Analyser with real-time pitch explanations using MLB data \u0026 Gemini API. Includes Python \u0026 Streamlit, built for fans, analysts, and developers.","archived":false,"fork":false,"pushed_at":"2025-02-25T11:53:16.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T12:37:29.276Z","etag":null,"topics":["ai-application","api-integration","gemini-api","machine-learning","mlb-api","python","real-time-analytics","sports-analytics","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eusha425.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T08:12:26.000Z","updated_at":"2025-02-25T11:57:12.000Z","dependencies_parsed_at":"2025-02-08T10:34:21.594Z","dependency_job_id":null,"html_url":"https://github.com/Eusha425/mlb-strategy-assistant","commit_stats":null,"previous_names":["eusha425/mlb-strategy-assistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eusha425%2Fmlb-strategy-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eusha425%2Fmlb-strategy-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eusha425%2Fmlb-strategy-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eusha425%2Fmlb-strategy-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eusha425","download_url":"https://codeload.github.com/Eusha425/mlb-strategy-assistant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247307877,"owners_count":20917574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-application","api-integration","gemini-api","machine-learning","mlb-api","python","real-time-analytics","sports-analytics","streamlit"],"created_at":"2025-02-10T16:58:13.326Z","updated_at":"2026-05-19T03:17:41.716Z","avatar_url":"https://github.com/Eusha425.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Baseball Strategy Assistant\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Status-In%20Development-yellow\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-3.9%2B-blue\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Streamlit-1.28.0-blue\"\u003e\n\u003c/p\u003e\n \n*An AI-powered tool that explains baseball pitch strategies in real-time using MLB data and Google's Gemini API.*\n\n[Features](#features) •\n[Installation](#installation--setup) •\n[Usage](#usage) •\n[Project Structure](#project-structure) •\n[Contributing](#contributing)\n\n\u003c/div\u003e\n\n## Overview\n\nThe **Baseball Strategy Assistant** is a real-time AI tool that analyses MLB game data and provides casual fans with fun, easy-to-understand explanations of pitch strategies. Built with Python, Streamlit, and Google's Gemini API, it transforms complex baseball tactics into relatable analogies.\n\n## Features\n\n- **Real-Time Insights**: Fetches live game data from MLB's API\n- **AI-Powered Analysis**: Uses Gemini to generate casual, fun explanations\n- **Interactive UI**: Built with Streamlit for a clean, user-friendly experience\n- **Multilingual Support**: Gemini can explain strategies in multiple languages\n- **Historical Data**: Works with past games for demo purposes\n\n## Prerequisites\n\n- Python 3.9+\n- Google Gemini API Key ([Get it here](https://ai.google.dev/))\n- MLB API Access (Public, no key required)\n\n## Installation \u0026 Setup\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/Eusha425/baseball-strategy-assistant.git\n   cd baseball-strategy-assistant\n   ```\n\n2. **Set up a virtual environment**\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n   ```\n\n3. **Install dependencies**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Set up environment variables**\n   Create a `.env` file in the root directory:\n   ```env\n   GEMINI_API_KEY=your_api_key_here\n   ```\n\n## Usage\n\n1. **Run the app locally**\n   ```bash\n   streamlit run main.py\n   ```\n\n2. **View the app**\n   Open your browser and navigate to `http://localhost:8501`\n\n3. **Interact with the app**\n   - The app automatically fetches live game data\n   - If no live games are available, it uses historical data for demonstration\n   - View real-time pitch insights with fun analogies!\n\n## Project Structure\n\n```\nbaseball-strategy-assistant/\n├── main.py                # Streamlit app entry point\n├── mlb_client/            # MLB API interactions\n│   └── __init__.py\n├── gemini_client/         # Gemini API integration\n│   └── __init__.py\n├── date_utils/            # Date-related utilities\n│   └── __init__.py\n├── .env                   # Environment variables\n├── requirements.txt       # Python dependencies\n└── README.md              # Project documentation\n```\n\n## Performance\n\n- **Latency**:\n  - MLB API: ~200ms\n  - Gemini API: ~500ms\n- **Supported Games**:\n  - Live MLB games (when available)\n  - Historical games (fallback)\n\n## Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. **Report Bugs**: Open an issue with detailed steps to reproduce\n2. **Suggest Features**: Share your ideas for new features or improvements\n3. **Submit Pull Requests**: Follow the [Contributing Guidelines](CONTRIBUTING.md)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- *MLB API*: For providing free access to live game data\n- *Google Gemini*: For enabling AI-powered insights\n- *Streamlit*: For making web app development simple and fast\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feusha425%2Fmlb-strategy-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feusha425%2Fmlb-strategy-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feusha425%2Fmlb-strategy-assistant/lists"}