Metadata-Version: 1.1
Name: bottle-werkzeug
Version: 0.1
Summary: Werkzeug integration for Bottle.
Home-page: http://bottlepy.org/docs/dev/plugin/werkzeug/
Author: Marcel Hellkamp
Author-email: marc@gsites.de
License: MIT
Description: 
        This plugin adds support for :class:`werkzeug.Response`, all kinds of
        :exc:`werkzeug.exceptions` and provides a thread-local instance of
        :class:`werkzeug.Request`. It basically turns Bottle into Flask.
        
        The plugin instance doubles as a werkzeug module object, so you don't need to
        import werkzeug in your application.
        
        For werkzeug library documentation, see: http://werkzeug.pocoo.org/
        
        Example::
        
        import bottle
        
        app = bottle.Bottle()
        werkzeug = bottle.ext.werkzeug.Plugin()
        app.install(werkzeug)
        
        req = werkzueg.request # For the lazy.
        
        @app.route('/hello/:name')
        def say_hello(name):
        greet = {'en':'Hello', 'de':'Hallo', 'fr':'Bonjour'}
        language = req.accept_languages.best_match(greet.keys())
        if language:
        return werkzeug.Response('%s %s!' % (greet[language], name))
        else:
        raise werkzeug.exceptions.NotAcceptable()
        
        
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires: bottle (>=0.9)
Requires: werkzeug
