Python client library for the RapidPro
Project description
RapidPro Python Client
======================
![Build Status](https://travis-ci.org/rapidpro/rapidpro-python.svg?branch=master)
Official Python client library for the [RapidPro](http://rapidpro.github.io/rapidpro/). Supports latest Python 2 and 3.
Visit [here](http://rapidpro-python.readthedocs.org/) for complete documentation.
Installation
------------
```
pip install rapidpro-python
```
Example
-------
```python
from temba import TembaClient
client = TembaClient('rapidpro.io', 'your-api-token')
for contact in client.get_contacts():
print(contact.name)
client.create_broadcast(text="Howdy", contacts=contacts[0:5])
client.block_contacts(contacts[1:3])
```
If you don't know your API token then visit the [API Explorer](http://rapidpro.io/api/v1/explorer)
Development
-----------
For discussions about future development, see the [RapidPro Developers Group](https://groups.google.com/forum/#!forum/rapidpro-dev).
To run the tests:
```
nosetests --with-coverage --cover-erase --cover-package=temba --cover-html
```
======================
![Build Status](https://travis-ci.org/rapidpro/rapidpro-python.svg?branch=master)
Official Python client library for the [RapidPro](http://rapidpro.github.io/rapidpro/). Supports latest Python 2 and 3.
Visit [here](http://rapidpro-python.readthedocs.org/) for complete documentation.
Installation
------------
```
pip install rapidpro-python
```
Example
-------
```python
from temba import TembaClient
client = TembaClient('rapidpro.io', 'your-api-token')
for contact in client.get_contacts():
print(contact.name)
client.create_broadcast(text="Howdy", contacts=contacts[0:5])
client.block_contacts(contacts[1:3])
```
If you don't know your API token then visit the [API Explorer](http://rapidpro.io/api/v1/explorer)
Development
-----------
For discussions about future development, see the [RapidPro Developers Group](https://groups.google.com/forum/#!forum/rapidpro-dev).
To run the tests:
```
nosetests --with-coverage --cover-erase --cover-package=temba --cover-html
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rapidpro-python-1.2.tar.gz
(16.4 kB
view hashes)
Built Distribution
Close
Hashes for rapidpro_python-1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 763b410e390017da300deef36dd7bac5ea0ac2579540a586b92a674e00f505ee |
|
MD5 | 86ca6c8343cacce8993826313b52246a |
|
BLAKE2b-256 | 57301da2015215b5dcc8c3b850a271e419f045a1d0abb9ae29e71227a4631d4d |