7

I 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

oompahloompah
  • 9,087
  • 19
  • 62
  • 90
  • Looks like someone already asked this here: http://stackoverflow.com/questions/713847/recommendations-of-python-rest-web-services-framework – oompahloompah Mar 28 '11 at 13:37
  • That was a long time ago. Pyramid didn't even exist. Is there a statute of limitations on duplicates? – asthasr Mar 28 '11 at 13:41
  • 2
    no statute of limitations; the original should be updated with current information. In a perfect world there should be only one page for each question to prevent knowledge-seekers from having to visit several different questions that address the same general topic. – Bryan Oakley Mar 28 '11 at 14:16
  • Possible duplicate of [Recommendations of Python REST (web services) framework?](https://stackoverflow.com/questions/713847/recommendations-of-python-rest-web-services-framework) – Adam Michalik Jul 20 '17 at 13:36

5 Answers5

6

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.

asthasr
  • 9,125
  • 1
  • 29
  • 43
3

I suggest you look at Cherry Py. http://cherrypy.org/

Darrel Miller
  • 139,164
  • 32
  • 194
  • 243
  • Looks like there are quite a few good frameworks out there. I'm settling for Cherry partly because its been around a lot longer than the others and (I'm hoping), it is more likely to have been used in anger + prob a greater pool of users to tap into ... – oompahloompah Mar 28 '11 at 23:06
2

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

Greg Flynn
  • 1,694
  • 2
  • 14
  • 15
  • I'm using web.py for a RESTful webapp I'm writing. I'm sure Pyramid or Flask might be better frameworks - but given limited resources I've found web.py to be extremely easy. – Jeffrey Jose Apr 02 '11 at 12:37
0

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]

Nicola Iarocci
  • 6,606
  • 1
  • 20
  • 33
0

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.

Anthony
  • 25,466
  • 3
  • 28
  • 57