Flask is a good choice for a Python web framework for a REST API. Partnered with SQLAlchemy and GeoAlchemy2 (see Chapter 11, Flask and GeoAlchemy2, for more information on both), it allows the REST URL endpoints to be paired with a view (a Python function) that will process the request in different ways depending on the request method (such as GET and POST, to name two examples) and return JSON data.