Registry / communication / bandwidth-sdk

bandwidth-sdk

JSON →
library23.1.2pypypi✓ verified 80d ago

Official Python SDK for Bandwidth's Communication Platform APIs (Voice, Messaging, Multi-Factor Auth). Version 23.1.0 supports Python >=3.7. Monthly releases.

pip install bandwidth-sdk
INSTALL
IMPORT
SIG · BANDWIDTH-SDK
B
bandwidth-sdk
communicationpythonv23.1.2
Install
3.9s avg
Import
Disk
35MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v23.1.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 36.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 36MB
35MB installed
● package 35MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApiClient
from bandwidth import ApiClient
from bandwidth import Client

Initialize client with environment variables and fetch account info.

from bandwidth import Client client = Client( username=os.environ.get('BW_USERNAME', ''), password=os.environ.get('BW_PASSWORD', ''), account_id=os.environ.get('BW_ACCOUNT_ID', '') ) try: info = client.get_account() print(info) except Exception as e: print(f'Error: {e}')
Debug
Known issues
breakingThe SDK uses 'bandwidth' as the import package, not 'bandwidth_sdk'. Using 'bandwidth_sdk' will cause ModuleNotFoundError.
fix
Use 'from bandwidth import Client' instead of 'import bandwidth_sdk'.
affects: all
gotchaAccount ID is required in the client constructor; omitting it will raise a TypeError.
fix
Provide account_id as the third argument to Client.
affects: all
deprecatedThe method 'Client.create_message' is deprecated; use 'Client.send_message' instead.
fix
Replace client.create_message(...) with client.send_message(...).
affects: >=20.0.0
Upgrade
Version history
23.1.2latest on PyPI · released Jun 2, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
40
OpenAI (training)
1
Resources
bandwidth-sdk — pip install bandwidth-sdk · libregistry