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-10/

{
  "context": "This criteria evaluates the engineer's proficiency in using Flask-Admin's search functionality with pattern matching. It focuses on proper configuration of searchable columns, implementing pattern matching prefixes, and enabling multi-column case-insensitive search.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "ModelView Implementation",
      "description": "Creates a ModelView class (or uses ModelView directly) for the Book model and registers it with the Admin instance using admin.add_view()",
      "max_score": 15
    },
    {
      "name": "Searchable Columns Configuration",
      "description": "Correctly configures the column_searchable_list attribute on the ModelView to include the required fields: title, author, isbn, and publisher",
      "max_score": 25
    },
    {
      "name": "Pattern Matching Support",
      "description": "The search implementation supports all three pattern matching modes: default contains search, exact match with '=' prefix, and starts-with using '^' prefix. This is automatically handled by Flask-Admin when column_searchable_list is configured.",
      "max_score": 20
    },
    {
      "name": "Case-Insensitive Search",
      "description": "Search is case-insensitive across all searchable fields. This is the default behavior when using column_searchable_list with SQLAlchemy (uses ILIKE), no additional configuration needed.",
      "max_score": 10
    },
    {
      "name": "Multi-Column Search",
      "description": "Search works across multiple columns simultaneously - when a user enters a search term, it searches across all columns specified in column_searchable_list and returns results matching any of them",
      "max_score": 10
    },
    {
      "name": "Test Implementation",
      "description": "Implements test cases that properly verify search functionality by creating test data, performing searches with different patterns (contains, exact with '=', starts-with with '^'), and asserting correct results",
      "max_score": 15
    },
    {
      "name": "Admin Interface Setup",
      "description": "Properly initializes the Flask application with Flask-Admin by creating an Admin instance with the Flask app and correctly setting up the database with Flask-SQLAlchemy",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-flask-admin

tile.json