Skip to content

Instantly share code, notes, and snippets.

@juanbenitopr
Created May 23, 2020 10:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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