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.ResponseValidate 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
Metadata
Release files for Flask-Stupe 4.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Flask-Stupe-4.4.0.tar.gz | 11.9 kB | Details |
Release files / Flask-Stupe-4.4.0.tar.gz
| Download URL | Flask-Stupe-4.4.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f0bca4405d4ff105baeb1f7b7ea48765100918d6aaf2e5ff131b1e765db611b
|
|
BLAKE2b-256 checksum How to use checksums |
144a0142d6fdce926e0a1d41b0a20ef3045c8cf3c81a858577e7cc40fe7acfe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|