31 lines
752 B
Python
31 lines
752 B
Python
from contextlib import nullcontext
|
|
import imp
|
|
import os
|
|
|
|
from venv import create
|
|
from werkzeug.test import create_environ
|
|
from werkzeug.serving import run_simple
|
|
|
|
from werkzeug.urls import url_parse
|
|
from werkzeug.wrappers import Request, Response
|
|
from werkzeug.routing import Map, Rule
|
|
from werkzeug.exceptions import HTTPException, NotFound
|
|
from werkzeug.middleware.shared_data import SharedDataMiddleware
|
|
from werkzeug.utils import redirect
|
|
|
|
|
|
|
|
#environ = create_environ('/bla', 'http://localhost:8999')
|
|
#environ['PATH_INFO']
|
|
|
|
class Device(object):
|
|
|
|
def __init__(self, config):
|
|
pass
|
|
|
|
def dispatch_request(self, request):
|
|
return Response('got it')
|
|
|
|
app = Device(nullcontext)
|
|
|
|
run_simple('heupferd', 8999, app, use_reloader=True) |