Pretty-print tabular data in Python with extensive formatting options and output format support.
Overall
score
69%
{
"context": "This criteria evaluates how well an engineer uses the python-tabulate package's module-level configuration capabilities, specifically the WIDE_CHARS_MODE and PRESERVE_WHITESPACE global settings to control text width calculations and formatting behavior.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import tabulate module",
"description": "The solution imports the tabulate module (e.g., 'import tabulate') to access module-level configuration settings",
"max_score": 10
},
{
"name": "Use WIDE_CHARS_MODE",
"description": "The solution accesses and modifies the tabulate.WIDE_CHARS_MODE module-level variable to enable/disable wide character support",
"max_score": 25
},
{
"name": "Use PRESERVE_WHITESPACE",
"description": "The solution accesses and modifies the tabulate.PRESERVE_WHITESPACE module-level variable to control whitespace handling",
"max_score": 25
},
{
"name": "Get configuration state",
"description": "The solution reads the current values of tabulate.WIDE_CHARS_MODE and/or tabulate.PRESERVE_WHITESPACE to implement getter functions",
"max_score": 15
},
{
"name": "Set configuration state",
"description": "The solution correctly sets tabulate.WIDE_CHARS_MODE and tabulate.PRESERVE_WHITESPACE to implement setter functions that affect subsequent operations",
"max_score": 15
},
{
"name": "Utilize tabulate function",
"description": "The solution uses the tabulate() function or related tabulate package functionality that is affected by the module-level configuration settings to demonstrate width calculations",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-tabulatedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10