Possibility and Probability

A Python programmer with a personality thinking about space exploration

4 April 2016

A big list of Flask resources

by nickadmin

[caption id=”” align=”alignnone” width=”3000”]Flask web framework logo, flask resources The Flask web framework, the best python web framework[/caption] Over the last year I have spent a lot of time with Flask which is a python web framework. It is commonly referred to as a micro-framework because it tends to be lightweight and make use of plugins (as opposed to having everything built in like Django). These plugins are what makes Flask great, there is a great variety of common programming tasks that can be accomplished using these plugins. This helps you the programmer because now you don’t have to reinvent the wheel. Without these flask resources you would wind up recreating a lot of code. So here are the Flask plugins and tools that I have found really helpful while  developing websites for my clients.

Flask Resources and Tutorials

The best place to start  when learning something new is at the beginning. Flask is pretty easy to learn and there are lots of tutorials out there to help programmers of any skill level get up and running quickly. The Flask homepage -- Because this is a micro-framework, the code to demonstrate “Hello World” is very small. In fact, it is only 7 lines of code! That is so small they actually have it on the front page of their project’s website! The Flask Quickstart -- I like this one because it gets you up and running quickly. Learn Flask in your PJ’s -- This is a great series of 4 YouTube videos that walk you through creating a flask app from scratch. The video also covers other topics like Git and using the Cloud 9 IDE.

Flask Plugins

As I said earlier, one of Flask’s strengths is its ecosystem of plugins. These plugins are what makes Flask a micro-framework: Instead of Flask shipping with a million options that might never get used you can go out and get these small chunks of code to do specific tasks. Quick side note: Another benefit of the plugins is that if one doesn’t work for you for some reason you have some really interesting options available to you:

The first option is great if you want try out a plug-and-play option really quickly (e.g. does this other plugin have this same bug?), or if you want to try out a completely different technology (e.g. can I use Mongo instead of SQL as my data store?) So having said all that, here’s the plugins I have found to be really helpful (these are pip install-able):

Wrapping up

I’m a pretty big fan of Flask. It is powerful enough to handle a website that I worked on that got thousands of visitors a day, yet small and lightweight enough to not get in my way as I did my work. These plugins are the secret sauce that makes Flask such a pleasure to work with. Do you know of some great flask resources everyone should know about? Let me know in the comments!