Skip to content

feat: support framework='flask' - #41

Merged
thorwhalen merged 2 commits into
masterfrom
fix/flask-framework
Oct 13, 2026
Merged

thorwhalen merged 2 commits into
masterfrom
fix/flask-framework

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Closes #39. _get_framework accepts bottle and flask; default error handler and output mapper are chosen per framework (no process-wide env var decides, so a flask app built later cannot change a bottle app's answers); mk_flask_app/mk_bottle_app pin their own framework; run_app can run Flask (run_flask); end-to-end tests for statuses, WWW-Authenticate, JSON.

Adversarial review (fresh Opus): no Bottle regressions. Confirmed and fixed: Flask silently dropped auth plugins (now refuses plugins/enable_cors/publish_swagger/openapi_insecure), /openapi always published (now only with publish_openapi), middleware list unusable (now WSGI wrappers), run_flask dropped TLS with only a certfile (now an error). Deferred to a follow-up issue: non-JSON input mappers, @send_json_resp mappers, empty bodies under Flask.

Dependents gate (priv test-dependents py2http --transitive): extrude + 1 other suite pass, /dev/null intact.

🤖 Generated with Claude Code

thorwhalen and others added 2 commits October 13, 2026 12:38
_get_framework accepts bottle and flask; the default error handler and output mapper
are chosen per framework instead of by a process-wide env var; mk_flask_app and
mk_bottle_app pin their own framework; run_app can run a Flask app.

Closes #39

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…asked, wraps middleware

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thorwhalen
thorwhalen merged commit 72383a2 into master Oct 13, 2026
6 checks passed
@thorwhalen
thorwhalen deleted the fix/flask-framework branch October 13, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flask is unreachable: _get_framework only accepts bottle, mk_flask_app ignores it

1 participant