Flask

Flask is a good choice for a Python web framework for a REST API. Partnered with SQLAlchemy and GeoAlchemy2 (see Chapter 11Flask 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. 

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.