INNER CODE UNIT · Python

lifespan

gokulapap/Reconator · backend/app/main.py:28

async def lifespan(app: FastAPI):
    configure_logging()
    init_sentry()
    with engine.begin() as conn:
        conn.execute(text("select 1"))
    yield


app = FastAPI(
    title=settings.app_name,
    version=settings.app_version,
    description="Automated reconnaissance framework — REST API",
    lifespan=lifespan,
)

# Rate limiter must be installed before route registration handlers run.
app.state.limiter = limiter

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…