Skip to content

Instantly share code, notes, and snippets.

@cdent
Forked from FND/tester.py
Created April 24, 2009 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdent/101283 to your computer and use it in GitHub Desktop.
Save cdent/101283 to your computer and use it in GitHub Desktop.
"""
Simple plugin to display the env.
"""
from pprint import pformat
def env(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return [pformat(environ)]
def init(config):
config['selector'].add('/env', GET=env)
config = {
"system_plugins": ["env"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment