CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-sqlmodel

SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.

Overall
score

85%

Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how effectively the engineer uses SQLModel's query building capabilities, specifically the select() function and its methods for filtering, sorting, and pagination. The focus is on proper usage of SQLModel's query API rather than general coding practices.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "select() usage",
      "description": "Uses select() function to create query statements for all query functions (e.g., select(Product))",
      "max_score": 15
    },
    {
      "name": "where() filtering",
      "description": "Uses .where() method with comparison operators on Product model fields for filtering (e.g., Product.price > min_price, Product.stock_quantity < threshold)",
      "max_score": 20
    },
    {
      "name": "Multiple where() conditions",
      "description": "Uses multiple .where() clauses or multiple arguments to where() for AND conditions in get_filtered_products()",
      "max_score": 10
    },
    {
      "name": "or_() for categories",
      "description": "Uses or_() function or .in_() method for OR logic when filtering by multiple categories in get_products_by_categories()",
      "max_score": 15
    },
    {
      "name": "order_by() sorting",
      "description": "Uses .order_by() method with Product model fields for sorting, and desc() function when descending=True in get_products_sorted_by_price()",
      "max_score": 15
    },
    {
      "name": "offset() pagination",
      "description": "Uses .offset() method to skip records for pagination in get_paginated_products()",
      "max_score": 10
    },
    {
      "name": "limit() pagination",
      "description": "Uses .limit() method to restrict number of results for pagination in get_paginated_products()",
      "max_score": 10
    },
    {
      "name": "session.exec() execution",
      "description": "Uses session.exec() method to execute select statements and retrieves results with .all() or similar methods",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-sqlmodel

tile.json