Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> I have successfully done event-driven I/O using select.epoll() and >> socket.socket(). > > Sure, but then you end up writing a lot of low-level machinery that > packages like twisted take care of for you. Certainly. It would be nice if the stdlib protocol

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Paul Rubin
Marko Rauhamaa writes: > I have successfully done event-driven I/O using select.epoll() and > socket.socket(). Sure, but then you end up writing a lot of low-level machinery that packages like twisted take care of for you. -- https://mail.python.org/mailman/listinfo/python-list

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Marko Rauhamaa
Paul Rubin : > Event-driven i/o in Python 2.x was generally done with callback-based > packages like Twisted Matrix (www.twistedmatrix.com). In Python 3 > there are some nicer mechanisms (coroutines) so the new asyncio > package may be easier to use than Twisted. I haven't tried it yet. I have su

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Paul Rubin
Ari King writes: > I'd like to query two (or more) RESTful APIs concurrently. What is the > pythonic way of doing so? Is it better to use built in functions or > are third-party packages? Thanks. The two basic approaches are event-based asynchronous i/o (there are various packages for that) and t

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Zachary Ware
On Thu, Feb 12, 2015 at 10:37 AM, Ari King wrote: > Hi, > > I'd like to query two (or more) RESTful APIs concurrently. What is the > pythonic way of doing so? Is it better to use built in functions or are > third-party packages? Thanks. Have a look at asyncio (new in Python 3.4, available for 3

Async/Concurrent HTTP Requests

2015-02-12 Thread Ari King
Hi, I'd like to query two (or more) RESTful APIs concurrently. What is the pythonic way of doing so? Is it better to use built in functions or are third-party packages? Thanks. Best, Ari -- https://mail.python.org/mailman/listinfo/python-list