{"id":18937450,"url":"https://github.com/bottlepy/bottle-werkzeug","last_synced_at":"2025-04-15T18:32:04.559Z","repository":{"id":14912523,"uuid":"17636585","full_name":"bottlepy/bottle-werkzeug","owner":"bottlepy","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-24T08:43:19.000Z","size":10,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T00:28:29.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bottlepy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-11T15:57:02.000Z","updated_at":"2019-01-23T08:18:32.000Z","dependencies_parsed_at":"2022-09-26T20:21:43.930Z","dependency_job_id":null,"html_url":"https://github.com/bottlepy/bottle-werkzeug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-werkzeug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-werkzeug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-werkzeug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-werkzeug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bottlepy","download_url":"https://codeload.github.com/bottlepy/bottle-werkzeug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129234,"owners_count":21217311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T12:11:12.519Z","updated_at":"2025-04-15T18:31:59.541Z","avatar_url":"https://github.com/bottlepy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nBottle-Werkzeug\n=====================\n\n`Werkzeug \u003chttp://werkzeug.pocoo.org/\u003e`_ is a powerfull WSGI utility library for \nPython. It includes an interactive debugger and feature-packed request and response \nobjects.\n\nThis plugin integrates :class:`werkzeug.wrappers.Request` and\n:class:`werkzeug.wrappers.Response` as an alternative to the built-in\nimplementations, adds support for :mod:`werkzeug.exceptions` and replaces the\ndefault error page with an interactive debugger.\n\n\n\nInstallation\n===============\n\nInstall with one of the following commands::\n\n    $ pip install bottle-werkzeug\n    $ easy_install bottle-werkzeug\n\nor download the latest version from github::\n\n    $ git clone git://github.com/bottlepy/bottle-werkzeug.git\n    $ cd bottle-werkzeug\n    $ python setup.py install\n\n\n\nUsage\n===============\n\nOnce installed to an application, this plugin adds support for \n:class:`werkzeug.wrappers.Response`, all kinds of :mod:`werkzeug.exceptions` and\nprovides a thread-local instance of :class:`werkzeug.wrappers.Request` that is\nupdated with each request. The plugin instance itself doubles as a werkzeug\nmodule object, so you don't have to import werkzeug in your application. Here\nis an example::\n\n    import bottle\n    from bottle.ext import werkzeug\n\n    app = bottle.Bottle()\n    werkzeug = werkzeug.Plugin()\n    app.install(werkzeug)\n\n    req = werkzeug.request # For the lazy.\n\n    @app.route('/hello/:name')\n    def say_hello(name):\n        greet = {'en':'Hello', 'de':'Hallo', 'fr':'Bonjour'}\n        language = req.accept_languages.best_match(greet.keys())\n        if language:\n            return werkzeug.Response('%s %s!' % (greet[language], name))\n        else:\n            raise werkzeug.exceptions.NotAcceptable()\n\n\n\nUsing the Debugger\n====================\n\nThis plugin replaces the default error page with an advanced debugger. If you\nhave the `evalex` feature enabled, you will get an interactive console that\nallows you to inspect the error context in the browser. Please read\n`Debugging Applications with werkzeug \u003cwerkzeug:debug\u003e`_ before you enable this\nfeature.\n\n\n\nConfiguration\n=============\n\nThe following configuration options exist for the plugin class:\n\n* **evalex**: Enable the exception evaluation feature (interactive debugging). This requires a non-forking server and is a security risk. Please read `Debugging Applications with werkzeug \u003cwerkzeug:debug\u003e`_. (default: False)\n* **request_class**: Defaults to :class:`werkzeug.wrappers.Request`\n* **debugger_class**: Defaults to a subclass of :class:`werkzeug.debug.DebuggedApplication` which obeys the :data:`bottle.DEBUG` setting.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlepy%2Fbottle-werkzeug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbottlepy%2Fbottle-werkzeug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlepy%2Fbottle-werkzeug/lists"}