https://github.com/moreonion/moflask
Re-usable flask utilities.
https://github.com/moreonion/moflask
Last synced: 17 days 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 (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T12:51:52.000Z (3 months ago)
- Last Synced: 2025-06-30T00:03:32.829Z (17 days ago)
- Language: Python
- Size: 154 KB
- Stars: 2
- Watchers: 3
- 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.