Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.