Python module to build REST interfaces
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
restlib
restlib_test
.hgignore
ContributorAgreement.txt
DEVELOPERS
LICENSE
Make.defs
Make.rules
Makefile
NEWS
README.md
TODO
testsuite.py

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.