popravich on travis_pypy
.travis.yml: chaching pip packa… Makefile: build/install only re… .travis.yml: cache redis-server… (compare)
Hey aio-istas, I wanted to share another project that I have been working on which is quite relevant for those using asyncio and need to interact with Databases.
aiopyql - https://github.com/codemation/aiopyql
An asyncio ORM for interacting with databases in a more sql like way using python. Because all queries use JSON serializable data structures, it makes it very appropriate for the API space. This comes native with some more advanced features like caching, schema discovery, and query queuing . Currently supporting sqlite, mysql.. postgres still in the works, I would be very happy to hear what others think of this so far.
Hi team, weird one. I'm using asyncio and aiohttp for a webserver using python3.8.
I'm getting continual ConnectionResetError: Cannot write to closing transport errors when I uncleanly leave the hosted page.
I see it's fixed in 3.7.2, which I'm on.
Did you mean oauth2 by
oath2mention? What library did you use for the voice assistant? Did you try to contact the library authors?
library author say ins not problem of component. oauth2 create api homeassitant
Stumbling across this issue and the PR in the comments seems to have fixed this for me
I have a question regarding to PR 4080 (which is "Don't cancel web handler on disconnection"; aio-libs/aiohttp#4080). I wrote a code snippet to see the difference on peer disconnection situation but on the both versions before and after the PR (which is aiohttp 3.6.3 and 3.7.3), the web handler is cancelled on peer disconnection.
import asyncio import traceback from aiohttp import web async def handler(request): print('job started') try: await asyncio.sleep(3) except BaseException: traceback.print_exc() raise print('job done') return web.Response(text='hello') app = web.Application() app.add_routes([web.get('/', handler)]) web.run_app(app, port=7878)
======== Running on http://0.0.0.0:7878 ======== (Press CTRL+C to quit) job started Traceback (most recent call last): File "main.py", line 9, in handler await asyncio.sleep(3) File "/home/pjknkda/.pyenv/versions/3.8.6/lib/python3.8/asyncio/tasks.py", line 656, in sleep return await future asyncio.exceptions.CancelledError
pjknkda@local-server:~/test/aiohttp_cancel_test$ curl http://127.0.0.1:7878 (before 3 seconds)^C
I wonder if it is the intended behavior.