FastAPI

FastAPI is a web framework for building APIs with Python 3.6+ based type hints.

Key features are:

  • very high performance thanks to pydantic for the data part and Starlette for the web part.

  • fast and easy to code

  • validation for most Python data types, including

    • JSON objects (dict)

    • JSON array (list)

    • string (str), defining min and max length

    • numbers (int, float) with min and max values, etc.

    • URLs

    • email with python-email-validator

    • UUID

    • … and others

  • robust, production-ready code with automatic interactive documentation

  • based on the open standards for APIs: OpenAPI formerly known as Swagger) and JSON Schema

See also