O'Reilly logo

Flask Blueprints by Joël Perras

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Hublot – Flask CLI Tools

Often when administering a web application, there are tasks that we like to accomplish without having to create an entire administrative web interface; even though this may be accomplished relatively easily with tools such as Flask-Admin. Many developers first turn to a shell scripting language. Bash is near universal on most modern Linux operating systems, favored by system administrators, and is powerful enough to script any administrative task that may be required.

While the venerable Bash script is most definitely always an option, it would be nice to write a Python-based script that could utilize some of the application-specific data handling that we have crafted for our web application. In doing so, we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required