|
|
|
|
|
by heavyset_go
1869 days ago
|
|
Seems pretty painless to me: $ python3 -m asyncio
>>> from requests import get
>>> url = 'https://example.com'
>>> response = await asyncio.to_thread(get, url)
A lot of Python libraries now offer async APIs, have async support on their short term roadmaps, or other async projects have replaced them. |
|