Metadata-Version: 1.0
Name: pyramid-rewrite
Version: 0.2
Summary: Small Pyramid extension for rewriting urls
Home-page: https://github.com/bennihepp/pyramid_rewrite
Author: Benjamin Hepp
Author-email: benjamin.hepp@gmail.com
License: BSD
Description: pyramid_rewrite
        ===============
        
        ------------
        Introduction
        ------------
        
        pyramid_rewrite is a small extension for `Pyramid <http://www.pylonsproject.org/>`_ to rewrite urls before further processing takes place.
        
        ------------
        Installation
        ------------
        
        Just do
        
        ``pip install pyramid_rewrite``
        
        or
        
        ``easy_install pyramid_rewrite``
        
        -------------
        Documentation
        -------------
        
        Usage example::
        
            def main(global_config, **settings):
                config = Configurator(settings=settings)
                config.include('pyramid_rewrite')
                # add url rewriting rules...
                #   first parameter is a regular expression
                #   second parameter is the target url
                config.add_rewrite_rule(r'/favicon.ico', r'/static/favicon.ico')
                config.add_rewrite_rule(r'/gallery/(?P<subpath>.*)',
                                        r'/root/%(subpath)s')
                #
                # ... rest of configuration
                #
                # return WSGI application instance
                return config.make_wsgi_app()
        
        Better documentation might follow.
        
        
        =======
        Changes
        =======
        
        0.2
        ---
        
        *  Added unit tests
        *  Changed logging level
        
        0.1
        ---
        
        *  Initial version. Working.
        
        
Keywords: pyramid rewrite pylons web
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Framework :: Pylons
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Software Development :: Libraries :: Python Modules
