This directory contains the FastAPI backend for the Mint v2 - Malaria Intervention Tool. It provides APIs for planning and optimizing malaria interventions. The main purpose is to call the emulator model and serve the results to the SvelteKit client application.
- uv for managing virtual environments and dependencies
- Redis server (for backend functionality)
Run FastAPI server in development mode (hot reloading):
uv run fastapi devTo run the tests, use the following command:
uv run pytestThe server calls run_scenarios in estimint, which derives the latent variables dn0 and eir from the input scenarios. These are passed to the neural network emulator in stateMINT, which takes the latent variables and covariates and returns predicted prevalence and cases. The server then formats those results and returns them to the client.