a.k.a. « Flask on steroids »
An opinionated Flask extension designed by and for web developers to reduce boilerplate code when working with Marshmallow, MongoDB and/or JSON.
Documentation: https://flask-stupe.readthedocs.io
- Return any object type in views, and it will be coerced to a
flask.Response
- Validate payloads through Marshmallow schemas
- Easily add JSON converters for any custom type
- Fetch all the blueprints from a whole module in one line
- Native ObjectId support for both Flask and Marshmallow
- Powerful configuration management
- Decorators to handle authentication, permissions, and pagination
- 100% coverage and no dependency
Here is a comparison of a bare Flask application and its equivalent Stupeflask version. They both rely on MongoDB, handle input and output in JSON, and allow to create a user and retrieve one or more.
To run Flask-Stupe tests:
- install developers requirements with
pip install -r requirements.txt
; - run
pytest
.
MIT