Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moreonion/moflask
Re-usable flask utilities.
https://github.com/moreonion/moflask
Last synced: about 1 month ago
JSON representation
Re-usable flask utilities.
- Host: GitHub
- URL: https://github.com/moreonion/moflask
- Owner: moreonion
- License: gpl-3.0
- Created: 2015-12-14T13:51:36.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T14:51:12.000Z (10 months ago)
- Last Synced: 2024-04-14T09:58:24.012Z (9 months ago)
- Language: Python
- Size: 148 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# moflask
Utility library to build flask apps faster and more consistent. It includes:
* `moflask.flask.BaseApp`: A base class that handles:
- Config loading using Python files indicated by the `FLASK_SETTINGS` environment variable.
- Logger intialization.
- Sentry initialization with config read from `SENTRY_CONFIG`.
* `moflask.wsgi.ProxyFix`: A middleware that safely handles `X-Forwarded-For`
and related headers.
* `moflask.logging`: Logging helpers with preconfigured handlers and filters.
Enabled on the BaseApp.