Questions tagged [asyncio]
The asyncio tag has no usage guidance.
12
questions
-2
votes
0
answers
11
views
Adding concurrency to my asyncio based file downlaoder script without hitting server [closed]
Below is my code to download file as fast as possible using asycio
Trying to implement, multiple server connection with multi chunk, multi threded downlad just like idm and aria2
...
2
votes
1
answer
57
views
Asynchronous mailing tool
I'm trying to change my sync code to asynchronous.
It's my first time doing it like this, so I don't know if this is the right way.
...
1
vote
1
answer
34
views
Bulk recompiling edits to files by running external processes with a pool of 4 workers using asyncio
I am bulk recompiling edits to a c-like language which uses an external compiler.exe. The compiler takes the file paths as arguments and does the processing, nothing needs to be synchronized simply ...
0
votes
0
answers
109
views
Asynchronous DB session in Python (used in ASGI framework such as Sanic)
I've been working with Sanic as my default web framework, but coming from Flask, I had some issue with how to handle the database connection.
So I built an asynchronous wrapper around it.
I've also ...
0
votes
1
answer
976
views
What is the best way to retrieve all pages of a REST API route with Python aiohttp when the number of pages is unknown?
I've encountered a paginated API route where there is no way to know the number of available pages. The only way to retrieve every pages is to check on each page if a next page exists. To do so, the ...
0
votes
0
answers
57
views
Asynchronously download lists of scholarships
TL;DR There is a script here that handles async stuff. Another script imports that file and uses content from it as a "normal" function. Please help me evaluate my async code, I am new to ...
7
votes
1
answer
192
views
Python asyncio multithread wrapper
For my application, I needed a lightweight way to launch multiple tasks and monitor their completion in a main loop periodically or use callbacks. The main loop is going to be busy most of the time ...
2
votes
0
answers
116
views
Web scraping articles using asyncio
I use asyncio to speed up web scraping. I collect only title, author, tags, datetime, total comments from list view from specific website. Also, i collect these from all pages.
I would like to improve ...
0
votes
2
answers
337
views
Python RESTClient Class with asyncio and aiohttp
I've seen Using asyncio and aiohttp in classes but could not really figure out how to apply this to my own code.
The main idea of this code is to inherit from this RESTClient class whenever I build a ...
2
votes
0
answers
67
views
Asynchronous line-based communication with an external program
As part of a larger project, I've written the following code for interacting with git-annex's addurl command in batch mode. ...
3
votes
1
answer
132
views
Converting python code to async calls
I'm going to start out by saying this is the 1st python program I have ever written and have no real background in the language so my code is probably pretty rough. Take it easy on me!
When I wrote ...
1
vote
0
answers
110
views
Building a generic WebSocket component in Python
I have the following working code for a generic WebSocket component:
...