Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Quart on Flask #261

Closed
wants to merge 5 commits into from
Closed

Base Quart on Flask #261

wants to merge 5 commits into from

Conversation

pgjones
Copy link
Member

@pgjones pgjones commented Aug 15, 2023

No description provided.

Now Quart has Flask as a dependency it can use the Flask config code
instead of its own version that does the same. Note the default prefix
is changed to QUART.
This removes code duplication and ensures that Quart has the same
logic as Flask.

There is a downside in that it utilises Flask types e.g. for Flask and
Resposne, but this might be fixable in Flask via the SansIO work.
This reduces code duplication, and ensures Quart matches Flask. It is
where possible as any IO or usage of globals prohibit usage.
This removes a lot of code and matches Flask's API exactly, thereby
bringing Quart and Flask closer together.
This removes a lot of code and matches Flask's API exactly, thereby
bringing Quart and Flask closer together
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like you could reuse Flask's SessionInterface as well. Am I missing something that prevents that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not looked into it yet. Will do after this, hopefully, merges (to try and limit the scope).

@pgjones pgjones closed this Aug 20, 2023
@pgjones pgjones deleted the flask branch August 20, 2023 20:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants