{"id":31755594,"url":"https://github.com/brendanddev/fantasy-analyzer","last_synced_at":"2025-10-09T18:54:42.548Z","repository":{"id":312870808,"uuid":"1043908317","full_name":"brendanddev/fantasy-analyzer","owner":"brendanddev","description":"Fantasy Analyzer is an unofficial Python wrapper for the Sleeper fantasy football API.","archived":false,"fork":false,"pushed_at":"2025-09-09T13:34:22.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-09T15:40:38.966Z","etag":null,"topics":[],"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/brendanddev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-24T21:43:25.000Z","updated_at":"2025-09-09T13:34:25.000Z","dependencies_parsed_at":"2025-09-02T15:29:14.298Z","dependency_job_id":null,"html_url":"https://github.com/brendanddev/fantasy-analyzer","commit_stats":null,"previous_names":["brendanddev/fantasy-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brendanddev/fantasy-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2Ffantasy-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2Ffantasy-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2Ffantasy-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2Ffantasy-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brendanddev","download_url":"https://codeload.github.com/brendanddev/fantasy-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2Ffantasy-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001868,"owners_count":26083226,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-09T18:54:38.133Z","updated_at":"2025-10-09T18:54:42.535Z","avatar_url":"https://github.com/brendanddev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fantasy Analyzer\n\nFantasy Analyzer is an **unofficial Python wrapper** for the Sleeper fantasy football API.\nIt allows you to easily fetch user, league, roster, and matchup data for analysis and tracking.\n\n\u003e ⚠️ Disclaimer: This project is **not affiliated with Sleeper**.\n\u003e It uses Sleeper’s **read-only public API**, documented here: [https://docs.sleeper.com/](https://docs.sleeper.com/).\n\n---\n\n## Overview\n\nFantasy Analyzer helps fantasy football managers and analysts to:\n\n- Fetch and inspect user profiles, including display names and avatars.\n- Explore league details (status, season, total rosters, etc.).\n- View team rosters with player names.\n- Track trending NFL players over time (adds, drops, trades).\n- Use a clean **Streamlit dashboard** for interactive exploration.\n\nThe library is split into:\n\n- `client.py` → Core API wrapper for Sleeper endpoints.  \n- `utils.py` → CLI-friendly functions (`print_user_info`, `print_league_info`, etc.).  \n- `st_utils.py` → Streamlit helpers (`st_user_info`, `st_league_info`, `st_rosters`, `st_trending_players`).  \n- `dashboard.py` → Interactive Streamlit app with tabs and reactive updates.\n\n--- \n\n## Features\n\n- **User \u0026 League Data**\n  - Fetch user profiles and league details.\n- **Roster \u0026 Player Analysis**\n  - View rosters, player names, positions, and NFL teams.\n  - Track top performers per week and by position.\n  - View trending players (adds, drops, trades) over custom timeframes.\n- **Team Performance**\n  - Identify best-performing fantasy teams by weekly points.\n- **Roster Composition Insights**\n  - Calculate the average number of players per position across all teams.\n- **Interactive Dashboard**\n  - Streamlit-based with multiple tabs for top performers, trending players, team performance, and league overview.\n\n---\n\n## Installation\n```bash\ngit clone https://github.com/brendanddev/fantasy-analyzer\ncd fantasy-analyzer\npip install -r requirements.txt\n```\n\n---\n\n## Quick Start\n```python\nfrom src.client import SleeperClient\nfrom src.utils import print_user_info\n\nclient = SleeperClient()\n# Optionally load local players JSON\n# client.load_players(\"data/players.json\")\n\nprint_user_info(client, \"1234567890\")\n```\n\n---\n\n## Usage with Streamlit\n\nRun the interactive dashboard:\n```bash\nstreamlit run src/dashboard.py\n```\n\nExplore tabs for: \n- Top Performers\n- Trending Players\n- Team Performance\n- League Overview\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanddev%2Ffantasy-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrendanddev%2Ffantasy-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanddev%2Ffantasy-analyzer/lists"}