Yatharth Agarwal
Yatharth Agarwal

Reputation: 4564

Alternative to sockets library for GAE

Is there an alternative to Python's standard lib module sockets that runs on Google AppEngine? Sockets are disabled there due to the sandbox.

I have looked at the other similar questions, but in them the answer was that sockets weren't implemented, not the question. One of them mentions a link to a form for becoming a trusted tester who has access to these features, but I haven't heard from Google yet :/

I'm thinking Twisted as it supports whole lot of protocols but I don't know much about sockets and how they work, so I'm not sure.

Upvotes: 0

Views: 245

Answers (2)

speedplane
speedplane

Reputation: 16121

Good news! Google recently released a sockets API for app engine, documentation here:

https://developers.google.com/appengine/docs/python/sockets/

It is still in a preview release (as of Mar. 2014) and it comes with its own host of limitations, but it should be able to handle many situations.

Upvotes: 2

Linuxios
Linuxios

Reputation: 35783

Unfortunately, you can only make HTTP and HTTPS requests on App Engine. Nothing else.

The closest thing you can get on App Engine is the Channels API, which may do what you need.

urllib3 isn't even related. It does HTTP and HTTPS, not sockets.

Upvotes: 2

Related Questions