Skip to content

Instantly share code, notes, and snippets.

@juanbenitopr
Created May 23, 2020 10:24
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 juanbenitopr/14a66aeeb2012bd79abb9be4bd53fed7 to your computer and use it in GitHub Desktop.
Save juanbenitopr/14a66aeeb2012bd79abb9be4bd53fed7 to your computer and use it in GitHub Desktop.
WSGI python application
from typing import Dict, Any
# Sibling fake of Django
class Fango:
def __call__(environ: Dict[str, Any], start_response) -> bytes:
HELLO = b'Hello!'
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
return HELLO
app = Fango()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment