RESTful Python WSGI Website Web Infrastructure

Possible Duplicate:
PESTON REST Infrastructure Recommendations (Web Services)

I am looking for RESTful Python web framework (preferably Python 3). It should have the following things:

  • custom URLs
  • URL Generation
  • file upload support
  • authentication (http basic auth, cookie)
  • content approval
  • based on WSGI
  • to respond to requests using the HTTP verbs, which are not supported by the requested resource is correct (example: if someone sends PUT, but the resource only supports POSTand the GETapplication must meet the permitted methods POSTand GET)
  • support for cache headers
  • conversion / rendering result

What would you recommend?

+3
4

pyramid 1.3 python 3.2

http://www.pylonsproject.org/projects/pyramid/about

docs: http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/

: http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/webob.html#request

view config decorator: http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/viewconfig.html

, .

@view_config(route_name='wiki', renderer='base.pt', request_method='POST')
def view(request):
    return {'a': None}

@view_config(route_name='wiki', renderer='base.pt', request_method='PUT')
def view(request):
    return {'a': None}
+2

, Python REST (-)? @martin -api. - RESTful framework, , .

Flask Bottle. , - WSGI Python...

+2

, HTTP. CherryPy, HTTP, -. HTTP , . CherryPy , : , , Allow, auth negotiation. 3.2 cgi temp , .

0

The non-blocking web server and Tornado infrastructure looks promising. This is a bit like web.py with an event-driven model, such as the JavaScript node.js framework (but with a more convenient language). But I have not tested it yet.

0
source

All Articles