aiohttp
Here are 582 public repositories matching this topic...
I copied the examples/sciencenet_spider.py example and tried to run it using python 3.6 - but:
python sciencenet_spider.py
[2018:04:14 22:21:26] Spider started!
[2018:04:14 22:21:26] Using selector: KqueueSelector
[2018:04:14 22:21:26] Base url: http://blog.sciencenet.cn/
[2018:04:14 22:21:26] Item "Post": 0
[2018:04:14 22:21:26] Requests count: 0
[2018:04:14 22:21:26] Error coun
-
Updated
Jun 7, 2020 - Python
I read the document and implement follow the section "Returning HTTP 400 Responses", but I got the error message "ModuleNotFoundError: No module named 'falcon'".
I wondered that if the falcon module is needed for the feature why it wasn't installed as I run the pip3 install webargs. In the end, I found thi
Suggested by @Shanoir on Gitter:
One thing that I can suggest though: Overall the documentation of uplink is very nice. it clearly lays out how the API classes can be set up, and how to use the decorators. However, there is almost no examples available for the "use" of the methods. I think that across the board, providing these usage examples could really help newcomers get onboarded on the l
-
Updated
Aug 14, 2019 - Python
-
Updated
May 27, 2020 - Vue
Misleading TypeError
This error claims only (str, str) pairs are allowed:
https://github.com/aio-libs/yarl/blob/9afd40d7b43b1af43c4f27850b64225d238b97cd/yarl/__init__.py#L900-L903
However, judging from the code, one may actually use (str, int) just fine:
https://github.com/aio-libs/yarl/blob/9afd40d7b43b1af43c4f27850b64225d238b97cd/yarl/__init__.py#L894-L898
https://github.com/aio-libs/yarl/blob/9afd40d7b43b
@dazza-codes had the great insight to notice that the event creating-client-class.* would enable use to remove the AioClientCreator._create_client_class method be replacing the base_classes parameter with our AioBaseClient override.
We should go over the codebase wherever simplifications lik
Should be easy to do and good exercise. Would be cool to have some sort of social auth via github/twitter/google integration.
Some examples:
https://github.com/skftn/flask-pastebin
https://github.com/mitsuhiko/flask-pastebin
The documentation for Job.close() is very vague: https://aiojobs.readthedocs.io/en/stable/api.html#aiojobs.Job.close
coroutine close(*, timeout=None)
Close the job.
If timeout exceeded asyncio.TimeoutError raised.
The job is in closed state after finishing the method.
Yes, but what does "closing" a job really entail? I suspect cancellation via asyncio.Task.cancel(), but the
-
Updated
Nov 30, 2018 - Python
Long story short
Currently there is no way to set some additional parameters when creating a swarm. For example "DefaultAddrPool" is missing as it exists in the documentation: https://docs.docker.com/engine/api/v1.40/#operation/SwarmInit
The code only allows some predefined parameters:
https://github.com/aio-libs/aiodocker/blob/335acade67eea409bc09a51309123134f3a3c57a/aiodocker/swarm.py
-
Updated
Aug 27, 2019 - Python
If I wish to use pytest fixtures with unittest then aioresponses() needs to be stored at the TestCase class level https://docs.pytest.org/en/3.0.0/unittest.html#mixing-pytest-fixtures-into-unittest-testcase-style-tests
To do this effectively ideally you need to create an aioresponses() object with everything added without having already created the with context. At the moment you can only add
The docs currently focused on providing reference documentation, and a little quickstart section.
It would be great to further expand on how to use gidgethub for GH Actions or GitHub v4 API.
Perhaps the docs can be split into:
- Quick Start
- API Reference
- More Examples, e.g. building a GitHub App, Actions, etc.
- aiohttp-devtools version:0.13.1
- aiohttp version:3.6.2
- python version:3.7.6
- Platform:MacOS 10.15.2
Issue Summary
Cleanup contexts aren't run to completion when exiting adev runserver with ctrl-c. They are run correctly when the server is reloaded after a code change.
Steps to reproduce
Run the following server with adev runserver then exit it with ctrl
Pickled pure Python MultiDicts should be unpickled as Cythonized if unpicker is executed on machine with Cython support.
And vise versa.
Fix yarn install
5.51s$ yarn install
yarn install v0.17.0
$ rm -rf ./aiohttp_admin/static/ng-admin/
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "ENOENT: no such file or directory, lstat '/home/travis/.cache/yarn/npm-angular-ui-codemirror-0.3.0-9246cd11e9b9a986ea553788a20a0be677f171f0'".
info If you think this is a bug, please
Hello,
I'm trying to test a remote Firefox connection using Arsenic. It doesn't look like your Remote service supports desired_capabilities or profile parameters?
Here is the synchronous code I usually use:
from selenium import webdriver
capabilities = {
'platform': 'LINUX', 'browserName': browser, 'version': '',
'enableVNC': True,
}
profile
We have script for updating our requirements. But we can move to some better:
pip-compile development.in
pip-compile documentation.in
pip-compile production.in
i think this looks much better.
- remove
check-requirements.py - add pip-compile for
upgradecommand into makefile - describe into the documentation how use *.in files for that
The documentation is a little confusing, as it mentions that identity should not be something like a user ID or login. However, both demos appear to ignore this advice and it seems that userid == login == identity.
If trying to get started quickly by going through the demos, then it appears you would end up following bad practices.
=============================== warnings summary ===============================
tests/unit/test_cors_config.py:33
.../tests/unit/test_cors_config.py:33: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def get(self):
tests/integration/test_main.py::test_dummy_setup[pyloop]
/usr/lib64/python3.8/site-packages/aiohttp/web_server.p
Improve this page
Add a description, image, and links to the aiohttp topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the aiohttp topic, visit your repo's landing page and select "manage topics."
Long story short
Regression of #1188
Expected behaviour
Tests pass on armv7l
Actual behaviour
Test run fails at test_cookiejar.py:383: OverflowError
Steps to reproduce
Run tests
Your environment
linux 4.19
nixos 20.03
arm v7l
python 3.7
aiohttp client-3.6.2
Log