Ff Regret

D 58 completed
Api
containerized / python · small
53
Files
6,876
LOC
3
Frameworks
5
Languages

Pipeline State

completed
Run ID
#369186
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
51.14
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #54659
Member of a group with 1 similar repo(s) — canonical #663 view group →
Top concepts (2)
Project DescriptionWeb Backend
All rows scored by the Repobility analyzer (https://repobility.com)

AI Prompt

Create a web API using Python and FastAPI that calculates fantasy football regret metrics. I need features for Draft Regret, Waiver Regret (ranking free agents by rest-of-season impact), and Start/Sit Regret for weekly lineup decisions. The backend should use PostgreSQL or SQLite for the database and process data using Polars and nfl_data_py. For the frontend, I'd like to use HTMX and Tailwind CSS, ensuring it supports a Dark Mode. Please structure the project to handle data fetching from Yahoo Fantasy API credentials stored in environment variables.
python fastapi sqlalchemy postgresql htmx tailwindcss fantasy-football api data-analysis
Generated by gemma4:latest

Catalog Information

A web API that calculates regret metrics for fantasy football lineups and provides actionable insights for managers.

Description

The Fantasy Football Regret Engine exposes a set of RESTful endpoints that accept player selections and game data, then compute regret scores indicating how much a manager could have improved their lineup. It aggregates historical performance, injury status, and matchup information using pandas, stores and retrieves data via SQLAlchemy, and serves results through FastAPI. The API is designed for integration with fantasy platforms, dashboards, or custom tools, enabling real‑time analysis of draft decisions. It targets fantasy football enthusiasts, analysts, and developers building decision‑support systems. By quantifying missed opportunities, the engine helps users refine future picks and understand the impact of each roster move.

الوصف

يُقدِّم محرك الندم في كرة القدم الخيالية واجهة برمجة تطبيقات RESTful تسمح للمستخدمين بإرسال اختيارات اللاعبين وبيانات المباريات، ثم يحسب مؤشرات الندم التي تُظهر مدى إمكانية تحسين الخطط. يستخدم مكتبة pandas لتحليل الأداء التاريخي، حالة الإصابات، ومقارنات المباريات، بينما يُخزَّن ويسترجع البيانات عبر SQLAlchemy في قواعد بيانات PostgreSQL أو SQLite. تُقدَّم النتائج عبر FastAPI، ما يتيح دمجها بسهولة مع منصات كرة القدم الخيالية أو لوحات المعلومات أو أدوات مخصصة. يستهدف هذا المشروع مديري الفرق الخيالية، المحللين الرياضيين، ومطوري البرامج الذين يحتاجون إلى دعم لاتخاذ القرارات. يساهم المحرك في تحديد الفرص المفقودة وتقديم توصيات لتحسين اختيارات اللاعبين في المستقبل، ما يميزّه عن الحلول التقليدية التي لا توفر تحليلاً كميًا للندم.

Novelty

7/10

Tags

fantasy-football regret-analysis player-performance data-analytics decision-support sports-analytics insight-generation lineup-optimization

Technologies

fastapi pandas pydantic sqlalchemy uvicorn

Claude Models

claude-opus-4.6

Quality Score

D
58.4/100
Structure
59
Code Quality
71
Documentation
47
Testing
30
Practices
65
Security
75
Dependencies
60

Strengths

  • Code linting configured (ruff (possible))
  • Consistent naming conventions (snake_case)
  • Containerized deployment (Docker)

Weaknesses

  • No LICENSE file \u2014 legal ambiguity for contributors
  • No CI/CD configuration \u2014 manual testing and deployment
  • 1 bare except/catch blocks swallowing errors
  • 300 duplicate lines detected \u2014 consider DRY refactoring
  • 1 'god files' with >500 LOC need decomposition

Recommendations

  • Add a test suite \u2014 start with critical path integration tests
  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a LICENSE file (MIT recommended for open source)
  • Replace bare except/catch blocks with specific exception types

Security & Health

7.1h
Tech Debt (C)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (2)
Repobility — the code-quality scanner for AI-generated software · https://repobility.com
Unknown
License
11.0%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

python
79.1%
html
14.9%
markdown
4.3%
toml
1.0%
json
0.8%

Frameworks

FastAPI pytest SQLAlchemy

Concepts (2)

Source: Repobility analyzer (https://repobility.com)
CategoryNameDescriptionConfidence
Same scanner, your repo: https://repobility.com — Repobility
auto_descriptionProject DescriptionThree ways to regret your fantasy football season — whether you drafted the wrong player, picked up the wrong player, or started the wrong player.80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/93388.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV