Skip to content

Commit

Permalink
Split the App and Blueprint into Sansio and IO parts
Browse files Browse the repository at this point in the history
This follows a similar structure in Werkzeug and allows for async
based IO projects, specifically Quart, to base themselves on
Flask.

Note that the globals, and signals are specific to Flask and hence
specific to Flask's IO. This means they cannot be moved to the sansio
part of the codebase.
  • Loading branch information
pgjones committed Jun 11, 2023
1 parent e399b29 commit c247d3a
Show file tree
Hide file tree
Showing 12 changed files with 1,453 additions and 1,184 deletions.
4 changes: 2 additions & 2 deletions src/flask/__init__.py
@@ -1,7 +1,5 @@
from . import json as json
from .app import Flask as Flask
from .app import Request as Request
from .app import Response as Response
from .blueprints import Blueprint as Blueprint
from .config import Config as Config
from .ctx import after_this_request as after_this_request
Expand Down Expand Up @@ -37,6 +35,8 @@
from .templating import render_template_string as render_template_string
from .templating import stream_template as stream_template
from .templating import stream_template_string as stream_template_string
from .wrappers import Request as Request
from .wrappers import Response as Response

__version__ = "2.3.3.dev"

Expand Down

0 comments on commit c247d3a

Please sign in to comment.