Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python self contained web application and server?

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.

like image 270
rapadura Avatar asked Oct 07 '11 14:10

rapadura


People also ask

Can Python be used for web server?

You must know that Python can be used to write web servers very effectively. It is known that there are many popular and excellent frameworks and libraries such as Django and Flask, which allows backend developers to focus on the business logic and save a lot of time on coding.

What are web servers and web services in Python?

It is a web server that comes with the Twisted networking library. Whereas Twisted itself is "an event-driven networking engine", the Twisted Web server runs on WSGI and it is capable of powering other Python web applications.


2 Answers

CherryPy can act as a WSGI container.

like image 86
Ignacio Vazquez-Abrams Avatar answered Sep 20 '22 02:09

Ignacio Vazquez-Abrams


You might find this discussion on reddit informative.

like image 37
rplnt Avatar answered Sep 19 '22 02:09

rplnt