Send Email programmatically with Gmail, Python, and Flask

We’ve all been there – you just need to send an email from your application. Maybe it’s password resets or a product notification. You’re probably reading this because you’ve hit that point. Whatever your use case, this post will walk through how to send an email in code using a plain ol’ Gmail account. I’ll also show you how to fix some common errors you’ll see… Read More

Control an NEC Video Display Installation with Python

Python waterfall with NEC Displays

In this article you will learn how to control an NEC display via RS232 or UTP connection with the official nec-pd-sdk Python package from NEC. Reasons for controlling NEC displays programmatically vary from automatic turning them on and off, scheduling, monitoring, and more. I became interested in controlling NEC displays programmatically when I was building a virtual waterfall system and had issues with one of the displays. I needed… Read More

A Phone Number Proxy 📱↔️👻↔️📱

Girl Hiding Her Face

What would you do if you could have a dedicated phone number for anything you wanted? This blog post will show you how to create a phone number that hides your private phone number and acts as an intermediary between your phone number and other phone numbers. The use cases are many: separate work and private numbers international numbers while traveling (without buying a local sim)… Read More

Build a Bot Powered Slack Game with Python

Picture of a mostly closed laptop

One of my all-time favorite Facebook groups is “DogSpotting.” For those of you unfamiliar with this revolutionary group, it’s a Facebook group dedicated to posting pictures of random dogs you see as you go along your regular day. There are tons of “spotting” rules, but any way you slice it, this group is awesome. Using this model for inspiration, I built a Slack bot for a… Read More

How to Host a Python and Flask Facebook Messenger Bot on Heroku

Code on a laptop screen

With the rise of bots, people can create new tools to help make people’s lives easier. In the first part of this bot series, we discussed how to make a Facebook Messenger bot using Python, Flask, and Ngrok. However, for a bot in production, having all the requests processed on your personal computer won’t work well. That’s where a hosting service like Heroku can come in. Services… Read More

Mock it Til’ You Make It: Test Django with mock and httpretty

In this tutorial, we’ll learn how to use Python’s mock and httpretty libraries to test the parts of a Django app that communicate with external services. These could be 3rd party APIs, web sites you scrape, or essentially any resource which you don’t control and is behind a network boundary. In addition to that, we’ll also take a brief look into Django’s RequestFactory class and learn how we can use it to test our… Read More

Embedding Maps with Python & Plotly

Embed a Plotly visualization

Data Visualization is an art form. Whether it be a simple line graph or complex objects like wordclouds or sunbursts, there are countless tools across different programming languages and platforms. The field of geospatial analysis is no exception. In this tutorial we’ll build a map visualization of the United States Electoral College using Python’s plotly module and a Jupyter Notebook. Python Visualization Environment Setup This guide was… Read More

Building Facebook Messenger Bots with Python in less than 60 minutes


Chatbots are magical. Bots can be an amazing product that allow people to create new experiences, from reporting personal news to delivering women’s healthcare information. When I first learned about bots, I never imagined I would be able to make one on my own. However, I quickly dug into the Facebook Messenger documentation and began learning how with a bit of Python 3 and Flask, one… Read More