Skip to main content

A RapidPro backend for RapidSMS.

Project description

This is the RapidPro backend for RapidSMS. It has been created for UNICEF to facilitate transition of legacy applications designed for RapidSMS and the Django web framework to the new RapidPro platform. This component uses the official rapidpro-python client library to communicate with RapidPro.

Features

  • Incoming (MO) SMS support

  • Outgoing (MT) SMS support

  • New configuration options
    • RapidPro API gateway URL

    • RapidPro API token

Requirements

  • Python 2.7+ or Python 3.3+

  • Django >=1.7,<=1.9

  • RapidSMS 0.18.0+

  • rapidpro-python >=1.0,<=2.1.5

Installation

The rapidpro-for-rapidsms backend supports Python >= 2.7 and Django >= 1.7. All required Python packages should be intalled automatically as long as you follow the official installation procedure described below.

To install from PyPi:

$ pip install rapidpro-for-rapidsms

Configuration

Edit your Django project settings (e.g. settings.py) to include the following:

  • add rapidpro4rapidsms to your INSTALLED_APPS, e.g.:

    INSTALLED_APPS = (
        # your apps
        'rapidpro4rapidsms',
    )
  • configure the backend to use your RapidPro service and API token, e.g.:

    INSTALLED_BACKENDS = {
        # some other backends (optional)
        "rapidpro-backend": {
            "ENGINE": "rapidpro4rapidsms.RapidProBackend",
            # The following URL and token should be set to match your RapidPro
            "rapidpro_api_gateway_url": "your rapidpro API gateway URL, e.g. "
                                                "http://127.0.0.1:8080/api/v1"
                                                "or"
                                                "rapidpro.io",
            "rapidpro_api_token": "YOUR-RAPIDPRO-API-TOKEN"
        }
    }
  • configure your Django project to include rapidpro4rapidsms.urls, e.g.:

    urlpatterns = patterns(
        # your Django project URLs
        # ...
        # rapidpro4rapidsms URLs
        url(r'backends/', include('rapidpro4rapidsms.urls')),
    )

LICENSE

The rapidpro-for-rapidsms backend is released under the BSD License. See the LICENSE.TXT file for more details.

Development

To install:

$ pip install -e .[development]

To run tests:

$ python setup.py test

Contributing

If you think you’ve found a bug or are interested in contributing to this project check out rapidpro-for-rapidsms on Github.

Development by Tomasz J. Kotarba of SYSTEM7.

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

rapidpro-for-rapidsms-1.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

rapidpro_for_rapidsms-1.0.2-py2.py3-none-any.whl (13.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rapidpro-for-rapidsms-1.0.2.tar.gz.

File metadata

File hashes

Hashes for rapidpro-for-rapidsms-1.0.2.tar.gz
Algorithm Hash digest
SHA256 db7b16ab68d62ad02b850c950cd6e7fbe79c9f9b18422fc713655f67bd74ab3b
MD5 586c33c1459d9ac163e2fdea632e5dcb
BLAKE2b-256 9e70a1a15b1ceadf90db4bd06d16e2587d6866d43eb6aca089dec71c21e890dc

See more details on using hashes here.

File details

Details for the file rapidpro_for_rapidsms-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rapidpro_for_rapidsms-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6b472296eaa68261f6cc3c04b4678d5cf1bb3a682209d448e121278cfe9b9506
MD5 65897a12515fd9496097b7e3ccd5b773
BLAKE2b-256 eb53b532fc9fe3a4777aa4bffbab79d84f88715239603ed82a484d7339f29448

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