module documentation

A small application that can be used to test a WSGI server and check it for WSGI compliance.
Function iter​_sys​_path Undocumented
Function render​_testapp Undocumented
Function test​_app Simple test application that dumps the environment. You can use it to check if Werkzeug is working properly:
Constant TEMPLATE Undocumented
Variable logo Undocumented
def iter_sys_path():

Undocumented

Returns
t.Iterator[t.Tuple[str, bool, bool]]Undocumented
def render_testapp(req):

Undocumented

Parameters
req:RequestUndocumented
Returns
bytesUndocumented
def test_app(environ, start_response):

Simple test application that dumps the environment. You can use it to check if Werkzeug is working properly:

>>> from werkzeug.serving import run_simple
>>> from werkzeug.testapp import test_app
>>> run_simple('localhost', 3000, test_app)
 * Running on http://localhost:3000/

The application displays important information from the WSGI environment, the Python interpreter and the installed libraries.

Parameters
environ:WSGIEnvironmentUndocumented
start​_response:StartResponseUndocumented
Returns
t.Iterable[bytes]Undocumented
TEMPLATE: str =

Undocumented

Value
'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<title>WSGI Information</title>
<style type="text/css">
  @import url(https://fonts.googleapis.com/css?family=Ubuntu);

  body       { font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Geneva
...
logo =

Undocumented