{"id":18668300,"url":"https://github.com/markis/dynasty","last_synced_at":"2025-07-01T14:32:15.503Z","repository":{"id":245290217,"uuid":"817809380","full_name":"markis/dynasty","owner":"markis","description":"Dynasty Football Dashboard","archived":false,"fork":false,"pushed_at":"2025-06-24T20:46:35.000Z","size":16729,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T21:41:37.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/markis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-06-20T13:37:54.000Z","updated_at":"2025-06-24T20:46:38.000Z","dependencies_parsed_at":"2024-06-21T06:12:09.517Z","dependency_job_id":"59a6d14b-7522-4fd3-98d8-b0a6c9614a81","html_url":"https://github.com/markis/dynasty","commit_stats":null,"previous_names":["markis/dynasty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markis/dynasty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markis%2Fdynasty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markis%2Fdynasty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markis%2Fdynasty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markis%2Fdynasty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markis","download_url":"https://codeload.github.com/markis/dynasty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markis%2Fdynasty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262981132,"owners_count":23394474,"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":[],"created_at":"2024-11-07T08:42:11.976Z","updated_at":"2025-07-01T14:32:15.494Z","avatar_url":"https://github.com/markis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynasty Fantasy Football Dashboard\n\nA comprehensive Streamlit web application for analyzing fantasy football dynasty leagues, providing real-time player valuations, roster analysis, and strategic insights.\n\n## Features\n\n### 🏈 League Analysis\n- **Multi-Platform Integration**: Connect to Sleeper leagues with username lookup\n- **Real-time Roster Analysis**: View detailed team compositions and values\n- **Positional Breakdowns**: Analyze team strength by position (QB, RB, WR, TE)\n- **Draft Pick Integration**: Include draft picks in team valuations\n\n### 📊 Player Valuations\n- **Multiple Ranking Sources**: \n  - KeepTradeCut\n  - DynastyProcess  \n  - FantasyCalc\n  - FantasyNavigator\n- **Historical Trends**: Track player value changes over customizable time periods\n- **Linear Regression Analysis**: Identify trending players with statistical analysis\n\n### 🔍 Advanced Features\n- **Free Agent Analysis**: Discover undervalued available players\n- **IR Stash Recommendations**: Find valuable injured players to stash\n- **Interactive Visualizations**: Plotly charts for team comparisons\n- **Starter-Only Views**: Focus analysis on starting lineups\n- **LLM Integration**: AI-powered insights and recommendations\n\n### 📈 Data Visualization\n- **Team Value Charts**: Compare total roster values across league\n- **Positional Stacking**: Visual breakdown of team composition\n- **Trend Analysis**: Historical value charts for all players\n- **Expandable Rosters**: Detailed player-by-player team views\n\n## Quick Start\n\n### Prerequisites\n- Python 3.8+\n- PostgreSQL database\n- Sleeper account (for league data)\n\n### Installation\n\n1. **Clone the repository**\n```bash\ngit clone \u003crepository-url\u003e\ncd dynasty\n```\n\n2. **Install dependencies**\n```bash\npip install -r requirements.txt\n```\n\n3. **Set up environment variables**\n```bash\nexport PSQL_URL=\"postgresql://username:password@localhost:5432/dynasty\"\n```\n\n4. **Run the application**\n```bash\nstreamlit run home.py\n```\n\n## Docker Setup\n\n### Using Docker Compose\n```bash\ndocker-compose up -d\n```\n\n### Manual Docker Build\n```bash\ndocker build -t dynasty-dashboard .\ndocker run -p 8501:8501 -e PSQL_URL=\"your-db-url\" dynasty-dashboard\n```\n\n## Configuration\n\n### Environment Variables\n- `PSQL_URL`: PostgreSQL connection string (required)\n\n### Database Setup\nThe application requires a PostgreSQL database with player rankings data. The database schema is managed through SQLModel.\n\n### Data Sources\nPlayer rankings are pulled from multiple sources and stored in the database with historical tracking for trend analysis.\n\n## Usage\n\n1. **Access the Dashboard**: Navigate to `http://localhost:8501`\n\n2. **Enter Sleeper Username**: Input your Sleeper username in the sidebar\n\n3. **Select League**: Choose from your available leagues\n\n4. **Configure Analysis**:\n   - Choose ranking source (KeepTradeCut, DynastyProcess, etc.)\n   - Toggle starters-only view\n   - Include/exclude draft picks\n   - Set trending analysis timeframe\n\n5. **Analyze Results**:\n   - View team value comparisons\n   - Explore individual rosters\n   - Check free agent recommendations\n   - Review IR stash opportunities\n\n## Project Structure\n\n```\ndynasty/\n├── dynasty/                 # Core application package\n│   ├── models.py           # Database models\n│   ├── db.py              # Database utilities\n│   ├── service/           # External API integrations\n│   │   ├── sleeper.py     # Sleeper API client\n│   │   ├── keeptradecut.py # KeepTradeCut integration\n│   │   └── ...            # Other fantasy platforms\n│   └── util.py            # Utility functions\n├── data/                   # CSV data files\n├── tests/                  # Test suite\n├── home.py                # Main Streamlit application\n├── compose.yml            # Docker Compose configuration\n├── Containerfile          # Docker build file\n└── requirements.txt       # Python dependencies\n```\n\n## Data Import\n\nThe application includes import utilities for pulling data from various fantasy football platforms:\n\n```bash\npython -m dynasty.import\n```\n\n## Development\n\n### Running Tests\n```bash\npytest tests/\n```\n\n### Code Style\nThe project follows Python best practices with type hints and modern Python features.\n\n### Contributing\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests for new functionality\n5. Submit a pull request\n\n## API Integrations\n\n- **Sleeper API**: League and roster data\n- **KeepTradeCut**: Player valuations and trends\n- **DynastyProcess**: Advanced dynasty rankings\n- **FantasyCalc**: Trade calculator integration\n- **FantasyNavigator**: Additional ranking source\n\n## Performance Features\n\n- **Caching**: Streamlit caching for improved performance\n- **Database Optimization**: Efficient queries with SQLModel\n- **Containerization**: Docker support for easy deployment\n\n## Troubleshooting\n\n### Common Issues\n\n**Database Connection Issues**\n- Ensure `PSQL_URL` is properly set\n- Verify database is accessible and running\n\n**Sleeper API Errors**  \n- Check username spelling\n- Verify league access permissions\n\n**Missing Player Data**\n- Run data import: `python -m dynasty.import`\n- Check ranking source availability\n\n## License\n\nSee LICENSE.txt for details.\n\n## Support\n\nFor issues and feature requests, please open a GitHub issue with detailed information about your setup and the problem encountered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkis%2Fdynasty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkis%2Fdynasty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkis%2Fdynasty/lists"}