#!/usr/bin/env python3 import os from locuszoom.api import create_app from werkzeug.middleware.profiler import ProfilerMiddleware app = create_app() app.config["PROFILE"] = True app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30]) app.run(host=os.environ.get("LZAPI_HOST", "127.0.0.1"), port=os.environ.get("LZAPI_PORT", "7000"), debug=True)
def client(): app = create_app() client = app.test_client() return client