Building TwilioQuest with Twilio Sync, Django, and Vue.js

TwilioQuest is our developer training curriculum disguised as a retro-style video game. While you learn valuable skills for your day job, you get to earn XP and wacky loot to equip on your 8-bit avatar. Today we’ll pull back the curtain and show the code that the Developer Education team wrote to create TwilioQuest. Meet Wagtail, a Python & Django Based CMS TwilioQuest is full of content…. Read More

Basic Statistics in Python with NumPy and Jupyter Notebook

Jupyter, Python and NumPy logos

While not all data science relies on statistics, a lot of the exciting topics like machine learning or analysis relies on statistical concepts. In this tutorial, we’ll learn how to calculate introductory statistics in Python. What is Statistics? Statistics is a discipline that uses data to support claims about populations. These “populations” are what we refer to as “distributions.” Most statistical analysis is based on probability,… Read More

How to Receive and Respond to Text Messages in Python with Django and Twilio

You’re building a Django app and want to be able to respond to SMS messages? Let’s walk through the well written Django tutorial and add Twilio SMS to the canonical basic Django app. Setting up your environment Before moving on, make sure to have your environment setup. Getting everything working correctly, especially with respect to virtual environments is important for isolating your dependencies if you have multiple projects running… Read More

Never Forget A Friend’s Birthday with Python, Flask and Twilio

Python birthday reminders

Have you ever forgotten a friend’s birthday? It happens to the best of us. After the frustration of checking Facebook every day for birthdays, I wanted a better push notification system with better filters. I wrote an article, Building a Simple Birthday App with Flask-SQLAlchemy, showing a way to export your Facebook birthday calendar to an .ics file and import it into a DB with Flask and Flask-SQLAlchemy…. Read More

How to Build A Boba Tea Shop Finder with Python, Google Maps and GeoJSON

Boba tea

If you plant me anywhere in Manhattan, I can confidently tell you where the nearest bubble tea place is located. This may be  because I have a lot of them memorized, but for the times my memory betrays me, luckily I have the boba map on my data blog. In this tutorial, we’ll use a combination of Python, the Google Maps API, and geojsonio to create what… Read More

Request Signature Authentication for IVRs Built with Python

Python and Pyramid IVR

For many APIs it is desirable to authenticate requests made to an endpoint. For an interactive voice response (IVR) system API which returns TwiML, the only entity that should likely be allowed access in production is Twilio. This post will cover implementation of request signature validation in a Python IVR web application that uses the Pyramid web framework. Allowing Twilio Access To localhost Of the many ways to… Read More

Analyzing Messy Data Sentiment with Python and nltk

Python plus NLTK library.

Sentiment analysis uses computational tools to determine the emotional tone behind words. This approach can be important because it allows you to gain an understanding of the attitudes, opinions, and emotions of the people in your data. At a higher level, sentiment analysis involves natural language processing and artificial intelligence by taking the text element, transforming it into a format that a machine can read, and… Read More

JSON Serialization in Python using serpy

Python plus the serpy code library for serialization.

Serialization is the process of transforming objects of complex data types (custom-defined classes, object-relational mappers, datetime, etc.) to native data types so that they can then be easily converted to JSON notation. In this blog post, we will use a neat little library called serpy to see how such transformations work. We will then integrate this code in a tornado-based web server for a quick demo of how… Read More

Getting Started on Geospatial Analysis with Python, GeoJSON and GeoPandas

GeoSpacial Analysis In Python

As a native New Yorker, I would be a mess without Google Maps every single time I go anywhere outside the city. We take products like Google Maps for granted, but they’re an important convenience. Products like Google or Apple Maps are built on foundations of geospatial technology. At the center of these technologies are locations, their interactions and roles in a greater ecosystem of location services…. Read More