python RESTful webservice framework: roll my own or is there a recommended library? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answe开发者_如何转开发red with facts and citations.
Closed last year.
Improve this questionI need to write a python webservice, but I would rather use a LIGHT WEIGHT framework (no one mention Django please), so that I can cater for more complicated scenarios in the future.
Is there a (peer) recommended library that I can use or at least can provide a good starting point?
[Edit]
To clarify, I am talking about a RESTful web service here - nothing to do with SOAP and/or WSDL
Try Pyramid, which is the result of a merger between the Pylons and repoze.bfg frameworks. It's relatively lightweight, yet robust and well-documented.
For RESTful services in Pyramid, you might find this blog post interesting.
I suggest you look at Cherry Py. http://cherrypy.org/
I was in a similar situation looking for lightweight, and tired of Django. I came across web.py, which seems to be as lightweight as it can get.
web.py main site: http://webpy.org/ web.py github: https://github.com/webpy/webpy
web2py may be of interest. It includes support for web services and has recently added RESTful API functionality, described here (video) and here. If you have any questions, ask on the mailing list.
Eve is an open source Python REST API Framework powered by Flask, MongoDB and Redis. It allows you to effortlessly build and deploy highly customizable, fully featured RESTful Web Services.
[disclaimer: I am the project author]
精彩评论