blais / ranvier

A Powerful URL Mapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ranvier: A Powerful URL Mapper

Ranvier is a Python package that can be integrated in web application frameworks to map incoming URL requests to source code. It also serves as a central registry of all the URLs in a web application and can itself generate the URLs necessary for cross-linking pages. This mechanism allows web application writers let go of writing URLs manually and provides a powerful mechanism to check for incorrect links at render time. In addition, a live application can provide the list of resources that it serves at runtime, both for developer documentation or computer consumption. This allows test components for resources to be easily reused across application instances and to perform static checking of links in the source (without running any application code) and provides for testing coverage of accessed and rendered links. If you use this library to generate all your URLs you should be able to easily rearrange the entire layout of your site without breaking any links. Ranvier is pure Python code and does not have any 3rd-party dependencies; it should be usable in any Python-based web application framework.

  • Python 2.4 or more

There is a running demo of this code HERE.

A Mercurial repository can be found at:

http://github.com/blais/ranvier
  • This is similar in spirit to the Routes system implemented in Ruby-on-Rails and by its namesake Python library.

Copyright (C) 2005-2006 Martin Blais. This code is distributed under the GNU General Public License.

Martin Blais <blais@furius.ca>

About

A Powerful URL Mapper

License:GNU General Public License v2.0


Languages

Language:Python 95.3%Language:HTML 3.5%Language:Shell 0.6%Language:Makefile 0.4%Language:CSS 0.1%