An API to connect with Rapid Pro to update fields or groups by triggering it.
- pyenv
- python 3.8+
- Clone the repository
git clone https://github.com/DostEducation/rapidpro-api-client.git
- Switch to project folder and setup the vertual environment
cd rapidpro-api-client python3 -m venv venv
- Activate the virtual environment
source ./venv/bin/activate (For Bash) .\venv\Scripts\activate (For Powershell/CMD)
- Install the dependencies:
pip install -r requirements.txt
- Set up your .env file by copying .env.example
cp .env.example .env
- Add/update variables in your
.env
file for your environment. - Run the following command to get started with pre-commit
pre-commit install
- Start the server by following command
functions_framework --target=trigger --debug