Pydantic-resolve is a schema based, hierarchical solution for fetching and crafting data.
It combines the advantages of restful and graphql.
Advantages:
- use declaretive way to define view data, easy to maintain and develop
- enhance the traditional restful response, to support gql-like style data structure.
- provide post_method and other tools to craft resolved data.
If you are using pydantic v2, please use pydantic2-resolve instead.
pip install pydantic-resolve
https://allmonday.github.io/pydantic-resolve/reference_api/
https://github.com/allmonday/composition-oriented-development-pattern
poetry run python -m unittest # or
poetry run pytest # or
poetry run tox
poetry run coverage run -m pytest
poetry run coverage report -m