python-remotezip icon indicating copy to clipboard operation
python-remotezip copied to clipboard

Support for asyncio

Open drygdryg opened this issue 2 years ago • 1 comments
trafficstars

It would be nice to have a version with asynchronous network I/O support. It may rely on aiohttp or httpx instead of the Requests.

drygdryg avatar Dec 12 '22 12:12 drygdryg

Hi, this library only implements a custom IO class that perform remote reads instead of local reads. The business logic is still using the official ZipFile module of python. And since that module doesn't support asyncio, this module cannot support asyncio as well. You may be able to use this library asynchronously using gevent. There is also a bridge function for mixing gevent with asyncio that you may want to check out https://pypi.org/project/asyncio-gevent/

gtsystem avatar Mar 12 '24 10:03 gtsystem