Skip to main content

An SDK that allows flexibility between CPaaS providers.

Project description

OpenCpaas Python SDK

OpenCpaas allows customers to switch between CpaaS providers without having to rewrite code.

Currently supports:

  • Bandwidth
  • Twilio

See our full documentation.



pip install opencpaas

Getting Started

Client Initialization

Begin by initializing a new CpaaS client. This example uses the BandwidthClient for initialization. Specifics for each client can be found in each client's repository.

import opencpaas

auth = 	{
	'api_token': '789',
	'account_id': 'myaccount' ,
	'application_id': 'myapplication',
	'user': 'username',
	'pass': 'password',
	'site_id': '12345' 

client = BandwidthClient(auth)

Each type of CpaaS client will require different authentications. Refer to our documentation for a complete list.

Send an SMS

message = client.send_sms(to="+12223334444"
                          text="Hello there!")


Send an MMS

message = client.send_mms(to="+12223334444"
                          text="Take a look at this!"


Order a phone number

result = client.order_number(phone_number="+12223334444")


Order multiple phone numbers

result = client.order_numbers(area_code="410"


Make an outgoing phone call

parameters = {

call_id = client.create_call(to="+12223334444",


CpaaS clients require different callback urls. Please check our documentation for specific information on these urls.

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

opencpaas-0.0.1.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

opencpaas-0.0.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page