rpathsync / restlib

Python REST Library

Clone this repository (size: 74.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/rpathsync/restlib/
commit 59: 442676720653
parent 58: 3fe08f1f60e4
self.port is not used, use self.hostport instead defaulttip
Mihai Ibanescu
5 months ago
View at rev
restlib /
filename size last modified message
pylint  
restlib  
.hgignore 236 B 17 months ago initial restlib commit
.hgtags 206 B 6 months ago Added tag rba-5.2.3 for changeset db6fc5623b80
DEVELOPERS 2.7 KB 8 months ago Incorporating dbc's patches
LICENSE 11.7 KB 17 months ago initial restlib commit
Make.defs 1.1 KB 14 months ago 1.0
Make.rules 1.5 KB 17 months ago initial restlib commit
Makefile 1.4 KB 17 months ago remove reference to restlib_test
NEWS 57 B 14 months ago 1.0
README 849 B 8 months ago Incorporating dbc's patches
TODO 3.1 KB 8 months ago Incorporating dbc's patches

README

Welcome to restlib!

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.