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_client.client 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_client --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_client.client 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_client --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.6.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for rapidpro_python-1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d13aef4af65a696bf521a4f734f9525a200dc7086d5eec1d55096a5fe3775c |
|
MD5 | 1ea1b9b2dcb73e73140b7e2c5d852c10 |
|
BLAKE2b-256 | e838e94dc6b6882bc04774285d801fd4858897b389ee18bab302147e8bf577b2 |