https://github.com/aio-libs The set of asyncio-based libraries built with high quality
popravich on travis_pypy
.travis.yml: chaching pip packa… Makefile: build/install only re… .travis.yml: cache redis-server… (compare)
su root
python3 -m ensurepip
build-essential
using Filza/usr/share/SDKs
EXPORT AIOHTTP_NO_EXTENSIONS
(I don't remember this command accurately). I didn't have to do this once I got everything above installedpip3 install aiohttp
aiohttp
have any similar feature to the request library HTTPAdapter
? Migrating my application over to being async, and trying to find a way to implement a HTTPAdapter
that's required for my application.. (use case is I need to spoof TLS handshake and this HTTPAdapter does that)
More exactly what I try to implement, is to add tests for different models of execution of my library, based off those test cases (when run manually one by one it works, when run in pytest it works too, but if async test was run before it gets stuck or other exceptions):
https://gist.github.com/rking32/818bd60a6dd1e632ac61ba6f7e902a5a
Here's my code (it's quite complex because this is like the 10th iteration trying to make it work without hanging). I tried executing test cases manually and confirmed that tests should pass, it's something from pytest-asyncio, but not sure what exactly.
https://www.toptal.com/developers/hastebin/gipexujexe.py
(event loop policy's and event loop's ids at async test and test that hang match, so it should be same event loop)
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host HOST:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)')]
Thing is this is working on my collegue PC.
+
curl and requests working fine.
import aiohttp
. I have double checked my environment and the module is installed. Does anyone else have this issue? Do you know any workarounds?
Hello.. hope you're all doing great..
I'm kind of new to async stuff,.. and i'm trying to pull option-chain
data for 200 stocks..
Here's the code i wrote..
http://pastie.org/p/1hkmkGTnYdilUrl1PNvmZl
Well it works, for 40 stocks at a time, i guess the problem is the website blocks too many api calls at a time.. and sends 401Unauthorized error..
Any help to get around this would be very much appreciated,
Thannk YOU.. :D
Hello please help.
aiohttp.client.request allow method in args (method like "POST","PUT".
HOW make it in CientSession() as session:
session(method
session.request()
?
beefsalad@derp:/data$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import aiohttp
import asyncioasync def main():
File "<stdin>", line 1
async def main():
^
IndentationError: unexpected indent
async def main():
... async with aiohttp.ClientSession() as session:
... async with session.get('http://python.org') as response:
...
File "<stdin>", line 4
ssl.create_default_context(cafile='...')
, which I expected, AND to do ssl.SSLContext.load_cert_chain()
on the private key, which I cannot do, because the key is on the server. Am I reading it wrong?