The main problem is that many Python libraries come in only sync flavor and using them together with asyncio is a pain.
NodeJS libraries are almost all standardized to async now. Hell, even Tensorflow.js can give you Promises of computation results.
NodeJS libraries are almost all standardized to async now. Hell, even Tensorflow.js can give you Promises of computation results.
$ 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.