Released: txrestapi 0.1
written by Ian McCracken
at Monday, September 6, 2010
Sorry updates have been horribly infrequent; I both had a kid and moved to Austin (in that order) in the last few months. With that out of the way, to the code...
I got frustrated chaining twisted.web.resource.Resource classes to provide a complex REST API service, so I wrote a new package that lets you do it with regular expressions and decorators, like:
@GET('^/path/to/api/method$')
def on_api_method(self, request):
...
I'm pretty fond of it already. Code is on GitHub, package is available from pypi — and, of course, via easy_install. Full docs are at both sites, quick example after the jump.Read More...