app.py

Using an IDE or text editor, create a file inside arenaapp called app.pyOpen this file and add the following lines; this file will be run by the Python executable to initiate the REST API application:

from application import appapp.run()

The __init__.py file allows the application folder to be imported by app.py, allowing the Flask object app  and its app.run() method to be called. 

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.