Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Request routing for WebOb based WSGI applications

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 routr
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CHANGES
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 Makefile
Octocat-spinner-32 README
Octocat-spinner-32 TODO
Octocat-spinner-32 requirements.docs.txt
Octocat-spinner-32 setup.py
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.