a.k.a. « Flask on steroids »
Project description
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
Features
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
Install
$ pip install flask-stupe
Comparison
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.
Bare Flask |
With Stupeflask |
|
|
Tests
To run Flask-Stupe tests:
install developers requirements with pip install -r requirements.txt;
run pytest.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Flask_Stupe-4.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbecafbcb57bcdc0630aa53b4f82ea2c16c25489521827d08cd276743dffc026 |
|
MD5 | f018936a774ec50370dd1f6f6971879d |
|
BLAKE2b-256 | 42d2cd81b7dcb91c182c64cb57b35b907ff67d04c92c6df8e2b48760f76be181 |