Python client library for the RapidPro
Project description
RapidPro Python Client
======================
![Build Status](https://travis-ci.org/rapidpro/rapidpro-python.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/rapidpro/rapidpro-python/badge.svg?branch=master)](https://coveralls.io/github/rapidpro/rapidpro-python)
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.v1 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)
[![Coverage Status](https://coveralls.io/repos/github/rapidpro/rapidpro-python/badge.svg?branch=master)](https://coveralls.io/github/rapidpro/rapidpro-python)
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.v1 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-2.1.1.tar.gz
(29.9 kB
view hashes)
Built Distribution
Close
Hashes for rapidpro_python-2.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2d359a364ebbd275b157c8e435326a980200b34640f04f6774b27d062c3323 |
|
MD5 | e64a289f3162fe8176093b86f5daca88 |
|
BLAKE2b-256 | 1cb6250a9dbc10af8aa76e94bb4e9d1c04b23f122e0704e4fce55c464f2d8500 |