How to Code with Me - Wrapping a Flask App in a CLI

1 · Charles Tapley Hoyt · Jan. 11, 2021, midnight
Previous posts in my “How to Code with Me” series have addressed packaging python code and setting up a command line interface (CLI) using click . This post is about how to do this when your Python code is running a web application made with Flask and how to set it up to run through your CLI. The name of the package I’ll be referring to in this tutorial is granola_explosion (not a real package!) that follows the src/ layout. If you’re not familiar with this, check my previous post on organizing...