Skip to content

Flask-More

GitHub Workflow Status codecov PyPI PyPI - Python Version GitHub

Modernized Flask API builder with schema validator and OpenAPI.

Warning

Currently, Flask-More is still under active development(before v1.0.0).

Be careful to use it in production.

Flask-More is kind of like the famous library FastAPI, bringing part of its brilliant features to your Flask application, you can see a lot of similarities between the two.

For example, it uses Pydantic for request and response validation, it will auto-generate OpenAPI API docs and so on.

Feature

  • Intuitive and easy to use.
  • Request/Response validation based on type hinting(by Pydantic).
  • Auto-generated OpenAPI docs(both swagger and redoc).
  • Designed for API development.

Quick start

python -m pip install flask-more

You can view and run the code in the example file. Then open http://127.0.0.1:5000/docs you will see the API docs like this:

docs

License

This project is licensed under the terms of the MIT license.