Install the Vonage Python Server SDK

Create a virtualenv and install the Vonage Python Server SDK into it.

$ python3 -m venv venv # use `virtualenv venv` on Python 2
source venv/bin/activate
 
pip install nexmo

How to Send SMS Messages with Python, Flask and Nexmo

This tutorial introduces you to sending SMS with Python, making use of the Nexmo Python library. It starts by showing how to send SMS from the REPL, then goes on to show you how to build a simple flask app with SMS capabilities.

Steps
1
Introduction to this tutorial
2
Prerequisites
3
Install the Vonage Python Server SDK
4
Send an SMS from the Python REPL
5
Set up an SMS Sending Flask App
6
Add a Send SMS View
7
Run the Flask Server
8
Handle the Form Post
9
What's next?