quart
quart copied to clipboard
An async Python micro framework for building web applications.
I am working on porting over a flask extension to Quart and I need to call an async function in a sync function. Under discussions in the Quart docs it...
Some more context when this is relevant. ```mermaid flowchart LR httpx-->|slow network| server subgraph one[Host 1] client-->|localhost\nconnection| quart subgraph quart[Quart app] httpx[httpx async\nclient] end end subgraph two[Host 2] server end...
The recent commit which [removed `_request_ctx_stack`](https://github.com/pallets/quart/commit/b2b614b336d99071a05a8525d4d0e18b9a1d66ec) broke `Flask-Login` which [imports it here](https://github.com/maxcountryman/flask-login/blob/62c04f482c3fb145c9f69054a799d4c55a9ef659/src/flask_login/login_manager.py#L5). It shouldn't be, as it is clearly meant to be private, but it does... and it used to...
This is more of a pytest-asyncio bug, see https://github.com/pytest-dev/pytest-asyncio/issues/127 ```python @pytest.fixture(scope='class') async def test_context(self): async with app.app_context(): async with app.test_request_context("/"): setattr(quart.g, 'test', 'value') yield @pytest.mark.asyncio async def test_global(test_context): assert quart.g.test...
Include this https://github.com/pallets/werkzeug/pull/2337 and the history record
> ...why the websocket_sent/websocket_received signal don't provide the app object as parameter ? On top of tath, given websocket is a stateful protocol, I would have expected to have websocket_started...
I have a file upload handler, structured as follows (simplified): ``` print('filename= ' + file.filename) await aiofiles.os.mkdir(filefolder) print("folder made") await file.save(os.path.join("/filefolder", filename)) print("file saved") return '',200 ``` The folder path...
Hello @**pgjones**, I just would like to keep up this topic. There was a [discussion](https://gitter.im/python-quart/lobby?at=5f46beffdfaaed4ef50ff1ac) in which Nathaniel J. Smith mentioned that `async for` support for `websockets` would be more...
Hello! When running this example code on macOS and Windows 10, macOS will gracefully shutdown, evaluating `my_shutdown()`, whereas Windows 10 will throw a `KeyboardInterrupt` exception and immediately exit without calling...
**Problem Context** Our interservice Rest API calls started failing suddenly a few days back, so when we looked into this we found the error as `('Connection aborted.', RemoteDisconnected('Remote end closed...