Skip to content

Install

Pydantic-resolve is a light-weight wrapper library for pydantic, it can help you build complicated view data easily.

You only need to define your pydantic schemas/models and let resolvers/posts handle the rest.

Pydantic itself plays pretty well with OpenAPI and can seamlessly integrated with frontend with openapi-typescript-codegen, so that with pydantic-resolve you'll be able to construct accurate view data and transfer it to frontend.

if you are using pydantic v1:

pip install pydantic-resolve

if you are using pydantic v2:

pip install pydantic2-resolve

They share a same set of APIs