[Django] #34300: Support async generators in StreamingHttpResponse

1 view
Skip to first unread message

Django

unread,
Jan 28, 2023, 8:24:39 PM1/28/23
to django-...@googlegroups.com
#34300: Support async generators in StreamingHttpResponse
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
knowsuchagency |
Type: New | Status: new
feature |
Component: HTTP | Version: 4.1
handling | Keywords: async, http,
Severity: Normal | streaming
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
This is essentially a duplicate of #31852.

It's been a couple of years since the ticket was opened and it would still
be a very useful feature.

There hasn't been any specific discussion in
https://forum.djangoproject.com/c/internals/async/8 in that time.

An implementation has been published to PYPI that could be used as a
reference for further discussion and implementation
https://pypi.org/project/django-async-stream/

--
Ticket URL: <https://code.djangoproject.com/ticket/34300>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 28, 2023, 9:25:02 PM1/28/23
to django-...@googlegroups.com
#34300: Support async generators in StreamingHttpResponse
-------------------------------------+-------------------------------------
Reporter: Stephan Fitzpatrick | Owner: nobody
Type: New feature | Status: closed
Component: HTTP handling | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: async, http, | Triage Stage:
streaming | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => duplicate


Comment:

The discussion should continue on the original ticket and the ticket
reopened if there's a clear path forward.

--
Ticket URL: <https://code.djangoproject.com/ticket/34300#comment:1>

Django

unread,
Jan 28, 2023, 10:28:33 PM1/28/23
to django-...@googlegroups.com
#34300: Support async generators in StreamingHttpResponse
-------------------------------------+-------------------------------------
Reporter: Stephan Fitzpatrick | Owner: nobody
Type: New feature | Status: closed
Component: HTTP handling | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: async, http, | Triage Stage:
streaming | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

I think there might have been a big of triaging confusion and that support
for async generators might have been added to the upcoming Django 4.2
release via (0bd2c0c9015b53c41394a1c0989afbfd94dc2830) #33735.

--
Ticket URL: <https://code.djangoproject.com/ticket/34300#comment:2>

Reply all
Reply to author
Forward
0 new messages