Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Request routing for WebOb based WSGI applications
Python

Merge pull request #6 from kalloc/master

Allow to use _ in key, example "{user_id:int}"
latest commit 198cec7fa4
@andreypopp authored

README

routr -- lightweight request routing for WebOb
==============================================

Just a small example::

  from routr import route, GET, POST
  from routr.schema import form, String

  def create_user(username=None):
    ...

  def get_user(id):
    ...

  routes = route("/users",
    route(POST, "/",          form(username=String), create_user),
    route(GET,  "/{id:int}",  get_user)
    )

Docs_ are hosted at excellent readthedocs project.

.. _docs: http://routr.readthedocs.org/
Something went wrong with that request. Please try again.