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

{
  "context": "Evaluates how well the solution leverages dicttoxml to build the catalog XML while switching output types. Focuses on using dicttoxml's conversion options, especially return_bytes, rather than manual encoding or string building.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Library conversion",
      "description": "Uses dicttoxml.dicttoxml to serialize the product data with the provided root name instead of manual XML assembly.",
      "max_score": 25
    },
    {
      "name": "Byte default",
      "description": "Default code path leaves return_bytes=True (or omits it) so build_catalog_xml returns bytes without post-conversion encoding tweaks.",
      "max_score": 25
    },
    {
      "name": "Text toggle",
      "description": "When as_text is requested, calls dicttoxml.dicttoxml with return_bytes=False to obtain a Python string directly rather than decoding bytes afterward.",
      "max_score": 25
    },
    {
      "name": "Content parity",
      "description": "Uses the same dicttoxml parameters across modes (e.g., custom_root/item naming) so the str output matches bytes.decode() content aside from type.",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-dicttoxml

tile.json