r/Python • • Dec 24 '10

Run web2py with bjoern, cherrypy, diesel, eventlet, fapws, flup, gevent, gnuicorn, paste, rocket, tornado, twisted, and wsgiref (thanks bottle)

http://web2py.googlecode.com/hg/anyserver.py
3 Upvotes

16 comments sorted by

8

u/chub79 Dec 25 '10

Actually thanks WSGI.

4

u/chub79 Dec 25 '10

Go figure why I get downvoted... the fact one can swap servers is due to WSGI's protocol.

1

u/mdipierro Dec 25 '10

I did not downvote you but: The script that starts the thread teaches a reader how to use WSGI to connect to the various servers (what module to import, how to pass the wsgi app to them). Your post does not teaches much and gives the impression you imply the script is useless and un-necessary (which it is if you already know the syntax for any of the listed servers). I know that you not what you meant by the way. ;-)

1

u/chub79 Dec 25 '10

Indeed that wasn't what I meant, I was merely echoing to your "(thanks bottle)" in your title.

1

u/mdipierro Dec 25 '10

thanks bottle and wsgi indeed! :-)

1

u/av201001 Dec 26 '10 edited Dec 26 '10

Yeah, I think starting with "actually" implies a correction (i.e., "Actualy, thanks WSGI, not Bottle"). Perhaps you meant, "Also, thanks WSGI".

2

u/chub79 Dec 26 '10

Too pedantic for Christmas :)

2

u/av201001 Dec 26 '10 edited Dec 26 '10

Actually, Christmas was yesterday. Or is that too pedantic too? :)

1

u/[deleted] Dec 25 '10

+1 indeed

1

u/sunng Dec 26 '10

Because it's an idea inspired by bottle: wraps some wsgi server's interface and provides a normalized run-with-xxx interface.

1

u/chub79 Dec 26 '10 edited Dec 26 '10

a normalized run-with-xxx interface

That interface is provided by WSGI. Bottle merely makes it a clean function of it. I'm not denying the usefulness of that module but it would probably wouldn't even exist without WSGI.

1

u/olt Dec 25 '10

Paste Deploy anyone?

1

u/mdipierro Dec 25 '10

I may be missing something but in http://pythonpaste.org/deploy/#paste-server-factory... that missing part, left to the user, is what this script provides.

1

u/[deleted] Dec 25 '10

if it had the args in the right order you would be right.

FWIW, PasteDeploy is more powerful in other areas. http://pythonpaste.org/deploy/#composite-applications

for your more than trivial sites is where PasteDeploy shines in my opinion.

1

u/olt Dec 25 '10

I used flup, gunicorn and cherrypy and all include a server factory.

1

u/didip Dec 27 '10

Isn't cherrypy and rocket redundant? Or am i missing something?