Build the future of communications.
Start Building for Free

Python posts

  • By Johnny Nguyen
    How to Send an Email with Notion, SendGrid, and Python How to Send an Email with Notion, SendGrid, and Python

    Notion is a useful tool for project management and note taking. Users can easily create new pages and databases for managing their projects. For example, you could create pages for email templates and then add a database for a mailing list. Why shouldn't you also be able to send an email with Notion?

    In this post, you will learn how to use Notion to create email templates and an email mailing list. Using Python and SendGrid, you will make a console program, complete with argument parsing, so you can effectively send your emails.

    Prerequisites

    To continue with this tutorial, you will need:

    After you …

    Read More
  • By Johnny Nguyen
    How to Find Your Classes with Twilio SMS, Python, and Airtable How to Find Your Classes with Twilio SMS, Python, and Airtable

    You can always count on the fact that I will get lost the first week of each college semester. I can have a physical copy of my schedule, my schedule set as my phone wallpaper, or a web page with my schedule pulled up. However, it can still take me a while to sift through webpages, find the building, search up the building, open up the directions, and then find the classroom.

    With the new school semester coming around the corner, this problem came to mind during a coding workshop, and I programmed it in less than an hour. In this tutorial, you will learn how to use Twilio SMS, Python, and Airtable to send you an SMS message of your classes with directions for the day, so you can find your classes on time.

    Prerequisites

    To continue with this tutorial, you will need:

    Read More
  • By Ath Tripathi
    Enable Multiple OTP Methods in your Django Application with Twilio Enable Multiple OTP Methods in your Django Application with Twilio

    In this tutorial, you will learn how to make a one-time password (OTP) verification system in Django using Twilio. This application will allow users to select their preferred method of receiving the OTP.

    We will be using the Twilio SMS service and Twilio WhatsApp sandbox to deliver OTPs through SMS and WhatsApp channels to users.

    Let’s talk about our main focus for this tutorial.

    Our primary focus will be to make a pipeline of delivering OTPs and verifying them. That’s all we are going to do today.

    What are we not going to do?

    We will not make an entire Django user management and authentication system using the default Django login setup — we will be simply using cookies to see if the user is OTP verified or not.

    Keeping these things in mind, let’s get started.

    Prerequisites

    • Python 3.6 or above installed
    • Basic knowledge of Django (You'll have a …
    Read More
  • By Ravgeet Dhillon
    How to Build Client Payment Reminders using Twilio, Notion, and Python How to build client reminders header image

    Running a business requires payment handling. It doesn't matter whether you are a freelancer or a big corporation, sometimes clients forget to pay their pending dues. If you have a huge list of clients, it makes for a tedious experience to go through the records daily and send them reminders. To solve this issue, you can automate the entire reminder workflow.

    In this tutorial, you’ll learn to use Twilio’s WhatsApp API with the Notion API and Python to send payment reminders to your clients at regular intervals. You will use Notion for storing data, Twilio for sending WhatsApp messages, and Python to implement the business logic. We will create three reminders that will be sent 7 days before, 3 days before, 1 day before, and each day after the payment is due.

    Prerequisites

    To follow this tutorial you need the following items:

    • Python 3.6 or newer. If your operating system …
    Read More
  • By Johnny Nguyen
    How to Build a Linear Regression Model Using Twilio SMS and Python How to Build a Linear Regression Model Using Twilio SMS and Python

    Linear regression is a common and useful approach for modeling the relationship between a dependent variable and one or more independent variables. Its use spans many applications, such as economics, medicine, and science. Whether you're an expert in a lab or a beginner on a laptop, linear regression is a way to achieve valuable results built on relatively simple formulas.

    In this tutorial, you will implement a linear regression model using Python and scikit-learn. To add more functionality, you will use Flask and Twilio's Programmable Messaging API to help you build your data and make predictions from the convenience of your phone.

    Prerequisites

    To continue with this tutorial, you will need:

    • Python 3.10 or higher installed on your machine.
    • A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
    • A Twilio phone number. After having an account, you will need to obtain a Twilio phone …
    Read More
  • By Neil Ruaro
    How to Create an API Texting Service using Twilio SMS and Python How to Create an API Texting Service using Twilio SMS and Python

    Texting is one of the most common forms of communication in the modern age. Twilio provides a simple and easy-to-use interface for sending SMS text messages through their SMS API.

    In this tutorial, you’ll be using the Twilio SMS API to create your very own API texting service using Python and the FastAPI framework.

    Additionally, you’ll also learn about testing backend servers created with FastAPI, as well as how to deploy the API to Heroku using Docker.

    If you're unfamiliar, FastAPI is a Python web framework for creating fast API applications. FastAPI also has default integration with Swagger documentation and makes it easy to configure and update.

    Docker, on the other hand, is an industry staple in software engineering, as it is one of the most popular containerization softwares out there. Docker is used for developing, deploying, and managing applications in virtualized environments called containers.

    The main selling point …

    Read More
  • By Johnny Nguyen
    Build a Travel Recommender with Twilio MMS, Flask, and Airtable Build a Travel Recommender with Twilio MMS, Flask, and Airtable

    Are you looking for your next travel destination, but can't decide on where to travel to? For National Anti-Boredom Month, consider building this travel recommendation bot to make the decision for you.

    In this tutorial, you will use Twilio's Programmable Messaging API, Python, Flask, and Airtable to build a travel recommendation bot. After messaging the bot, the bot will reply with an image and location of your next travel destination.

    Prerequisites

    To continue with this tutorial, you will need:

    Read More
  • By Anthony Dellavecchia
    Get The Latest NBA News Sent to Your Phone via SMS F5 Your Phone to Get the Latest NBA News

    In light of June 30th, 2022, the date when NBA teams can begin negotiations with free agents, now is an exciting time to be a basketball fan. We’ve already seen so much breaking news like Kevin Durant and Kyrie Irving demanding trades, the Timberwolves giving away the farm for Rudy Golbert, and surely much more to come.

    I know many fans who are F5ing their news feeds on their computers, so wouldn’t it be fun to do from your phone too? In this post, I’ll teach you how to write a Python application that texts you NBA news.

    Prerequisites

    Before getting started, it’s important to have the following before moving on:

    • Python 3.6 or higher installed on your machine.
    • A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
    • ngrok installed on your machine. ngrok is a useful tool for connecting your local server …
    Read More
  • By Ashi Garg
    Build a Passwordless Authentication System Using Django, Twilio Verify, and SendGrid Build a Passwordless Authentication System Using Django, Twilio Verify, and SendGrid

    Requiring passwords to sign up for a service has many demerits, such as a high chance of passwords being stolen and requiring users to remember passwords all the time. On the contrary, a passwordless authentication system has many benefits. For instance, it saves users from being a victim of the most common attack—the Brute Force Attack. Additionally, many users have a tendency to use the same password for multiple websites/applications, which then can lead to a Credential Stuffing Attack. A passwordless authentication system helps save users from such an attack as well.

    A passwordless authentication system lets users access the applications by verifying their identity using a secure token, biometric signature or any other secure proof of identity which is not knowledge based or does not require any private information.

    In this tutorial, you will learn how to create a passwordless authentication system using Twilio Verify, SendGrid, …

    Read More
  • By Robert Alford
    Build a Progressive Web Application with Django and Angular Part 2: Frontend Interface with Angular Build a Progressive Web Application with Django and Angular Part 2: Frontend Interface with Angular

    In the first part of this tutorial series, we began building a trivia game as a Progressive Web Application. We used the Django web framework and the Python programming language to create and populate our project’s database with trivia data, and the Django Rest Framework to rapidly develop a read-only API endpoint for our project’s frontend interface to consume along with a browsable web-based interface for viewing our API data in JSON format. Now in part two of this series, we will build our trivia game’s UI using the Angular frontend framework and TypeScript, a strongly-typed extension of the JavaScript programming language that is fully integrated into Angular. And finally we will convert our project into a Progressive Web Application (PWA) that can be installed alongside native applications on a mobile device such as a phone or tablet.

    Screenshot of completed trivia app

    Tutorial requirements

    • Python version 3.6 or higher. If you do …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.