项目作者: hakib

项目描述 :
Example IVR System with Python, Django, Pytest and Twilio
高级语言: Python
项目地址: git://github.com/hakib/twilio-ivr-test.git
创建时间: 2020-04-16T12:10:31Z
项目社区:https://github.com/hakib/twilio-ivr-test

开源协议:

下载


Example IVR System with Python, Django, Pytest and Twilio

Source code for the article series posted on the Twilio blog:

Building an Interactive Voice Response (IVR) System with Python, Django and Twilio

Quick Start

Clone project

  1. $ git clone git@github.com:hakib/twilio-ivr-test.git

Setup using Make

  1. $ make setup

This will create the virtual environment, install all the requirements and run the tests. Alternatively, you can setup the project manually.

Create virtual environment

  1. $ cd twilio-ivr-test
  2. $ python3 -m venv venv
  3. $ source venv/bin/activate

Install dependencies

  1. $ pip install --upgrade pip
  2. $ pip install -r requirements.txt
  3. $ pip install -r requirements-dev.txt

Run migrations

  1. $ python ivr/manage.py migrate

Run project (you’ll need a twilio account and a secret auth token to accept calls)

  1. $ TWILIO_AUTH_TOKEN=my-twilio-secret-token ivr/manage.py runserver

Run Tests

  1. $ pytest ivr

Run mypy

  1. $ mypy ivr