Skip to main content

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 >=2.1.6

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.

Metadata

Release files for rapidpro-for-rapidsms 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rapidpro-for-rapidsms 1.0.3
File Size Uploaded
rapidpro-for-rapidsms-1.0.3.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rapidpro-for-rapidsms 1.0.3
File Interpreter ABI Platform
rapidpro_for_rapidsms-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.5 kB

Release files / rapidpro-for-rapidsms-1.0.3.tar.gz

Download URL rapidpro-for-rapidsms-1.0.3.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
03d420292d58afd297bd7ecb35802ebbe71f7ec8b74d631f0931a554e2262397
BLAKE2b-256 checksum
How to use checksums
28f9c6927597ad40521abd87d3e233d623b2f7a1f6e4b6ecb249a66c3ebd2852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rapidpro_for_rapidsms-1.0.3-py2.py3-none-any.whl

Download URL rapidpro_for_rapidsms-1.0.3-py2.py3-none-any.whl
Size 13.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
574cbfde8f60860a233457dad1a61874b36baabb78e2ee6eec904b706bd074ce
BLAKE2b-256 checksum
How to use checksums
8763126151aa3c0a09fcb0e58e31d7ff08db5ea3d9cd7745d2e368a028120765
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page