How to Build Chat into Django Applications with Twilio Programmable Chat


Looking to build a realtime chat app? Building this from scratch requires thinking about lots of concerns at once. How should you model your users? What about different channels and different access levels? How about showing which users are online and when they start typing a message? There’s these questions and a lot more to answer when building a quality chat app. That’s where Twilio Programmable Chat comes… Read More

How to receive and download picture messages in Python with Twilio MMS

Screen Shot 2018-05-10 at 5.26.51 PM

Have you ever needed to programmatically download an image from an MMS message sent to your Twilio number? Well here’s all the code you need to do this using Python and Flask:

To run the above code, you’ll need to have the Twilio Python helper library installed, as well as the Flask framework. Don’t forget to replace the value of the DOWNLOAD_DIRECTORY variable with a path to… Read More

Building a Django Twilio Programmable Chat Application

Typing on a laptop with coffee and accessories

As a developer, I’ve always wanted to include chat capabilities in the applications I’ve created.  Coding applications is fun but I’ve been stumped by the idea of creating the complex infrastructure needed to support real-time chat.  Fortunately, I found that Twilio makes it easy to include chat capabilities in just about any application. In this tutorial, we’ll be creating a chat application using Python and the Django… Read More

Build a Google Analytics Slack Bot with Python

Google Analytics on a Laptop

Google Analytics is an incredibly powerful tool. All of the members of your team can see everything from which sources your web traffic comes from to what demographics frequent your site. There’s just one problem: Nobody is willing to go to the Google Analytics site and look! If these features aren’t used they may as well not exist. So, to give teammates easier access you can… Read More

Send Email programmatically with Gmail, Python, and Flask

Screen Shot 2018-03-02 at 10.21.52 AM

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