If you work with graphs I can wholeheartedly recommend plotly/dash. It has a very intuitive API. And you can build a single page app dashboard with interactive graphs and buttons, sliders etc. in a few hours.
It is based on Flask.
If you just want API and no frontend, have a look at FastAPI.
It is based on Flask.
If you just want API and no frontend, have a look at FastAPI.