|13 days ago||1 day ago|
|MIT License||GNU General Public License v3.0 or later|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Granian – a Rust HTTP server for Python applications
10 projects | news.ycombinator.com | 16 Jan 2023
for those wishing to use http3 with a Python web framework, the ASGI hypercorn currently supports it.
made a Django example last week with a sample client based on the examples from aioquic: https://github.com/djstein/django-http3-example
this example also includes the first pass at async Django REST Framework using adrift based on these GitHub issues:
In what ways are channels are better than the traditional await?
3 projects | /r/golang | 18 May 2023
Incidentally, the alternative event loop implementation trio in python does not have "gather", you also need channels, and it's a deliberate design choice - there is some discussion about that in this ticket https://github.com/python-trio/trio/issues/2188
Polyphony: Fine-Grained Concurrency for Ruby
3 projects | news.ycombinator.com | 12 May 2023
This Week In Python
5 projects | dev.to | 17 Feb 2023
trio – a friendly Python library for async concurrency and I/O
Python projects with best practices on Github?
23 projects | /r/Python | 14 Feb 2023
trio. the best code, the best documentation, awesome community.
The Heisenbug lurking in your async code (Python)
7 projects | news.ycombinator.com | 11 Feb 2023
I'll +1 the Trio shoutout , but it's worth emphasizing that the core concept of Trio (nurseries) now exists in the stdlib in the form of task groups . The article mentions this very briefly, but it's easy to miss, and I wouldn't describe it as a solution to this bug, anyways. Rather, it's more of a different way of writing multitasking code, which happens to make this class of bug impossible.
The gotcha of unhandled promise rejections
5 projects | news.ycombinator.com | 13 Jan 2023
It's similar to manual memory management.
Structured concurrency is one approach to solving this problem. In a structured concurrency a promise would not go out of scope unhandled. Not sure how you would add APIs for it though.
See Python's trio nurseries idea which uses a python context manager.
I'm working on a syntax for state machines and it could be used as a DSL for promises. It looks similar to a bash pipeline but it matches predicates similar to prolog.
In theory you could wire up a tree of structured concurrency with this DSL.
Python Asyncio: The Complete Guide
4 projects | news.ycombinator.com | 10 Nov 2022
Not complete - doesn't include Task Groups 
In fairness they were only included in asyncio as of Python 3.11, which was released a couple of weeks ago.
These were an idea originally from Trio  where they're called "nurseries" instead of "task groups". My view is that you're better off using Trio, or at least anyio  which gives a Trio-like interface to asyncio. One particularly nice thing about Trio (and anyio) is that there's no way to spawn background tasks except to use task groups i.e. there's no analogue of asyncio's create_task() function. That is good because it guarantees that no task is ever left accidentally running in the background and no exception left silently uncaught.
How to Choose the Right Python Concurrency API
3 projects | /r/Python | 30 Jul 2022
One consideration I'd like to see in an article like this is backpressure support (https://lucumr.pocoo.org/2020/1/1/async-pressure/). A key component of choosing any approach is to consider the ecosystem of libraries. So if going for async, a library like https://github.com/python-trio/trio looks promising, is being actively developed, and seems to have an active community around it.
Notes on structured concurrency, or: Go statement considered harmful
4 projects | news.ycombinator.com | 2 Jul 2022
The domain for the Python Requests library is expired
10 projects | news.ycombinator.com | 24 May 2022
> I do not recall that the author of this pamphlet has ever done much
He made the Trio library, which is ridiculously good and also ridiculously hard to implement (just look at this issue  for example where he carefully examines the three (!) different async APIs on Windows). Lessons from it are being folded back into the asyncio library in core Python (e.g. exception groups) everyone benefits even if they don't use Trio directly.
What are some alternatives?
uvicorn - An ASGI web server, for Python. 🦄
curio - Good Curio!
uvloop - Ultra fast asyncio event loop.
gunicorn - gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
Twisted - Event-driven networking engine written in Python.
daphne - Django Channels HTTP/WebSocket server
LDAP3 - a strictly RFC 4510 conforming LDAP V3 pure Python client. The same codebase works with Python 2. Python 3, PyPy and PyPy3
amqpstorm - Thread-safe Python RabbitMQ Client & Management library
DearPyGui - Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
aioquic - QUIC and HTTP/3 implementation in Python
pyzmq - PyZMQ: Python bindings for zeromq