Twilio is a web application programming interface (API) that software developers can use to add communications such as phone calling, messaging, video and two-factor authentication into their Python applications.
Interacting with the standard telephone networks to send and receive phone calls and text messages without Twilio is extremely difficult if you do not know the unique telecommunications protocols such as Session Initiation Protocol (SIP). Twilio's API abstracts the telecommunications pieces so as a developer you can simply use your favorite programming languages and frameworks in your application. For example, here's how you can send an outbound SMS using a few lines of Python code:
# import the Twilio helper library (installed with pip install twilio) from twilio.rest import TwilioRestClient # replace the placeholder strings in the following code line with # your Twilio Account SID and Auth Token from the Twilio Console client = TwilioRestClient("ACxxxxxxxxxxxxxx", "zzzzzzzzzzzzz") # change the "from_" number to your Twilio number and the "to" number # to any phone number you want to send the message to client.messages.create(to="+19732644152", from_="+12023358536", body="Hello from Python!")
Learn more about the above code in the How to Send SMS Text Messages with Python tutorial.
Twilio is a developer-focused company, rather than a traditional "enterprise company", so their tutorials and documentation are written by developers for fellow developers.
Build a Simpsons Quote-Bot with Twilio MMS, Frinkiac, and Python combines picture messages sent via Twilio MMS with Frinkiac to create and sent Simpons cartoon quotes to any phone number.
IBM's Bluemix blog contains a nice tutorial on building an IoT Python app with a Raspberry Pi and Bluemix that uses Twilio to interact with the Raspberry Pi.
Google Cloud recommends developers use Twilio for communications in their apps and provides a short walkthrough for Python developers.