aiofiles is a python library that is used to handle the local disk files present in asyncio applications. Use this tag for questions related to the python library only. Do not use the tag for APL I/O files.
Questions tagged [python-aiofiles]
36 questions
0
votes
1 answer
Asynchronous programming for calculating hashes of files
I'm trying to calculate hash for files to check if any changes are made.
i have Gui and some other observers running in the event loop.
So, i decided to calculate hash of files [md5/Sha1 which ever is faster] asynchronously.
Synchronous code…

Manthri Anvesh
- 95
- 2
- 12
0
votes
1 answer
Asynchronous download in python not working
I am trying to implement a fast downloader in python.I am having an error when using aiofiles
async with aiofiles.open(pathlib.Path(self.__dest_path / filename).resolve(), 'wb') as fd:
for chunk in await…

user2650277
- 6,289
- 17
- 63
- 132
0
votes
0 answers
CPU/Network monitoring
I have basic Python and Unix questions around CPU/Network monitoring. I am running an app listening to some Websockets and saving incoming data to files (Python3.6, asyncio, aiohttp and aiofiles). About 300 KB/sec receiving.
Using "top", I get 100%…

jam123
- 129
- 1
- 7
-1
votes
1 answer
Aiofiles import not working in buildozer, apk building but crashing
Has anyone had any success incorporating aiofiles into a buildozer apk. The package is building but crashes once the apk is installed on the phone or emulator. I have tested all the other imports and they work fine.Buildozer spec is…

Foton
- 97
- 1
- 9
-1
votes
1 answer
Problem with writing a file on a certain path
I try to write the file to disk by specifying the path to the folder to save. But I get the error of reading the file by the specified path.
FileNotFoundError: [Errno 2] No such file or directory:…

Jekson
- 2,892
- 8
- 44
- 79
-1
votes
2 answers
How to convert lots of HTML to JSON with asyncio in Python
This is my first attempt at using asyncio in python. Objective is to convert 40000+ htmls to jsons. Using a synchronous for loop takes about 3.5 minutes. I am interested to see the performance boost using asyncio. I am using the following…

Imrul Huda
- 181
- 1
- 6