Flask Errors as Nested Dicts
This extension was developed for personal use and changes standard flask and jwt response errors to nested dicts, i. e.
{
"code": 404,
"status": "Not Found"
}
to:
{
"errors": {
"json": {
"url": [
"Does not exist."
]
}
}
}
Installing
Install and update using pip:
$ pip install flask-errors-as-nested-dicts
Usage
from flask import Flask
from flask_jwt_extended import JWTManager
app = Flask(__name__)
jwt = JWTManager(app)
ErrorsAsNestedDicts(app, jwt)
Metadata
Release files for flask-errors-as-nested-dicts 0.0.1
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-errors-as-nested-dicts-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_errors_as_nested_dicts-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / flask-errors-as-nested-dicts-0.0.1.tar.gz
| Download URL | flask-errors-as-nested-dicts-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4275cc004f02e507020e10bfcb084feb67b679899e84ed9339f14d07b592837
|
|
BLAKE2b-256 checksum How to use checksums |
bd896ac29ea5c384107bb61de4e9d18076d6d31726d44c5ce7555ba3026fc89c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / flask_errors_as_nested_dicts-0.0.1-py3-none-any.whl
| Download URL | flask_errors_as_nested_dicts-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a75049e7bb1ce119531fe14e0bf2a0cbfba2c7bdbe925a2c63b58de936e3b9a1
|
|
BLAKE2b-256 checksum How to use checksums |
e21635c65c6bb08ee182f80c22db322f2c2d9ffaaceb084ec3d5b62a337d23ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|