from os import getenv from neomodel import config pw = getenv('NEO4J_PW') user = getenv('NEO4J_USER') host = getenv('NEO4J_HOST') port = getenv('NEO4J_PORT', 7687) config.DATABASE_URL = f'bolt://{user}:{pw}@{host}:{port}' from .api import attach_to_flask def setup(app, socketio): attach_to_flask(app)