CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-flask-admin

Simple and extensible admin interface framework for Flask

86

1.30x

Quality

Pending

Does it follow best practices?

Impact

86%

1.30x

Average score across 10 eval scenarios

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses Flask-Admin's view system and routing capabilities to create a custom analytics dashboard. The focus is on proper usage of BaseView, the @expose() decorator for defining routes, and template rendering with context data.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "BaseView Inheritance",
      "description": "The AnalyticsView class properly inherits from flask_admin.BaseView to create a custom admin view.",
      "max_score": 15
    },
    {
      "name": "Index Route Decorator",
      "description": "The index() method is decorated with @expose('/') to define the default route.",
      "max_score": 15
    },
    {
      "name": "Stats Route Decorator",
      "description": "The stats() method is decorated with @expose('/stats') to define the statistics route.",
      "max_score": 15
    },
    {
      "name": "Reports Route Decorator",
      "description": "The reports() method is decorated with @expose('/reports') to define the reports route.",
      "max_score": 15
    },
    {
      "name": "Template Rendering",
      "description": "All three methods use self.render() to render templates and pass appropriate context data (welcome message/timestamp, statistics, reports list).",
      "max_score": 30
    },
    {
      "name": "View Registration",
      "description": "The view is properly registered with the Admin instance using admin.add_view() with the correct endpoint='/analytics' and name='Analytics' parameters.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-flask-admin

tile.json