Skip to main content

RapidSMS Tropo Threadless Backend

Project description


Basic `Tropo <>`_ backend for
`RapidSMS <>`_, version 0.14.0 or later.


* `RapidSMS <>`_, version 0.14.0 or later
(pip install 'rapidsms>=0.14.0')
* `Django <>`_, version 1.4 or later.


Create an application at Its type should be "Web API".

Add rtropo to your Python path and set up the Tropo backend in your Django
settings file.

The required settings for your Tropo backend in INSTALLED_BACKENDS are:


A dictionary with the rest of your settings for this backend. Required
settings inside `config` are:

Your messaging token from Tropo (a long hex string)

The phone number your Tropo app is using. Must start with "+" and the
country code.

For example::

"my-tropo-backend": {
"ENGINE": "rtropo.outgoing.TropoBackend",
'config': {
# Your Tropo application's outbound token for messaging (required)
# Your Tropo application's voice/messaging phone number, starting
# with "+" and the country code (required)
'number': '+1-###-###-####',

At this point you should be able to send outgoing messages, but more setup is needed to receiving incoming messages.

Set up your URLconf to send incoming http requests from tropo to
`rtropo.views.message_received`, passing the backend_name parameter, whose
value must be the same as the backend name you used in INSTALLED_BACKENDS.

For example::

from django.conf.urls.defaults import *
from rtropo import views

urlpatterns = patterns('',
kwargs={'backend_name': 'my-tropo-backend'},

You can use any URL. If you want to add some (slight) protection against
someone other than Tropo passing you messages pretending to be Tropo, you
might make your URL long and random, e.g.::

from django.conf.urls.defaults import *
from rtropo import views

urlpatterns = patterns('',
kwargs={'backend_name': 'my-tropo-backend'},

Configure your Tropo application at so its SMS/Messaging URL will invoke the Django URL that you just configured. E.g.::


* `Tropo's API doc <>`_
* `Receiving text messages <>`_

Development by `Caktus Consulting Group <>`_.


v0.2.0 (Released 2013-05-20)

* Updates for RapidSMS 0.14 and later.
* Support for bulk messaging - with RapidSMS 0.14.0 or later, many messages
can be sent without requiring separate round trip requests to Tropo for each.
* Add tests
* Add tox test runner
* Drop Tropo python library, which was hardly being used anyway.
* Security improvements.

v0.1.2 (Released 2013-05-17)

- Add validation of some incoming requests from Tropo.
- Probably last version to support threadless-router, rapidsms<0.10.0

v0.1.1 (Released 2012-07-02)

- Updated MANIFEST to include

v0.1.0 (Released 2012-06-28)

- Initial stable release

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

rapidsms-tropo-0.2.0.tar.gz (13.9 kB view hashes)

Uploaded source

Supported by

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