CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-dicttoxml

Converts a Python dictionary or other native data type into a valid XML string.

86

0.98x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates the ability to route dicttoxml's debug logging to a caller-specified file while converting Python payloads to XML bytes. Focuses on correct use of dicttoxml.set_debug toggles and ensuring debug-enabled runs write log output while quiet runs avoid touching the log path.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "XML conversion",
      "description": "Uses dicttoxml.dicttoxml (or equivalent import) to convert the provided payload and return bytes with the default root wrapper, matching the inputs described in the spec.",
      "max_score": 30
    },
    {
      "name": "Enable logging",
      "description": "Invokes dicttoxml.set_debug(debug=True, filename=the caller-provided path) before conversion when debugging is requested so debug output targets that file.",
      "max_score": 30
    },
    {
      "name": "Disable logging",
      "description": "Uses dicttoxml.set_debug(debug=False, filename=the provided path or default) or equivalent to ensure debug logging is off when requested while still performing the conversion.",
      "max_score": 20
    },
    {
      "name": "Log file content",
      "description": "When debug is enabled, ensures the chosen log file is created and contains non-empty debug content by the end of the conversion (including flushing/closing handlers as needed).",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-dicttoxml

tile.json