-
Notifications
You must be signed in to change notification settings - Fork 331
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
Eventlet support #26
Comments
You're not alone :) |
Oh, nice, forsure I'm not! I should have looked better before making my own implementation. But what do you think about making a library that could work both with gevent and eventlet? |
Related issues: kennethreitz/requests#3, kennethreitz/requests#207 |
Well, I don't have an specific reason but one can say because it's pure python. While gevent depends on C modules. Anyway I don't think Eventlet should be deprecated because of the gevent's fork and would be good to provide support for it on a unified asynchronous requests library. |
Looks like all is needed are changes in code from kennethreitz/requests#207 with new pull request. |
Actually I noticed that those changes were already merged into master: https://github.com/kennethreitz/requests/blob/2f6b44f8f8a1c8067c7ecf1f0388c030c4e0278f/requests/async.py |
I realise this is old but to chime in... gevent monkey patches everything. With eventlet you can monkey patch just the bits you want. Much nicer for adding to existing applications where you're not 100% sure of all the locations of socket and whether it's safe to async them. |
First at all, thanks for porting requests to the asynchronous world, I loved it!
However I'm using Eventlet instead of Gevent so I adapted the code to make
it work with Eventlet. You can see it at https://github.com/jmg/erequests.
I was wondering if we can make a unified version where the library can
detect or be configured to use either Eventlet or Gevent based on the user
needs.
Many thanks.
The text was updated successfully, but these errors were encountered: