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

{
  "context": "This criteria evaluates how well the engineer uses SQLModel's database engine and table creation capabilities. The focus is on proper usage of create_engine(), SQLModel class definitions with table=True, and metadata.create_all() for schema generation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "SQLModel class usage",
      "description": "Uses SQLModel as base class for both Project and Task models with table=True parameter to mark them as database tables",
      "max_score": 20
    },
    {
      "name": "Field definitions",
      "description": "Uses Field() function appropriately for configuring primary keys (primary_key=True) and foreign keys (foreign_key parameter) in model definitions",
      "max_score": 20
    },
    {
      "name": "Engine creation",
      "description": "Uses create_engine() function with appropriate SQLite connection string (e.g., 'sqlite:///:memory:' or similar)",
      "max_score": 25
    },
    {
      "name": "Table creation",
      "description": "Uses SQLModel.metadata.create_all(engine) or similar to generate database tables from model definitions",
      "max_score": 25
    },
    {
      "name": "Session initialization",
      "description": "Creates and returns a Session object bound to the engine for database operations",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-sqlmodel

tile.json