5

What is a good and easy way to distribute a web application and server bundled together, python way?

So I can say to a user "Here take this tar/whatever, unpack it and run blahblah.py" and blahblah.py will run a http/wsgi server and serve my application?

Im looking for a stable production-ready multi-threaded wsgi-server with which I can bundle my app, without the need for nginx or other "frontends" or having to deal with any configuration.

2 Answers 2

2

CherryPy can act as a WSGI container.

Sign up to request clarification or add additional context in comments.

4 Comments

To clarify. The CherryPy framework contains a WSGI server that can be used separately. You do not have to use the whole of CherryPy framework.
@Graham would it be possible to take out the multithreaded WSGI server from CherryPy?
Isn't that what I said could be done when said 'that can be used separately'? The CherryPy download page even has a direct link to how you can download raw source. Although unfortunately they are broken at the moment as they haven't updated the links after thet restructured their repository. cherrypy.org/wiki/CherryPyDownload#StandaloneWSGIserver
So, what you need to do is just browse the repo and you will end up at cherrypy.org/browser/tags/cherrypy-3.2.1/cherrypy/wsgiserver Look at Py2 or Py3 version and then look at raw text. Eg cherrypy.org/browser/tags/cherrypy-3.2.1/cherrypy/wsgiserver/… Save as from browser and go for it.
0

cherrypy is the easiest one to use, django is feature rich and tornado is more advanced with asynchrounous web server(in my opinion it is better than multithreaded web server). For what you want, django is best suitable for you IMO.

1 Comment

also django is not really a web server, sure its development server is fine, but not for production I think. why do you think async web server is better than multithreaded?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.