Suggestion: Python Requests library

156 views
Skip to first unread message

rdodev

unread,
Jul 24, 2012, 2:02:34 PM7/24/12
to google-a...@googlegroups.com
Would it be possible to add Python Requests library ( http://docs.python-requests.org/en/latest/index.html ) to AppEngine? urllib and urllib2 are rather cumbersome for complex/custom http requests to other web services. Your attention is much appreciated.

Robert Schuppenies

unread,
Jul 25, 2012, 12:24:12 PM7/25/12
to google-a...@googlegroups.com
You can file a feature request, but rather unlikely IMO. Two reasons that come to mind:
- requests is pure Python so bundling it with your app is not hard (as for example numpy)
- we don't want to commit to supporting libraries unless the previous reason is true or a lot of people ask for it (avoiding maintenance being the top reason)

Also, both urllib and urllib2 are part of Python's stdlib, so using them as an argument doesn't count :P


cheers,
robert




On Tue, Jul 24, 2012 at 11:02 AM, rdodev <ami...@gmail.com> wrote:
Would it be possible to add Python Requests library ( http://docs.python-requests.org/en/latest/index.html ) to AppEngine? urllib and urllib2 are rather cumbersome for complex/custom http requests to other web services. Your attention is much appreciated.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/gMHme7EfuYwJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Helge Tesdal

unread,
Aug 3, 2012, 7:02:51 AM8/3/12
to google-a...@googlegroups.com
If you use buildout and a recipe like
http://pypi.python.org/pypi/rod.recipe.appengine/ you add requests as
a dependency in the setup.py of your package, and add it to the
packages list in the buildout configuration to make it part of a
packages.zip. You then include packages.zip to sys.path and it just
works.

I find that to be a convenient way of including 3rd party libraries,
actually preferable to having it included in GAE, as I'm in charge of
choosing explicit versions in my buildout and can test, switch and
upgrade exactly when I want, independent of GAE release cycle.
--
Helge Tesdal
CTO - mCASH Norge AS
+47 815 10 150
http://mCA.SH
Reply all
Reply to author
Forward
0 new messages