Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2023 (4)
20082026
  1. …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
  2. …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
  3. …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
  4. …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#...
  5. …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
  6. 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.