-
Notifications
You must be signed in to change notification settings - Fork 4
Request routing for WebOb based WSGI applications
andreypopp/routr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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/
About
Request routing for WebOb based WSGI applications
Resources
Stars
Watchers
Forks
Packages 0
No packages published