Skip to content

sanic-dantic

Build Status Downloads PyPI - Python Version PyPI PyPI - License Docs

sanic-dantic is a request parameter check and parsing library based on the sanic framework. It is based on pydantic and can help developers quickly check and get request parameters.

Installation

You can install sanic-dantic through pip:

pip install sanic-dantic

You can also install it through the source code:

pip install git+https://github.com/miss85246/sanic-dantic.git

Requirements

sanic-dantic depends on sanic and pydantic, their specific versions are:

sanic >= 20.3.0
pydantic >= 1.7.3

more pydantic usage can see pydantic documentation

more sanic-dantic advanced usage can see sanic-dantic documentation

License

sanic-dantic is licensed under the GPL-3.0 License. If you want to use sanic-dantic for secondary development or commercial use, please follow the GPL-3.0 License.