New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for asyncio #732
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The blocking issue for this has been Python 2 support, and with #1253, I'd like to plan to integrate support for asyncio in v4.0, especially for streams. |
This comment has been minimized.
This comment has been minimized.
I've created an async-streaming branch and draft PR #1491 that adds support for asynchronous streaming with asyncio. |
The async-streaming branch / pull request #1491 should be complete now. |
This comment has been minimized.
This comment has been minimized.
The documentation for streaming can be found at https://docs.tweepy.org/en/v3.10.0/streaming_how_to.html for v3.10.
As for it not actually streaming, you need to have a running event loop for the task to execute. I don't think this will be changed, as adding handling for the event loop within Also, once support for Python 3.6 is dropped and bd0b403 is reverted, this should raise a For code block usage, see https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks. |
This comment has been minimized.
This comment has been minimized.
Like I said, I'm not really sure what "tweepy pro" is referring to here. |
I'm going to push non-streaming support for asyncio (for |
|
|
👍 |
v4.10.0 (#1901) has now been released with asynchronous support for Twitter API v2 🎉 I don't have a clear plan for an asynchronous version of |
it seems to work from where I have used it, thank you for having it :) |
Is there already a |
|
Is there still a plan around an Async API? |
It would be great if Tweepy integrated with asyncio. For example, to get data using a stream we would use something like
The text was updated successfully, but these errors were encountered: