CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-tabulate

Pretty-print tabular data in Python with extensive formatting options and output format support.

Overall
score

69%

Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This criteria evaluates how well the engineer uses the tabulate package's wide character (CJK) support capabilities, including proper integration with the wcwidth library for correct character width calculation and text alignment.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses tabulate function",
      "description": "The solution imports and uses the tabulate() function from the tabulate package to format the product data into a table",
      "max_score": 15
    },
    {
      "name": "Enables grid format",
      "description": "Uses an appropriate grid-style table format (e.g., 'grid', 'fancy_grid', 'simple_grid', etc.) via the tablefmt parameter to display borders as specified",
      "max_score": 10
    },
    {
      "name": "Provides proper headers",
      "description": "Uses the headers parameter of tabulate() to specify column headers (e.g., headers='keys' or explicit header list) for id, name, price, and description columns",
      "max_score": 10
    },
    {
      "name": "Wide character support",
      "description": "The solution correctly handles wide characters (CJK) by ensuring tabulate's WIDE_CHARS_MODE is enabled or that wcwidth library is available, allowing proper width calculation for Chinese, Japanese, and Korean characters",
      "max_score": 25
    },
    {
      "name": "Implements text wrapping",
      "description": "Uses the maxcolwidths parameter of tabulate() to control column width and enable automatic text wrapping for the description column (set to approximately 20 characters)",
      "max_score": 20
    },
    {
      "name": "Character boundary handling",
      "description": "The solution properly configures wrapping behavior to respect wide character boundaries, either by relying on tabulate's default behavior with wcwidth integration or by explicitly setting break_long_words parameter",
      "max_score": 15
    },
    {
      "name": "Correct alignment",
      "description": "The output table demonstrates proper alignment where CJK characters are treated as width 2 and ASCII characters as width 1, resulting in correctly aligned columns regardless of character types",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-tabulate

tile.json