Can you recommend a minimalistic python webserver that I can embedded in my Desktop Application.
How minimalistic and for what purpose?
SimpleHTTPServer comes free as part of the standard Python libraries.
If you need more features, look into CherryPy or (at the top end) Twisted.
I'm becoming a big fan of the newly released circuits library. It's a component/event framework that comes with a very nice set of packages for creating web servers & apps. Here's the simple web example from the site:
from circuits.lib.web import Server, Controller
class HelloWorld(Controller):
def index(self):
return "Hello World!"
server = Server(8000)
server += HelloWorld()
server.run()
Its WSGI support is no more complicated than that, either. Good stuff.
If you're doing a lot of concurrent stuff, you might consider Kamaelia's HTTPServer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With