{
  "id": "task_libraries:data-validation/python",
  "path": "/exapedia/python-data-validation-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python data validation libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python data validation libraries check that incoming data has the expected structure and types before an application uses it. A validator either builds typed objects from annotated classes or checks a plain dictionary against a separate schema. These libraries let APIs and AI agents reject malformed input before it reaches application logic."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python data validation libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pydantic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F112"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F116"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jsonschema",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastjsonschema",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#marshmallow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dataclasses-json",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#msgspec",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cattrs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#schema",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pydantic",
          "label": [
            {
              "t": "text",
              "text": "Pydantic"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F113"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Annotation-defined records",
            "Converts numeric strings"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pydantic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F112"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jsonschema",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastjsonschema",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#marshmallow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dataclasses-json",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#msgspec",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cattrs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#schema",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pydantic",
          "name": [
            {
              "t": "fact",
              "fact": "F112"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pydantic/pydantic"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pydantic"
            },
            {
              "label": "Docs",
              "href": "https://docs.pydantic.dev/latest/concepts/models/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.pydantic.dev/latest/concepts/models/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F112"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fastapi/fastapi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F125"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def validate(\n    self,\n    value: Any,\n    values: dict[str, Any] = {},  # noqa: B006\n    *,\n    loc: tuple[int | str, ...] = (),\n) -> tuple[Any, list[dict[str, Any]]]:\n    try:\n        return (\n            self._type_adapter.validate_python(value, from_attributes=True),\n            [],\n        )\n    except ValidationError as exc:\n        return None, _regenerate_error_with_loc(\n            errors=exc.errors(include_url=False), loc_prefix=loc\n        )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fastapi/fastapi/blob/5add7a458d629b07311d48261f696b5ac2bb9a5f/fastapi/_compat/v2.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F124"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pydantic&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F112"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pydantic import BaseModel\n\nclass User(BaseModel):\n    age: int\n\nuser = User.model_validate({\"age\": \"42\"})\nprint(user.age)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.pydantic.dev/latest/concepts/models/",
                  "label": [
                    {
                      "t": "text",
                      "text": "models.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F117"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jsonschema",
          "name": [
            {
              "t": "fact",
              "fact": "F127"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/python-jsonschema/jsonschema"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/jsonschema"
            },
            {
              "label": "Docs",
              "href": "https://python-jsonschema.readthedocs.io/en/stable/validate/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://python-jsonschema.readthedocs.io/en/stable/validate/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jupyter/nbformat",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def iter_errors(self, data, schema=None):\n    \"\"\"Iterate over errors in incoming data.\"\"\"\n    if schema is None:\n        return self._default_validator.iter_errors(data)\n    if hasattr(self._default_validator, \"evolve\"):\n        return self._default_validator.evolve(schema=schema).iter_errors(data)\n    return self._default_validator.iter_errors(data, schema)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jupyter/nbformat/blob/cfb73afdd2a7f358953f2a34f747fd0d0e9d6288/nbformat/json_compat.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F139"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20jsonschema&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from jsonschema import validate\n\nschema = {\"type\": \"object\", \"properties\": {\"age\": {\"type\": \"integer\"}}, \"required\": [\"age\"]}\nvalidate({\"age\": 42}, schema)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://python-jsonschema.readthedocs.io/en/stable/validate/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fastjsonschema",
          "name": [
            {
              "t": "fact",
              "fact": "F142"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/horejsek/python-fastjsonschema"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/fastjsonschema"
            },
            {
              "label": "Docs",
              "href": "https://horejsek.github.io/python-fastjsonschema/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://horejsek.github.io/python-fastjsonschema/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F142"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jupyter/nbformat",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def validate(self, data):\n    \"\"\"Validate incoming data.\"\"\"\n    try:\n        self._validator(data)\n    except _JsonSchemaException as error:\n        raise ValidationError(str(error), schema_path=error.path) from error",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jupyter/nbformat/blob/cfb73afdd2a7f358953f2a34f747fd0d0e9d6288/nbformat/json_compat.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=fastjsonschema%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F142"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import fastjsonschema\n\nvalidate = fastjsonschema.compile({\"type\": \"object\", \"properties\": {\"age\": {\"type\": \"integer\"}}, \"required\": [\"age\"]})\nprint(validate({\"age\": 42}))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://horejsek.github.io/python-fastjsonschema/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "marshmallow",
          "name": [
            {
              "t": "fact",
              "fact": "F159"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/marshmallow-code/marshmallow"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/marshmallow"
            },
            {
              "label": "Docs",
              "href": "https://marshmallow.readthedocs.io/en/stable/quickstart.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F65"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://marshmallow.readthedocs.io/en/stable/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F159"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/marshmallow-code/webargs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _get_schema(self, argmap: ArgMap[Request], req: Request) -> ma.Schema:\n    \"\"\"Return a `marshmallow.Schema` for the given argmap and request.\n\n    :param argmap: Either a `marshmallow.Schema`, `dict`\n        of argname -> `marshmallow.fields.Field` pairs, or a callable that returns\n        a `marshmallow.Schema` instance.\n    :param req: The request object being parsed.\n    :rtype: marshmallow.Schema\n    \"\"\"\n    if isinstance(argmap, ma.Schema):\n        schema: ma.Schema = argmap\n    elif isinstance(argmap, type) and issubclass(argmap, ma.Schema):\n        schema = argmap()\n    elif isinstance(argmap, collections.abc.Mapping):\n        argmap_dict = argmap if isinstance(argmap, dict) else dict(argmap)\n        schema = self.schema_class.from_dict(argmap_dict)()\n    elif callable(argmap):\n        argmap_callable: ArgMapCallable[Request] = argmap  # type: ignore[assignment]\n        schema = argmap_callable(req)\n    else:\n        raise TypeError(f\"argmap was of unexpected type {type(argmap)}\")\n    return schema\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/marshmallow-code/webargs/blob/0a3f9a2034c06a8e86402653748c8b5b06c40146/src/webargs/core.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F171"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20marshmallow&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F159"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from marshmallow import Schema, fields\n\nUserSchema = Schema.from_dict({\"age\": fields.Integer(required=True)})\nuser = UserSchema().load({\"age\": \"42\"})\nprint(user)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://marshmallow.readthedocs.io/en/stable/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F164"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dataclasses-json",
          "name": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lidatong/dataclasses-json"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/dataclasses-json"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/lidatong/dataclasses-json",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/facebookresearch/fbpcs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@classmethod\ndef loads_schema(cls, json_schema_str: str) -> \"PrivateComputationInstance\":\n    json_object = json.loads(json_schema_str)\n\n    # create infra config\n    infra_config: InfraConfig = InfraConfig.schema().loads(\n        json.dumps(json_object[\"infra_config\"]),\n        unknown=marshmallow.utils.EXCLUDE,\n        many=None,\n    )\n\n    # create product config\n    product_config: ProductConfig\n    product_cleaned_json = False\n    product_json = json_object[\"product_config\"]\n\n    while not product_cleaned_json:\n        # delete json contents which are not in config class\n        # this makes old PCInstance still valid when deleting attributes\n        try:\n            product_config = cls._product_map(json_object).loads(\n                json.dumps(product_json),\n                unknown=marshmallow.utils.EXCLUDE,\n                many=None,\n            )\n            product_cleaned_json = True\n        except marshmallow.exceptions.ValidationError as err:\n            logging.warning(f\"delete unknown contents: {err.args[0]}\")\n            cls._prune_json(product_json, err.args[0])\n\n    return PrivateComputationInstance(\n        infra_config=infra_config, product_config=product_config\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/facebookresearch/fbpcs/blob/f7c0847de52003552b3976e78acaf9836feedadb/fbpcs/private_computation/entity/private_computation_instance.py#L82-L114",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F188"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=dataclasses-json%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from dataclasses import dataclass\nfrom dataclasses_json import dataclass_json\n\n@dataclass_json\n@dataclass\nclass User:\n    name: str\n\nuser = User.schema().load({\"name\": \"Ada\"})\nprint(user.name)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/lidatong/dataclasses-json",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "msgspec",
          "name": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/msgspec/msgspec"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/msgspec"
            },
            {
              "label": "Docs",
              "href": "https://msgspec.dev/api"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F198"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://msgspec.dev/api",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vllm-project/vllm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _convert_result(self, result_type: Sequence[str], result: Any) -> Any:\n    if result_type is None:\n        return result\n    mod_name, name = result_type\n    mod = importlib.import_module(mod_name)\n    result_type = getattr(mod, name)\n    return msgspec.convert(result, result_type, dec_hook=self.dec_hook)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vllm-project/vllm/blob/6f687a0836363e636740919b0ee4510aff80098f/vllm/v1/serial_utils.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=msgspec%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import msgspec\n\nclass User(msgspec.Struct):\n    age: int\n\nuser = msgspec.convert({\"age\": 42}, User)\nprint(user.age)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://msgspec.dev/api",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cattrs",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/python-attrs/cattrs"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/cattrs"
            },
            {
              "label": "Docs",
              "href": "https://catt.rs/en/stable/validation.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://catt.rs/en/stable/validation.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/lsprotocol",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_converter(\n    converter: Optional[cattrs.Converter] = None,\n) -> cattrs.Converter:\n    \"\"\"Adds cattrs hooks for LSP lsp_types to the given converter.\"\"\"\n    if converter is None:\n        converter = cattrs.Converter()\n    return _hooks.register_hooks(converter)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/lsprotocol/blob/24d45ab059a174344c8de21672aa1c2f1be3c99f/packages/python/lsprotocol/converters.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=cattrs%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from dataclasses import dataclass\nimport cattrs\n\n@dataclass\nclass User:\n    age: int\n\nuser = cattrs.structure({\"age\": \"42\"}, User)\nprint(user.age)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://catt.rs/en/stable/validation.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "validation.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "schema",
          "name": [
            {
              "t": "fact",
              "fact": "F225"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/keleshev/schema"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/schema"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/keleshev/schema",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F225"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/griptape-ai/griptape",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def __extract_schema_from_ref(self, schema: dict, schema_ref: dict) -> Schema:\n    \"\"\"Extracts a schema from a $ref if present, resolving it into native schema properties.\"\"\"\n    if \"$ref\" in schema_ref:\n        # Resolve the reference and retrieve the schema data\n        ref_path = schema_ref[\"$ref\"].split(\"/\")[-1]\n        schema_data = schema[\"components\"][\"schemas\"].get(ref_path, {})\n    else:\n        # Use the provided schema directly if no $ref is found\n        schema_data = schema_ref\n\n    # Convert the schema_data dictionary into a Schema with its properties\n    properties = {}\n    for prop, prop_info in schema_data.get(\"properties\", {}).items():\n        prop_type = prop_info.get(\"type\", \"string\")\n        prop_description = prop_info.get(\"description\", \"\")\n        schema_prop = Literal(prop, description=prop_description)\n        is_optional = prop not in schema_data.get(\"required\", [])\n\n        if is_optional:\n            schema_prop = SchemaOptional(schema_prop)\n\n        properties[schema_prop] = self._map_openapi_type_to_python(prop_type, prop_info)\n\n    return Schema(properties)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/griptape-ai/griptape/blob/bfa411615c655ce1787282c5713e9cd0d9153069/griptape/tools/griptape_cloud_tool/tool.py#L87-L110",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=schema%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F225"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from schema import Schema, And, Use\n\nvalidate = Schema({\"age\": And(Use(int), lambda value: value >= 0)})\nprint(validate.validate({\"age\": \"42\"}))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/keleshev/schema",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F230"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python data validation library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pydantic",
          "label": [
            {
              "t": "text",
              "text": "Pydantic"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most applications that model data as annotated classes. "
        },
        {
          "t": "link",
          "href": "#jsonschema",
          "label": [
            {
              "t": "text",
              "text": "jsonschema"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits data that must match a portable JSON Schema document. "
        },
        {
          "t": "link",
          "href": "#msgspec",
          "label": [
            {
              "t": "text",
              "text": "msgspec"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits services that decode and validate JSON or MessagePack at high speed."
        }
      ]
    },
    {
      "q": "What is Pydantic?",
      "a": [
        {
          "t": "link",
          "href": "#pydantic",
          "label": [
            {
              "t": "text",
              "text": "Pydantic"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds validated Python models from annotated field types. It coerces input to those types and returns structured errors, and strict mode narrows that coercion."
        }
      ]
    },
    {
      "q": "Pydantic vs msgspec: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pydantic",
          "label": [
            {
              "t": "text",
              "text": "Pydantic"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits application models with rich validation and coercion. "
        },
        {
          "t": "link",
          "href": "#msgspec",
          "label": [
            {
              "t": "text",
              "text": "msgspec"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits serialization paths, with typed decoding into structs and built-in support for JSON, MessagePack, YAML, and TOML."
        }
      ]
    },
    {
      "q": "Pydantic vs marshmallow: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pydantic",
          "label": [
            {
              "t": "text",
              "text": "Pydantic"
            }
          ]
        },
        {
          "t": "text",
          "text": " declares fields through type annotations on the model. "
        },
        {
          "t": "link",
          "href": "#marshmallow",
          "label": [
            {
              "t": "text",
              "text": "marshmallow"
            }
          ]
        },
        {
          "t": "text",
          "text": " declares fields explicitly on a separate schema that deserializes, validates, and serializes objects."
        }
      ]
    },
    {
      "q": "How do I validate JSON against a schema in Python?",
      "a": [
        {
          "t": "link",
          "href": "#jsonschema",
          "label": [
            {
              "t": "text",
              "text": "jsonschema"
            }
          ]
        },
        {
          "t": "text",
          "text": " checks a parsed object against a JSON Schema document and reports each violation. "
        },
        {
          "t": "link",
          "href": "#fastjsonschema",
          "label": [
            {
              "t": "text",
              "text": "fastjsonschema"
            }
          ]
        },
        {
          "t": "text",
          "text": " compiles a schema into a reusable validation function."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, pydantic",
      "display": "Pydantic",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, pydantic",
      "display": "842.5M",
      "asOf": "2026-11-12"
    },
    "F3": {
      "label": "License, pydantic",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, pydantic",
      "display": "2.14.3, Nov 2026",
      "asOf": "2026-11-05"
    },
    "F5": {
      "label": "Package release date, pydantic",
      "display": "Nov 2026",
      "asOf": "2026-11-05"
    },
    "F6": {
      "label": "Repository stars, pydantic",
      "display": "29.5K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Nested records, pydantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Coercion, pydantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Custom rules, pydantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Multiple errors, pydantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, pydantic",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, pydantic",
      "display": "pip install pydantic",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, pydantic",
      "display": "Builds validated Python models from annotated field types.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, pydantic",
      "display": "Builds nested typed models",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, pydantic",
      "display": "Use model classes inside annotations to validate hierarchical records.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, pydantic",
      "display": "Serializes models directly as JSON",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, pydantic",
      "display": "Use model_dump_json to encode supported model values as JSON.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, pydantic",
      "display": "Validation can change input types",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, pydantic",
      "display": "Enable strict mode when values must already have the required types.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, pydantic",
      "display": "from datetime import datetime\n\nfrom pydantic import BaseModel, PositiveInt\n\nclass User(BaseModel):\n    id: int  # (1)\n    name: str = 'John Doe'  # (2)\n    signup_ts: datetime | None  # (3)\n    tastes: dict[str, PositiveInt]  # (4)\n\nexternal_data = {\n    'id': 123,\n    'signup_ts': '2019-06-01 12:22',  # (5)\n    'tastes': {\n        'wine': 9,\n        b'cheese': 7,  # (6)\n        'cabbage': '1',  # (7)\n    },\n}\n\nuser = User(**external_data)  # (8)\n\nprint(user.id)  # (9)\n#> 123\nprint(user.model_dump())  # (10)\n\"\"\"\n{\n    'id': 123,\n    'name': 'John Doe',\n    'signup_ts': datetime.datetime(2019, 6, 1, 12, 22),\n    'tastes': {'wine': 9, 'cheese': 7, 'cabbage': 1},\n}\n\"\"\"\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, pydantic",
      "display": "def validate(\n    self,\n    value: Any,\n    values: dict[str, Any] = {},  # noqa: B006\n    *,\n    loc: tuple[int | str, ...] = (),\n) -> tuple[Any, list[dict[str, Any]]]:\n    try:\n        return (\n            self._type_adapter.validate_python(value, from_attributes=True),\n            [],\n        )\n    except ValidationError as exc:\n        return None, _regenerate_error_with_loc(\n            errors=exc.errors(include_url=False), loc_prefix=loc\n        )\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, pydantic",
      "display": "v2.py · validate()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, pydantic",
      "display": "fastapi/fastapi",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, fastapi/fastapi",
      "display": "104.7K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, fastapi/fastapi",
      "display": "Nov 2026",
      "asOf": "2026-11-11"
    },
    "F26": {
      "label": "Library name, jsonschema",
      "display": "jsonschema",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, jsonschema",
      "display": "471.1M",
      "asOf": "2026-11-12"
    },
    "F28": {
      "label": "License, jsonschema",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, jsonschema",
      "display": "4.26.0, Jan 2026",
      "asOf": "2026-01-07"
    },
    "F30": {
      "label": "Package release date, jsonschema",
      "display": "Jan 2026",
      "asOf": "2026-01-07"
    },
    "F31": {
      "label": "Repository stars, jsonschema",
      "display": "5.0K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Nested records, jsonschema",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Coercion, jsonschema",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Custom rules, jsonschema",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Multiple errors, jsonschema",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, jsonschema",
      "display": "pip install jsonschema",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, jsonschema",
      "display": "Checks data instances against JSON Schema rules.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, jsonschema",
      "display": "Iterates structured validation errors",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, jsonschema",
      "display": "Use iter_errors to inspect each validation issue lazily.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, jsonschema",
      "display": "Extends existing validator classes",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, jsonschema",
      "display": "Add custom keyword handlers by extending a validator class.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, jsonschema",
      "display": "Formats require explicit checking",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, jsonschema",
      "display": "Configure a FormatChecker when format values must be validated.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, jsonschema",
      "display": "Defaults do not populate data",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, jsonschema",
      "display": "The default keyword does not fill missing properties during validation.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, jsonschema",
      "display": "from jsonschema import Draft202012Validator\n\nschema = {\n    \"items\": {\n        \"anyOf\": [\n            {\"type\": \"string\", \"maxLength\": 2},\n            {\"type\": \"integer\", \"minimum\": 5}\n        ]\n    }\n}\ninstance = [{}, 3, \"foo\"]\nv = Draft202012Validator(schema)\nerrors = sorted(v.iter_errors(instance), key=lambda e: e.path)\n\n\nfor error in errors:\n    print(error.message)\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart source reference, jsonschema",
      "display": "Draft202012Validator()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, jsonschema",
      "display": "def iter_errors(self, data, schema=None):\n    \"\"\"Iterate over errors in incoming data.\"\"\"\n    if schema is None:\n        return self._default_validator.iter_errors(data)\n    if hasattr(self._default_validator, \"evolve\"):\n        return self._default_validator.evolve(schema=schema).iter_errors(data)\n    return self._default_validator.iter_errors(data, schema)\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, jsonschema",
      "display": "json_compat.py · iter_errors()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, jsonschema",
      "display": "jupyter/nbformat",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, jupyter/nbformat",
      "display": "315",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, jupyter/nbformat",
      "display": "Nov 2026",
      "asOf": "2026-11-02"
    },
    "F53": {
      "label": "Library name, marshmallow",
      "display": "Marshmallow",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, marshmallow",
      "display": "84.1M",
      "asOf": "2026-11-12"
    },
    "F55": {
      "label": "License, marshmallow",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, marshmallow",
      "display": "4.4.0, Nov 2026",
      "asOf": "2026-11-04"
    },
    "F57": {
      "label": "Package release date, marshmallow",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F58": {
      "label": "Repository stars, marshmallow",
      "display": "7.2K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Nested records, marshmallow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Coercion, marshmallow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Custom rules, marshmallow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Multiple errors, marshmallow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Output formats, marshmallow",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Install, marshmallow",
      "display": "pip install marshmallow",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "What it does, marshmallow",
      "display": "Validates and deserializes records, then serializes application objects through schemas.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, marshmallow",
      "display": "Represents nested object relationships",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, marshmallow",
      "display": "Use Nested fields for related objects and lists of related records.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths lead, marshmallow",
      "display": "Serializes objects to JSON",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths, marshmallow",
      "display": "Use dumps to return a JSON-encoded string.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, marshmallow",
      "display": "Dumping skips validation",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, marshmallow",
      "display": "Validate inputs with load before relying on serialized output.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations lead, marshmallow",
      "display": "Unknown fields raise by default",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations, marshmallow",
      "display": "Set unknown=EXCLUDE or INCLUDE when extra input fields are expected.",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Quickstart, marshmallow",
      "display": "from dataclasses import dataclass, field\nimport datetime as dt\n\n@dataclass\nclass User:\n    name: str\n    email: str\n    created_at: dt.datetime = field(default_factory=dt.datetime.now)\n\n\nfrom marshmallow import Schema, fields\n\nclass UserSchema(Schema):\n    name = fields.Str()\n    email = fields.Email()\n    created_at = fields.DateTime()\n\n\nfrom pprint import pprint\n\nuser = User(name=\"Monty\", email=\"monty@python.org\")\nschema = UserSchema()\nresult = schema.dump(user)\npprint(result)\n# {\"name\": \"Monty\",\n#  \"email\": \"monty@python.org\",\n#  \"created_at\": \"2014-08-17T14:54:16.049594+00:00\"}\n\n\njson_result = schema.dumps(user)\nprint(json_result)\n# '{\"name\": \"Monty\", \"email\": \"monty@python.org\", \"created_at\": \"2014-08-17T14:54:16.049594+00:00\"}'\n\n\nfrom pprint import pprint\n\nuser_data = {\n    \"created_at\": \"2014-08-11T05:26:03.869245\",\n    \"email\": \"ken@yahoo.com\",\n    \"name\": \"Ken\",\n}\nschema = UserSchema()\nresult = schema.load(user_data)\npprint(result)\n# {'name': 'Ken',\n#  'email': 'ken@yahoo.com',\n#  'created_at': datetime.datetime(2014, 8, 11, 5, 26, 3, 869245)},\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function, marshmallow",
      "display": "def _get_schema(self, argmap: ArgMap[Request], req: Request) -> ma.Schema:\n    \"\"\"Return a `marshmallow.Schema` for the given argmap and request.\n\n    :param argmap: Either a `marshmallow.Schema`, `dict`\n        of argname -> `marshmallow.fields.Field` pairs, or a callable that returns\n        a `marshmallow.Schema` instance.\n    :param req: The request object being parsed.\n    :rtype: marshmallow.Schema\n    \"\"\"\n    if isinstance(argmap, ma.Schema):\n        schema: ma.Schema = argmap\n    elif isinstance(argmap, type) and issubclass(argmap, ma.Schema):\n        schema = argmap()\n    elif isinstance(argmap, collections.abc.Mapping):\n        argmap_dict = argmap if isinstance(argmap, dict) else dict(argmap)\n        schema = self.schema_class.from_dict(argmap_dict)()\n    elif callable(argmap):\n        argmap_callable: ArgMapCallable[Request] = argmap  # type: ignore[assignment]\n        schema = argmap_callable(req)\n    else:\n        raise TypeError(f\"argmap was of unexpected type {type(argmap)}\")\n    return schema\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function reference, marshmallow",
      "display": "core.py · _get_schema()",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project repository, marshmallow",
      "display": "marshmallow-code/webargs",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project stars, marshmallow-code/webargs",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project push date, marshmallow-code/webargs",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F80": {
      "label": "Library name, Cerberus",
      "display": "Cerberus",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Monthly downloads, Cerberus",
      "display": "5.2M",
      "asOf": "2026-11-12"
    },
    "F82": {
      "label": "License, Cerberus",
      "display": "ISC",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Package release, Cerberus",
      "display": "1.3.8, Nov 2025",
      "asOf": "2025-11-06"
    },
    "F84": {
      "label": "Package release date, Cerberus",
      "display": "Nov 2025",
      "asOf": "2025-11-06"
    },
    "F85": {
      "label": "Repository stars, Cerberus",
      "display": "3.3K",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Nested records, Cerberus",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Coercion, Cerberus",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Custom rules, Cerberus",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Multiple errors, Cerberus",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Install, Cerberus",
      "display": "pip install Cerberus",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "What it does, Cerberus",
      "display": "Validates and normalizes dictionary records through configurable rules.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, Cerberus",
      "display": "Normalizes values before validation",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, Cerberus",
      "display": "Apply coercion callables before checking the document against its rules.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths lead, Cerberus",
      "display": "Collects document validation issues",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths, Cerberus",
      "display": "Process the whole document and inspect its errors after validation.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, Cerberus",
      "display": "Fields are optional by default",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, Cerberus",
      "display": "Set required rules or require_all when missing fields must fail validation.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, Cerberus",
      "display": "import cerberus\nValidator = cerberus.Validator\nv = Validator()\n\nv.schema = {'amount': {'type': 'integer'}}\nv.validate({'amount': '1'})\nv.schema = {'amount': {'type': 'integer', 'coerce': int}}\nv.validate({'amount': '1'})\nv.document\nto_bool = lambda v: v.lower() in ('true', '1')\nv.schema = {'flag': {'type': 'boolean', 'coerce': (str, to_bool)}}\nv.validate({'flag': 'true'})\nv.document\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Typed application records",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose pydantic",
      "display": "nested models",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "typed application records",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Object serialization workflows",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose marshmallow",
      "display": "nested schemas",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "object serialization workflows",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "JSON Schema validation",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose jsonschema",
      "display": "error iteration",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "JSON Schema validation",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Dictionary normalization",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose Cerberus",
      "display": "coercion rules",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "dictionary normalization",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Page introduction",
      "display": "Python data validation libraries let application developers check data against application rules.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Library name, pydantic",
      "display": "Pydantic",
      "asOf": "2026-11-20"
    },
    "F113": {
      "label": "Monthly downloads, pydantic",
      "display": "1.2B",
      "asOf": "2026-11-20"
    },
    "F114": {
      "label": "License, pydantic",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F115": {
      "label": "Package release, pydantic",
      "display": "2.14.3",
      "asOf": "2026-11-20"
    },
    "F116": {
      "label": "Package release date, pydantic",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F117": {
      "label": "Install, pydantic",
      "display": "python -m pip install pydantic==2.14.3",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Quickstart, pydantic",
      "display": "from pydantic import BaseModel\n\nclass User(BaseModel):\n    age: int\n\nuser = User.model_validate({\"age\": \"42\"})\nprint(user.age)\n",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "Repository stars, pydantic",
      "display": "29.6K",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Annotation-defined records, pydantic",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "Converts numeric strings, pydantic",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Schema/integration model, pydantic",
      "display": "Type-annotated application models with validation/coercion and structured errors; strict mode can narrow coercion.",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Project function, pydantic",
      "display": "def validate(\n    self,\n    value: Any,\n    values: dict[str, Any] = {},  # noqa: B006\n    *,\n    loc: tuple[int | str, ...] = (),\n) -> tuple[Any, list[dict[str, Any]]]:\n    try:\n        return (\n            self._type_adapter.validate_python(value, from_attributes=True),\n            [],\n        )\n    except ValidationError as exc:\n        return None, _regenerate_error_with_loc(\n            errors=exc.errors(include_url=False), loc_prefix=loc\n        )\n",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Project source file, pydantic",
      "display": "fastapi/_compat/v2.py",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "Project full_name, pydantic",
      "display": "fastapi/fastapi",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Project stargazers_count, pydantic",
      "display": "104.9K",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Library name, jsonschema",
      "display": "jsonschema",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Monthly downloads, jsonschema",
      "display": "653.8M",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "License, jsonschema",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release, jsonschema",
      "display": "4.26.0",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release date, jsonschema",
      "display": "Jan 2026",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Install, jsonschema",
      "display": "python -m pip install jsonschema==4.26.0",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Quickstart, jsonschema",
      "display": "from jsonschema import validate\n\nschema = {\"type\": \"object\", \"properties\": {\"age\": {\"type\": \"integer\"}}, \"required\": [\"age\"]}\nvalidate({\"age\": 42}, schema)\n",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Repository stars, jsonschema",
      "display": "5.0K",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Annotation-defined records, jsonschema",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Converts numeric strings, jsonschema",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Schema/integration model, jsonschema",
      "display": "Validates existing objects against portable JSON Schema documents, including current2020-12 draft; validation does not normalize numeric strings.",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Project function, jsonschema",
      "display": "def iter_errors(self, data, schema=None):\n    \"\"\"Iterate over errors in incoming data.\"\"\"\n    if schema is None:\n        return self._default_validator.iter_errors(data)\n    if hasattr(self._default_validator, \"evolve\"):\n        return self._default_validator.evolve(schema=schema).iter_errors(data)\n    return self._default_validator.iter_errors(data, schema)\n",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project source file, jsonschema",
      "display": "nbformat/json_compat.py",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project full_name, jsonschema",
      "display": "jupyter/nbformat",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project stargazers_count, jsonschema",
      "display": "316",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Library name, fastjsonschema",
      "display": "fastjsonschema",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Monthly downloads, fastjsonschema",
      "display": "127.8M",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "License, fastjsonschema",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Package release, fastjsonschema",
      "display": "2.22.3",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Package release date, fastjsonschema",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Install, fastjsonschema",
      "display": "python -m pip install fastjsonschema==2.22.3",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Quickstart, fastjsonschema",
      "display": "import fastjsonschema\n\nvalidate = fastjsonschema.compile({\"type\": \"object\", \"properties\": {\"age\": {\"type\": \"integer\"}}, \"required\": [\"age\"]})\nprint(validate({\"age\": 42}))\n",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Official description, fastjsonschema",
      "display": "Implements JSON Schema validation in Python with a focus on speed.",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Quickstart source file, fastjsonschema",
      "display": "python-fastjsonschema",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Repository stars, fastjsonschema",
      "display": "504",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Annotation-defined records, fastjsonschema",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Converts numeric strings, fastjsonschema",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Schema/integration model, fastjsonschema",
      "display": "Compiles JSON Schema draft04/06/07 validation functions for reuse; implements defaults as a data transformation, unlike standard validator defaults.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project function, fastjsonschema",
      "display": "def validate(self, data):\n    \"\"\"Validate incoming data.\"\"\"\n    try:\n        self._validator(data)\n    except _JsonSchemaException as error:\n        raise ValidationError(str(error), schema_path=error.path) from error",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project source file, fastjsonschema",
      "display": "nbformat/json_compat.py",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project full_name, fastjsonschema",
      "display": "jupyter/nbformat",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project stargazers_count, fastjsonschema",
      "display": "316",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Library name, marshmallow",
      "display": "marshmallow",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Monthly downloads, marshmallow",
      "display": "92.3M",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "License, marshmallow",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Package release, marshmallow",
      "display": "4.4.0",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release date, marshmallow",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Install, marshmallow",
      "display": "python -m pip install marshmallow==4.4.0",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Quickstart, marshmallow",
      "display": "from marshmallow import Schema, fields\n\nUserSchema = Schema.from_dict({\"age\": fields.Integer(required=True)})\nuser = UserSchema().load({\"age\": \"42\"})\nprint(user)\n",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Repository stars, marshmallow",
      "display": "7.2K",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Annotation-defined records, marshmallow",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Converts numeric strings, marshmallow",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Schema/integration model, marshmallow",
      "display": "Explicit field-based schemas for deserialization, validation, and object serialization; annotation inference is not its native declaration interface.",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project function, marshmallow",
      "display": "def _get_schema(self, argmap: ArgMap[Request], req: Request) -> ma.Schema:\n    \"\"\"Return a `marshmallow.Schema` for the given argmap and request.\n\n    :param argmap: Either a `marshmallow.Schema`, `dict`\n        of argname -> `marshmallow.fields.Field` pairs, or a callable that returns\n        a `marshmallow.Schema` instance.\n    :param req: The request object being parsed.\n    :rtype: marshmallow.Schema\n    \"\"\"\n    if isinstance(argmap, ma.Schema):\n        schema: ma.Schema = argmap\n    elif isinstance(argmap, type) and issubclass(argmap, ma.Schema):\n        schema = argmap()\n    elif isinstance(argmap, collections.abc.Mapping):\n        argmap_dict = argmap if isinstance(argmap, dict) else dict(argmap)\n        schema = self.schema_class.from_dict(argmap_dict)()\n    elif callable(argmap):\n        argmap_callable: ArgMapCallable[Request] = argmap  # type: ignore[assignment]\n        schema = argmap_callable(req)\n    else:\n        raise TypeError(f\"argmap was of unexpected type {type(argmap)}\")\n    return schema\n",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project source file, marshmallow",
      "display": "src/webargs/core.py",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project full_name, marshmallow",
      "display": "marshmallow-code/webargs",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project stargazers_count, marshmallow",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Library name, dataclasses-json",
      "display": "dataclasses-json",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Monthly downloads, dataclasses-json",
      "display": "50.6M",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "License, dataclasses-json",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Package release, dataclasses-json",
      "display": "0.6.7",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Package release date, dataclasses-json",
      "display": "Jun 2024",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Install, dataclasses-json",
      "display": "python -m pip install dataclasses-json==0.6.7 \"marshmallow>=3.18,<4\"",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart, dataclasses-json",
      "display": "from dataclasses import dataclass\nfrom dataclasses_json import dataclass_json\n\n@dataclass_json\n@dataclass\nclass User:\n    name: str\n\nuser = User.schema().load({\"name\": \"Ada\"})\nprint(user.name)\n",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Official description, dataclasses-json",
      "display": "Serializes dataclasses to and from JSON.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart source file, dataclasses-json",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Repository stars, dataclasses-json",
      "display": "1.5K",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Annotation-defined records, dataclasses-json",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Converts numeric strings, dataclasses-json",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Schema/integration model, dataclasses-json",
      "display": "Dataclass serialization with optional generated Marshmallow schema validation; from_json alone does not validate field annotations.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project function, dataclasses-json",
      "display": "@classmethod\ndef loads_schema(cls, json_schema_str: str) -> \"PrivateComputationInstance\":\n    json_object = json.loads(json_schema_str)\n\n    # create infra config\n    infra_config: InfraConfig = InfraConfig.schema().loads(\n        json.dumps(json_object[\"infra_config\"]),\n        unknown=marshmallow.utils.EXCLUDE,\n        many=None,\n    )\n\n    # create product config\n    product_config: ProductConfig\n    product_cleaned_json = False\n    product_json = json_object[\"product_config\"]\n\n    while not product_cleaned_json:\n        # delete json contents which are not in config class\n        # this makes old PCInstance still valid when deleting attributes\n        try:\n            product_config = cls._product_map(json_object).loads(\n                json.dumps(product_json),\n                unknown=marshmallow.utils.EXCLUDE,\n                many=None,\n            )\n            product_cleaned_json = True\n        except marshmallow.exceptions.ValidationError as err:\n            logging.warning(f\"delete unknown contents: {err.args[0]}\")\n            cls._prune_json(product_json, err.args[0])\n\n    return PrivateComputationInstance(\n        infra_config=infra_config, product_config=product_config\n    )\n",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project source file, dataclasses-json",
      "display": "fbpcs/private_computation/entity/private_computation_instance.py",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project full_name, dataclasses-json",
      "display": "facebookresearch/fbpcs",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project stargazers_count, dataclasses-json",
      "display": "151",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Library name, msgspec",
      "display": "msgspec",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Monthly downloads, msgspec",
      "display": "40.1M",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "License, msgspec",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Package release, msgspec",
      "display": "0.22.0",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release date, msgspec",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Install, msgspec",
      "display": "python -m pip install msgspec==0.22.0",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Quickstart, msgspec",
      "display": "import msgspec\n\nclass User(msgspec.Struct):\n    age: int\n\nuser = msgspec.convert({\"age\": 42}, User)\nprint(user.age)\n",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Official description, msgspec",
      "display": "Serializes and validates data, with built-in support for JSON, MessagePack, YAML, and TOML.",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Quickstart source file, msgspec",
      "display": "api",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Repository stars, msgspec",
      "display": "4.2K",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Annotation-defined records, msgspec",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Converts numeric strings, msgspec",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Schema/integration model, msgspec",
      "display": "Typed conversion/decoding into structs and other Python types; convert strict=False enables broader coercion.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project function, msgspec",
      "display": "def _convert_result(self, result_type: Sequence[str], result: Any) -> Any:\n    if result_type is None:\n        return result\n    mod_name, name = result_type\n    mod = importlib.import_module(mod_name)\n    result_type = getattr(mod, name)\n    return msgspec.convert(result, result_type, dec_hook=self.dec_hook)",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project source file, msgspec",
      "display": "vllm/v1/serial_utils.py",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project full_name, msgspec",
      "display": "vllm-project/vllm",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project stargazers_count, msgspec",
      "display": "90.9K",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Library name, cattrs",
      "display": "cattrs",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Monthly downloads, cattrs",
      "display": "38.6M",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "License, cattrs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Package release, cattrs",
      "display": "26.2.1",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release date, cattrs",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Install, cattrs",
      "display": "python -m pip install cattrs==26.2.1",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart, cattrs",
      "display": "from dataclasses import dataclass\nimport cattrs\n\n@dataclass\nclass User:\n    age: int\n\nuser = cattrs.structure({\"age\": \"42\"}, User)\nprint(user.age)\n",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Official description, cattrs",
      "display": "Adds composable support for complex attrs and dataclasses classes.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Quickstart source file, cattrs",
      "display": "validation.html",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Repository stars, cattrs",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Annotation-defined records, cattrs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Converts numeric strings, cattrs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Schema/integration model, cattrs",
      "display": "External typed structuring/validation around dataclasses/attrs without adding serialization methods to model classes.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project function, cattrs",
      "display": "def get_converter(\n    converter: Optional[cattrs.Converter] = None,\n) -> cattrs.Converter:\n    \"\"\"Adds cattrs hooks for LSP lsp_types to the given converter.\"\"\"\n    if converter is None:\n        converter = cattrs.Converter()\n    return _hooks.register_hooks(converter)",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project source file, cattrs",
      "display": "packages/python/lsprotocol/converters.py",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project full_name, cattrs",
      "display": "microsoft/lsprotocol",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project stargazers_count, cattrs",
      "display": "160",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Library name, schema",
      "display": "schema",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Monthly downloads, schema",
      "display": "21.9M",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "License, schema",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Package release, schema",
      "display": "0.7.8",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release date, schema",
      "display": "Oct 2025",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Install, schema",
      "display": "python -m pip install schema==0.7.8",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Quickstart, schema",
      "display": "from schema import Schema, And, Use\n\nvalidate = Schema({\"age\": And(Use(int), lambda value: value >= 0)})\nprint(validate.validate({\"age\": \"42\"}))\n",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Official description, schema",
      "display": "Validates data against schemas built from Python objects.",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Quickstart source file, schema",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Repository stars, schema",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Annotation-defined records, schema",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Converts numeric strings, schema",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Schema/integration model, schema",
      "display": "Python dictionary/type/callable schema expressions with composable And/Use conversions.",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project function, schema",
      "display": "def __extract_schema_from_ref(self, schema: dict, schema_ref: dict) -> Schema:\n    \"\"\"Extracts a schema from a $ref if present, resolving it into native schema properties.\"\"\"\n    if \"$ref\" in schema_ref:\n        # Resolve the reference and retrieve the schema data\n        ref_path = schema_ref[\"$ref\"].split(\"/\")[-1]\n        schema_data = schema[\"components\"][\"schemas\"].get(ref_path, {})\n    else:\n        # Use the provided schema directly if no $ref is found\n        schema_data = schema_ref\n\n    # Convert the schema_data dictionary into a Schema with its properties\n    properties = {}\n    for prop, prop_info in schema_data.get(\"properties\", {}).items():\n        prop_type = prop_info.get(\"type\", \"string\")\n        prop_description = prop_info.get(\"description\", \"\")\n        schema_prop = Literal(prop, description=prop_description)\n        is_optional = prop not in schema_data.get(\"required\", [])\n\n        if is_optional:\n            schema_prop = SchemaOptional(schema_prop)\n\n        properties[schema_prop] = self._map_openapi_type_to_python(prop_type, prop_info)\n\n    return Schema(properties)\n",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project source file, schema",
      "display": "griptape/tools/griptape_cloud_tool/tool.py",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project full_name, schema",
      "display": "griptape-ai/griptape",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project stargazers_count, schema",
      "display": "2.6K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Python data validation libraries Pydantic Marshmallow jsonschema Cerberus nested records coercion custom rules multiple errors code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
