JSON-RPC WebOb Example

I just saw this json-rpc recipe go by as a popular link on del.icio.us. It’s yet-another-*Server based recipe (BaseHTTPServer, XMLRPCServer, etc). I don’t know why people keep writing these. WSGI is in all ways easier, clearer, and more useful.

So I figured I’d give it a go myself, using WebOb. Then I figured it might make a good document, and I annotated it and turned it into a tutorial. It’s also an example of using WebOb as a client library.

I’ve added several tutorials in the past months, which I thought I should also point out. The wiki example is fairly pedestrian, but shows how to do typical application-style development with WebOb. A more interesting example is the comment middleware example, which shows how much easier it can be to write middleware using WebOb than traditional WSGI middleware.

I think WebOb’s particular strong points are with middleware (where it makes middleware vastly easier to write) and web services of various kinds (RESTful or not).

Automatically generated list of related posts:

  1. WebOb decorator Lately I’ve been writing a few applications (e.g., PickyWiki and...
  2. WebOb I’ve have it in my head to extract/rewrite parts of...
  3. What Does A WebOb App Look Like? Lately I’ve been writing code using WebOb and just a...
  4. WebOb Do-It-Yourself Framework My old do-it-yourself framework tutorial was getting a bit long...
  5. Making a proxy with WSGI and lxml You can use WSGI to make rewriting middleware; WebOb specifically...