Skip to main content

Python SDK for Vonage Cloud Runtime

Project description

Vonage Cloud Runtime SDK for Python

This is the Python SDK for Vonage Cloud Runtime. To use it you will need a Vonage account. Sign up for free at vonage.com.

For full documentation refer to developer.vonage.com.

Installation

To install the SDK run:

pip install vonage_cloud_runtime

Usage

The Vonage Cloud Runtime SDK gives you access to providers which help you build powerful communication applications with Vonage. As an example here is how you can listen for incoming calls to your Vonage Application with the Voice provider:

from vonage_cloud_runtime.vcr import VCR
from vonage_cloud_runtime.providers.voice.voice import Voice

vcr = VCR()
session = vcr.createSession()
voice = Voice(session)

await voice.onCall("onCall")

@app.post('/onCall')
async def onAnswer():
    return  [
                {
                    'action': 'talk',
                    'text': 'Hi from Vonage!'
                }
        ]

Get Started

The Vonage Cloud Runtime SDK has been designed for use with the Vonage Cloud Runtime Marketplace. There you will find prebuilt solutions to common communication workflows with Vonage, where you can try them out and edit them to fit your use case. Once finished, you can deploy the application and let Vonage manage the hosting for you.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vonage_cloud_runtime-1.3.0.tar.gz (36.0 kB view hashes)

Uploaded Source

Built Distribution

vonage_cloud_runtime-1.3.0-py3-none-any.whl (134.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page