Skip to content
Python module to build REST interfaces
Python Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pylint
recipes Add centos6 recipes Feb 18, 2013
restlib wsgi: fix response body being written for 204 responses Mar 27, 2013
restlib_test
.hgignore initial restlib commit Nov 7, 2008
ContributorAgreement.txt Add contributor agreement May 29, 2013
DEVELOPERS Incorporating dbc's patches Aug 3, 2009
LICENSE Relicense under Apache License version 2.0 Jan 30, 2013
Make.defs
Make.rules Relicense under Apache License version 2.0 Jan 30, 2013
Makefile Relicense under Apache License version 2.0 Jan 30, 2013
NEWS 1.0 Jan 22, 2009
README.md convert doc to markdown Jun 8, 2015
TODO Incorporating dbc's patches Aug 3, 2009
testsuite.py Relicense under Apache License version 2.0 Jan 30, 2013

README.md

Welcome to restlib!

Overview

Restlib is a light-weight framework for writing rest-style APIs. It does not have any support for templating or database manipulation; those must be added manually. This was done purposefully to keep the restlib library small.

A request sent to restlib will go through the following process:

  • conversion from raw simplehttpserver or mod_python requests into standard Request objects
  • processRequest callbacks called, if any
  • view method to call determined by routing through a series of user-defined Controllers
  • processMethod callbacks called, if any
  • view method called - it should return a Response object
  • processResponse callbacks called, if any
  • response written to output.

Exceptions are handled by processException callback.

This arrangement is relatively simple and powerful.

You can’t perform that action at this time.