Top "Aiohttp" questions

Use this tag for questions about AIOHTTP – a client/server framework for asyncio Python.

How could I use requests in asyncio?

I want to do parallel http request tasks in asyncio, but I find that python-requests would block the event loop …

python python-requests python-3.4 aiohttp
RuntimeError: There is no current event loop in thread in async + apscheduler

I have a async function and need to run in with apscheduller every N minutes. There is a python code …

python python-3.x python-asyncio aiohttp apscheduler
Learning asyncio: "coroutine was never awaited" warning error

I am trying to learn to use asyncio in Python to optimize scripts. My example returns a coroutine was never …

python python-asyncio aiohttp
RuntimeWarning: Enable tracemalloc to get the object allocation traceback with asyncio.sleep

Trying to use a semaphore to control asynchronous requests to control the requests to my target host but I am …

python semaphore python-asyncio aiohttp
How to combine python asyncio with threads?

I have successfully built a RESTful microservice with Python asyncio and aiohttp that listens to a POST event to collect …

python multithreading python-asyncio aiohttp
"async with" in Python 3.4

The Getting Started docs for aiohttp give the following client example: import asyncio import aiohttp async def fetch_page(session, …

python python-3.x async-await python-asyncio aiohttp
How I call an async function without await?

I have a controller action in aiohttp application. async def handler_message(request): try: content = await request.json() perform_message(…

python python-asyncio aiohttp
How to check a SSL certificate expiration date with aiohttp?

I know how to get certificate information such as expiration date using pyopenssl for instance, but is it possible to …

python ssl-certificate python-asyncio aiohttp
How can I wrap a synchronous function in an async coroutine?

I'm using aiohttp to build an API server that sends TCP requests off to a seperate server. The module that …

python python-3.x asynchronous python-asyncio aiohttp
Python package - aiohttp has a warning message "Unclosed client session"

My code is as follows: import asyncio import aiohttp urls = [ 'http://www.163.com/', 'http://www.sina.com.cn/', …

python python-asyncio aiohttp