Recommended python library/framework for local web app?

前端 未结 10 1868
生来不讨喜
生来不讨喜 2020-12-31 07:33

I want to create a simple LOCAL web app in Python.

The web server and \"back-end\" code will run on the same system (initially, Windows system) as the UI. I doubt it

10条回答
  •  天命终不由人
    2020-12-31 08:25

    I have written a handful of such "local web server" apps since I asked this question. I don't have a final "which framework is best" answer, but I do have some insights:

    1. A simple or micro-framework is indeed a good choice.
    2. I've tried CherryPy and Flask frameworks. Flask is the clear winner for simplicity, with basic "set up some AJAX serving pages" functions entirely trivial to write in Flask. CherryPy documentation is often opaque, and its setup complexity notably higher.
    3. I'm happy with Flask, but I continue to look around. I would especially like to try Bottle, which I've seen reviewed very highly, including in other StackOverflow discussions and this side-by-side comparison: http://www.slideshare.net/r1chardj0n3s/web-microframework-battle web2py also looks worth a try.

提交回复
热议问题