Export to GitHub

implementing-rest - Restish.wiki


Introduction

This article is a stub.

Restish

From An Introduction to Restish

Restish is a simple to use, lightweight WSGI web framework and library with a strong focus on resources, request/response, URLs and content negotiation. Restish has very few dependencies and does not assume any particular templating or database engine.

A key feature of Restish is that it makes no use of thread-locals or any other concurrency-dependent contexts and so works equally well under Paste Deploy or a thread-less web server such as Spawning.

Code Sample

From Restish Resources

``` import logging from restish import http, resource

log = logging.getLogger(name)

class Root(resource.Resource):

@resource.GET()
def html(self, request):
    return http.ok([('Content-Type', 'text/html')],
        "<p>Hello from myproject!</p>")

```