domdinicola / rapidpro-python

Python client library for the RapidPro API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RapidPro Python Client

Build Status Coverage Status PyPI Release

Official Python client library for the RapidPro. Supports latest Python 3.

Visit here for complete documentation.

Installation

pip install rapidpro-python

Example

from temba_client.v2 import TembaClient
client = TembaClient('rapidpro.io', 'your-api-token')
for contact_batch in client.get_contacts(group='Reporters').iterfetches(retry_on_rate_exceed=True):
    for contact in contact_batch:
        print(contact.name)

If you don't know your API token then visit the API Explorer

Development

For discussions about future development, see the RapidPro Developers Group.

To run the tests:

nosetests --with-coverage --cover-erase --cover-package=temba_client --cover-html

About

Python client library for the RapidPro API

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%