Installation#

This part of the documentation covers the installation of pydantic-xml library.

Installation using pip#

To install pydantic-xml, run:

$ pip install pydantic-xml

Optional dependencies#

pydantic-xml library supports lxml as an xml serialization backend. If you wish to use lxml instead of standard xml.etree.ElementTree parser install lxml extra:

$ pip install pydantic-xml[lxml]