indieweb-utils
indieweb-utils copied to clipboard
Idea: Add asyncio support to IndieWeb Utils
The IndieWeb Utils library has not implemented support for using functions with asyncio, a Python library used to write concurrent code.
@fluffy-critter inquired about support for asyncio in IndieWeb Utils. I wonder if this is a feature the library could include at some point.
For context, asyncio is significantly faster than thread-per-connection when you're sending out a bunch of bulk updates, such as in Pushl. It usually requires some major refactoring to support correctly, though, and it would probably be more sensible to do it as an async-specific library which then later grows a blocking API wrapper.
The specific library I'd suggest to use for the HTTP parts is aiohttp, which is an async version of requests.