Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AIOfile VS AIOfiles

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?

like image 688
PCos Avatar asked Feb 05 '26 05:02

PCos


1 Answers

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.

like image 96
nE0sIghT Avatar answered Feb 07 '26 19:02

nE0sIghT