I want to open files from asynchronous processes and I've noticed two different modules that could be used: aiofiles and aiofile. However, I don't seem to find information about pros and cons between the two.
Would anyone have information about their main differences? Is either of them more widely use than the other?
The main difference between those two is that aiofile is real async io implementation that uses caio under Linux (Linux AIO API) and aiofiles is just threaded wrapper around standard python functions.
Despite Github "stars" my vote is for aiofile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With