Quick start

Install

Installation from PyPI

pip install pydantic-extra

To work with databases (pydantic_extra.db, pydantic_extra.adb) required

pip install pydantic-extra[db]

For full functionality of pydantic_extra.db (for Mysql)

pip install pydantic-extra[db,db_full]

For full functionality of pydantic_extra.adb (for AsyncMysql, AsyncSqlite)

pip install pydantic-extra[db,adb_full]

To install all optional dependencies, use the full group

pip install pydantic-extra[full]

Using

When validating, use the same as the other types. See the available functions in the API.