asyncio
Here are 1,685 public repositories matching this topic...
Is your feature request related to a problem
Coming from this issue: tiangolo/fastapi#817
The docs have some sections with functions using *, in the parameters.
It is explained here: https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#order-the-parameters-as-you-need-tricks
But in other sections like: https://fastapi.tiangolo.com/tutor
I noticed an undocumented behavior with listeners, where some of them run in reverse order of registration
- What is the rationale for that?
- Can this be added to the docs?
Additional context
Relevant lines of code from https://github.com/huge-success/sanic/blob/master/sanic/app.py#L1356
# -------------------------------------------- #
# Register start/stop eLong 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
ts_before = datetime.datetime(
1975, 1, 1, tzinfo=datetim
-
Updated
May 26, 2020 - Python
Subj. External monkey plugins need to be able to test. Currently the only way to utilize the internal greentest.testrunner is to copy-paste the code from gevent-proper.
It would be nice is greentest was actually an external package that both gevent and plugins could use.
I tried to disable the redirection with latest httpx but it is always redirection the URL:
>>> import httpx
>>> r = httpx.head("http://www.python.org", allow_redirects=False)
>>> r.url
URL('https://www.python.org')status code is also 200 and not 301 as expected.
Checklist
- I have included information about relevant versions
- I have verified that the issue persists when using the
masterbranch of Faust.
Steps to reproduce
Given one Faust Table, two topic Agents:
partition_no = 4
topic_1 = app.topic('topic_1', partitions=partition_no, internal=True)
topic_2 = app.topic('topic_1', key_type=str, value_type=InfoDetaiIn the documentation for connect() function, parameter server_settings has the following description:
An optional dict of server runtime parameters. Refer to PostgreSQL documentation for a list of supported options.
The link in the description returns erro
When running under gunicorn, --access-logformat isn't honored.
There was some discussion of this in #389, but I didn't see an open issue for it.
-
Updated
Jun 4, 2020
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
- pulsar version: N/A
- python version: N/A
- platform: N/A
Description
It seems that your documentation hosted at https://docs.pulsarweb.org/ is unavailable.
When I try to access it I get the following message:
Error 1014 Ray ID: 4598be0f691559cc • 2018-09-13 07:01:25 UTC
CNAME Cross-User Banned
What happened?
You've requested a page on a website that is par
Problem
-
sio.connect()first connects to namespace/before connecting to other namespaces. Subsequentemit()commands are allowed before all namespaces are connected to - causing messages to disappear (due to namespace not connected yet).
Addingasyncio.sleep(1)before the firstemit()seems to fix the problem, -
in the documentation https://python-socketio.readthedocs.io/en
Events are not documented in the doc. The only way to know about them is via the examples. Anyway, I don't know what to expect from here:
@channel.on("message")
def on_message(message):What is message supposed to be? is it an object? a string? a blob/buffer (or whatever it's called in Python)?
Thanks for the project!!!! The fact that examples exist is amazingly great. I have a philosophy recommendation for you. The examples exist so you don't have to answer stupid questions. In that spirit of saving you time and effort, you might want to spend a few minutes and adding clean separation in the code, remove command nesting and line splits. Finally consider adding painfully excessive
Regarding python-gino/gino#511
Exactly what syntax is used to get the "connection" that will allow the documented code to function?
Changing the doc to the correct syntax without retrofitting the docs to make the code work is a bit rough.
Argument type for many SortedSet commands (for min/max kw) is enforced by isinstance check.
In one place it even has this comment:
if not isinstance(max, bytes): # FIXME Why only bytes?
raise TypeError("max argument must be bytes")I think it is more convenient (for me as a user) to pass strings inst. of bytes.
Some of these commands are for "lexicographical" op
Expand documentation
In particular:
- More examples of queries.
- Examples of using JSON field.
- Examples with joining tables.
- Getting PK of inserted rows.
- Properly document return types of the
databasesAPI.
I'm not sure if I'm doing something wrong or your aiohttp example is wrong! Seems backoff decorator doesn't catch aiohttp exceptions automatically and you need to raise the error manually:
@backoff.on_exception(backoff.expo,
aiohttp.ClientError,
max_tries=4)
async def get_url(url):
async with aiohttp.ClientSession() as session:-
Updated
Jun 1, 2020 - Python
The FileIO attributes .name and .mode are missing from the wrappers.
So this works:
with open(filename) as f:
print(f.name, f.mode)This doesn't, resulting in attribute errors.
async with aiofiles.open(filename) as f:
print(f.name, f.mode)-
Updated
Jun 7, 2020 - Python
bug in README.md when_all_ready() example:
task<> example2()
{
...
// Unpack and handle each result individually once they're all complete.
for (int i = 0; i < 1000; ++i)
{
try
{
>>> std::string& record = tasks[i].result();
should be
std::string& record = resultTasks[i].result();
...
}
Hello
I was trying to assist someone using aiomysql for the first time. I myself use postgre and asyncpg, so I was relying on the documentation while helping them.
But the examples in the documentation use hard-coded queries or weird ways to escape, something a regular user would never do. Also the use of variables is too heavy. Examples should be clear, every argument of execute should be s
Is your feature request related to a problem? Please describe.
I would like to group the table by a field and apply aggregations. Example SQL:
SELECT SUM(`column_1`)
FROM `table`
WHERE `column_2` = 'something'
GROUP BY `column_3`Describe the solution you'd like
I'm not familiar with the code-base of this project yet, so I won't be able to propose an implementation.
It appears that the cursor timeout, when set to None, will always take the connection timeout as the maximum amount of time a query can run.
I believe this is a bug and should be changed.
https://github.com/aio-libs/aiopg/blob/master/aiopg/connection.py#L260
If this is not a bug and the intended behavior, it is very opinionated and should be documented.
A connection timeout is for esta
Improve this page
Add a description, image, and links to the asyncio topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the asyncio topic, visit your repo's landing page and select "manage topics."
The problem
I copied the arduino integration into
custom_components:and made homeassistant the owner:
Environment
Latest hass, latest raspbian on Pi 4.