django/asgiref
View on GitHub ↗ ★ 1,639 Python
ASGI specification and utilities
6 mentions on Hacker News by 6 people: 0 stories, 6 comments · first 2018-04-24 · latest 2025-07-24
20082026
-
…expose both a sync and async interface. async def foo() becomes def foo() and async def foo.aio(). https://github.com/django/asgiref https://github.com/modal-labs/synchronicity
comment by operator-name · 2025-07-24 · in Superfunctions: A universal solution against sync/async fragmentation in Python -
…OP either meant this, or its variation, such as async_to_sync and sync_to_async. https://github.com/django/asgiref/blob/main/asgiref/sync.py Ofc this is a python example. I have no idea how it works in different languages.
comment by tomwojcik · 2023-09-09 · in Why you might want async in your project -
…ocs.io/en/latest/implementations.html#s... ; Daphne, Uvicorn, Hypercorn, Granian, NGINX Unit asgiref: https://github.com/django/asgiref/blob/main/asgiref/sync.py AsyncToSync, SyncToAsync a2wsgi: https://github.com/abersheeran/a2wsgi
comment by westurner · 2023-07-03 · in Quart is an async Python web microframework -
…code and I have been bitten by fixes to this library that introduced deadlocks in my own code. [1] https://github.com/django/asgiref#synchronous-code--threads . [2] https://github.com/django/asgiref/blob/main/asgiref/sync.py#...
comment by pdhborges · 2023-06-16 · in Writing a chat application in Django 4.2 using async StreamingHttpResponse -
…and mostly self-contained. [0] https://github.com/django/django/blob/main/setup.cfg#L39-L42 [1] https://github.com/django/asgiref/blob/main/setup.cfg#L34-L3...
comment by Kwpolska · 2023-04-07 · in Building GitHub with Ruby on Rails -
there is ASGI https://github.com/django/asgiref/blob/master/specs/asgi.rst but i am not sure how broadly as a common spec this has been accepted.
comment by je42 · 2018-04-24 · in Show HN: HTTP/2 Python-Asyncio Web Microframework