import sys
import tempfile
-from asgi_lifespan import LifespanManager
-import httpx
-
import psycopg2
import psycopg2.extras
def create_api_request_func_starlette(self):
import nominatim.server.starlette.server
+ from asgi_lifespan import LifespanManager
+ import httpx
async def _request(endpoint, params, project_dir, environ):
app = nominatim.server.starlette.server.get_application(project_dir, environ)