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
File details
Details for the file Flask-Stupe-4.4.0.tar.gz
.
File metadata
- Download URL: Flask-Stupe-4.4.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0bca4405d4ff105baeb1f7b7ea48765100918d6aaf2e5ff131b1e765db611b |
|
MD5 | 85d1215d5811ca59279327451d5028f1 |
|
BLAKE2b-256 | 144a0142d6fdce926e0a1d41b0a20ef3045c8cf3c81a858577e7cc40fe7acfe4 |