A powerful tool to build nested view data.<p>based on pydantic, pydantic-resolve uses declaretive way to define and resolve (fetch) data from top to bottom<p>and provides post-process hooks from bottom to top (friendly for aggregation & calculation)<p>it also provides visibility control over all fields.<p>concept diagram:
<a href="https://raw.githubusercontent.com/allmonday/pydantic-resolve/master/doc/imgs/concept.png" rel="nofollow">https://raw.githubusercontent.com/allmonday/pydantic-resolve...</a>
inspired by graphql (define schema in declaretive way)<p>however gql itself only walks from top to bottom, which lack the ability to change data after it's descdenants are resolved.<p>pydantic-resolve is progressive, this means you don't need to introduce a big framework to build a nested view data, all you need to do is just:<p>- simpilify your query of root data (no complex sql any more, then you can reuse it)<p>- define the related data you wanted, and then let resolver to fetch it.<p>that's all~