Flask

All things Flask ranging from core framework to all conceivable libraries. Tips on how to utilize Flask’s flexibility to create expressive applications.

Cracking Full Control Over Plot.ly Dash

Build apps with Plot.ly Dash on your own terms

Plot.ly; Finally typing those letters into a post headline tastes like a strange cocktail of pride and embarrassment. Plot.ly sits at the core of some of the most influential products I’ve had the chance to work on, which remain serving a hodgepodge of Fintech and humanitarian clients well to this day. This begs the question: what the

Plotly Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Dec 20
Read

Globally Accessible Variables in Flask: Demystifying the 'Application Context'

Breaking down the nuances of the ‘app context’ in Flask's Application Factory

A 'skill' that's always fascinated me is just how long some engineers can make it in their career while carrying glaringly obvious gaps in their knowledge of the systems they use every day. To my surprise, I've turned corners where I myself have been that engineer all along, and there's perhaps no better example of this then the time I've

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Dec 19
Read

Scraping Data on the Web with BeautifulSoup

The honest act of systematically stealing data without permission

There are plenty of reliable and open sources of data on the web. Datasets are freely released to the public domain by the likes of Kaggle, Google Cloud, and of course local & federal government. Like most things free and open, however, following the rules to obtain public data can be a bit... boring. I'm not suggesting we go and

Python Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Nov 11
Read

Structuring your Flask App Like a Responsible Adult

Leverage Blueprints, Flask-Assets, and the Application Factory.

When we first started developing in Flask, most of us took the 5 lines of code in the quick-start guide and ran with it. Compared to every other web framework, getting a "Hello world" to flash on screen without being hassled with database configurations, template preferences, or reverse proxy setups felt a lot like robbing a bank.

At some point

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Oct 15
Read

Flask Routing & Sessions: A Subtle Symphony

With great flexibility comes great responsibility

It isn't often you find somebody sad or miserable enough to detail the inner workings of web framework features, such as sessions or routing. This is understandably so; we use frameworks because presumably hate dealing with these things from scratch. This is especially so when it comes to Flask, which only released version 1.0 a few months ago, introducing

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Sep 19
Read

Recreate JIRA Service Desk in Python & Flask

When SaaS doesn't cut it, beat it down and take everything its got

When it comes to SaaS products in the realm of Service desks, JIRA Service Desk is at the very least, just as powerful as the next solution (Zendesk comes to mind). This naturally begs the question: Why is JIRA Service Desk's pricing model roughly 1/10th of that of it's competitor?

The answer lies within ease of use, but more

Atlassian Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Aug 31
Read

The End-to-End Guide to Handling Forms in Flask

The subtle art of consenually capturing personal data

Happy Tuesday everybody! To start this week hot, let's talk about something that everybody hates: forms. The only thing more painful than filling out a web form is creating one, much less a functional one with feedback. Listen, if you're into creating pleasant form UI experiences, you're probably into some freaky shit. Call me.

Flask's youth is an advantage in

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Aug 15
Read

Using MongoDB Atlas as your Flask Database

Since you prefer using Python and Flask, I’ll assume we both prefer enjoyable dev.

It's been roughly a year since MongoDB launched their Stitch "back-end as a service" product, and I've been tinkering with Mongo on the cloud ever since. Alright fine, "tinkering with" may better be described as  "accidentally became dependent on it after developing new features in production environments," but I can't really complain thus-far. If you're not familiar, MongoDB Atlas is

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Jul 31
Read

Frontend in Flask: Page Templates and Static Assets

When Python developers manage presentation layers.

If you're familiar with Django (or Python to any extent), you've probably accepted the concept of what Python guys refer to as "static assets" without much consideration. At some point in Django's conception, a design decision was made: any code, styles, or assets were tucked away into their own respective uninteresting corners of the framework. Thus it was known: anything

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Jul 23
Read

Starting a Flask Application with Heroku

Ease-of-use framework: meet ease-of-use platform

We all knew it would only be a matter of time before a blog full of Python junkies would touch on Python's fastest growing framework. Staying true to all that is Pythonic, Flask is a gift to developers who value the act of development. By minimizing level of effort and maximizing potential, Flask allows us to be as minimalist (or

Flask Todd Birchard avatarTodd Birchard Todd Birchard avatar
toddJan 15
Jul 08
Read