Skip to main content

A middle man service that acts as a Twilio wrapper

Project description

About the Project

As I was going through Zapier's most popular projects, I came across one that caught my eye. They had an application that could forward a text message to an email address using the Twilio API. Having experience with the Twilio API, I decided I'd make a similar project.

Getting Started

Prerequisites

The only external package you need is the requests library. Also, you will need a Twilio account, and an email that allows you to send emails.

Quick Start

Simply import TwilioToEmail and pass the decoded Twilio body into the SmsMessage class. Then forward the message via the Email class's send_email function. Check out the example below.

from TwilioToEmail import SmsMessage

sms_body = SmsMessage(Twilio.decode('utf-8').split("&"))

email = twilio_mail.Email("from_email","to_email","subject line")
email.send_email(sms_body)

Some Nice Features

TwilioToEmail can also handle media messages as well. Files like images, videos, audio, and others are saved as either MP4 or JPG. If a path location is not given to the SmsMessage class then the default home/last_four_digits_of_number directory is used to save media files.

Roadmap

  • Allow user to parse through SMS body via a dictionary
  • Add all default keys in the dictionary that Twilio API sends
  • Allow user to compress media files
  • Let user save info in CSV

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TwilioToEmail-0.0.7.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TwilioToEmail-0.0.7-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file TwilioToEmail-0.0.7.tar.gz.

File metadata

  • Download URL: TwilioToEmail-0.0.7.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3

File hashes

Hashes for TwilioToEmail-0.0.7.tar.gz
Algorithm Hash digest
SHA256 239cae1b3fe2314de8f7700d55199dd21cce46052e4ffcb3dc9c16f0e97054bf
MD5 08ee07f8c143af3a7bda6a50b6779c8a
BLAKE2b-256 948bf78003ac4d5e3bcd7b54a4a42cf3186cb4897386b5fd757fa9a5b3154f36

See more details on using hashes here.

File details

Details for the file TwilioToEmail-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: TwilioToEmail-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3

File hashes

Hashes for TwilioToEmail-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1a81769cc6fe1434504aa2e88f3c4ba31fd9d77bbed81279d2eb76bbbec57834
MD5 1ef43bb61aff6bbd966910dfc4f536dc
BLAKE2b-256 44cc56e0fda235bc40954ece2195e7f4be22649af3dc8a82557cb4ae3452907f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page