Application components

The components of this application include:

  • The database, created in Chapter 11Flask and GeoAlchemy2, which contains the tables for NBA Arenas, US States, US Counties, and US Congressional Districts
  • The app.py file, which initiates the application when called by a Python executable
  • The application folder, which contains the application code and folders
  • The __init__.py file, which makes the application folder into a module, defines the Flask object and connects to the database
  • The views.py file, which defines the API endpoints, the view functions, and the return responses
  • The models.py file, which defines the database table models as Python classes that subclass from SQLAlchemy
  • The forms.py file, which defines the ...

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.