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

{
  "context": "Evaluates how the solution uses the dicttoxml package to serialize payloads with XML-safe element names and escaped values in line with the spec. Scoring looks only at the specific dicttoxml API choices that govern naming, escaping, root handling, and return type.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "dicttoxml call",
      "description": "Uses dicttoxml.dicttoxml as the core serializer instead of hand-building XML or alternate libraries, passing the payload directly through it.",
      "max_score": 30
    },
    {
      "name": "Root/declaration",
      "description": "Maps the spec's root_name and include_declaration parameters to dicttoxml's custom_root and xml_declaration/include_encoding options so the root tag and declaration match caller intent.",
      "max_score": 20
    },
    {
      "name": "Name safety",
      "description": "Relies on dicttoxml's built-in key sanitization for spaces/digits (and its key fallback behavior) rather than manual tag construction that could leave invalid names.",
      "max_score": 25
    },
    {
      "name": "Escaping",
      "description": "Lets dicttoxml handle value escaping (keeping cdata=False unless explicitly required) so special characters become XML entities instead of literal markup.",
      "max_score": 15
    },
    {
      "name": "Byte output",
      "description": "Configures return_bytes on dicttoxml.dicttoxml so the function returns bytes as required, without unnecessary conversions to strings.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-dicttoxml

tile.json