Gmt api

Hello everyone! I would like to ask how gmt or pygmt can be integrated into the front-end and back-end of web pages to create an API for real-time data analysis.

Hello @brioglade
Interesting idea ! In principle, you can use Flask to have a web interface where users can input/click options to produce a map with PyGMT. Via Dask, you can manage the asynchronous execution of tasks. Internally in my group, we have something similar that we implemented on Heroku, but we are migrating to Digital Ocean. It is not complex to do; on the contrary, it is even possible to implement it via docker/container. However, you need to structure it well beforehand. The advantage of using a docker+flask+dask solution is that you can test it on your machine before making it live on the internet.

My suggestion - clearly outline your objectives and use ChatGPT with the docker+flask+dask setup, and it will give you a path to follow.

Cheers

1 Like

I have no experience with developing web interfaces but this project may be helpful:

2 Likes