{"id":23342,"library":"bandwidth-sdk","title":"Bandwidth SDK","description":"Official Python SDK for Bandwidth's Communication Platform APIs (Voice, Messaging, Multi-Factor Auth). Version 23.1.0 supports Python >=3.7. Monthly releases.","status":"active","version":"23.1.0","language":"python","source_language":"en","source_url":"https://github.com/Bandwidth/python-bandwidth","tags":["bandwidth","messaging","voice","api","sdk"],"install":[{"cmd":"pip install bandwidth-sdk","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Top-level package is 'bandwidth', not 'bandwidth_sdk'.","wrong":"import bandwidth_sdk","symbol":"Client","correct":"from bandwidth import Client"}],"quickstart":{"code":"from bandwidth import Client\n\nclient = Client(\n    username=os.environ.get('BW_USERNAME', ''),\n    password=os.environ.get('BW_PASSWORD', ''),\n    account_id=os.environ.get('BW_ACCOUNT_ID', '')\n)\ntry:\n    info = client.get_account()\n    print(info)\nexcept Exception as e:\n    print(f'Error: {e}')","lang":"python","description":"Initialize client with environment variables and fetch account info."},"warnings":[{"fix":"Use 'from bandwidth import Client' instead of 'import bandwidth_sdk'.","message":"The SDK uses 'bandwidth' as the import package, not 'bandwidth_sdk'. Using 'bandwidth_sdk' will cause ModuleNotFoundError.","severity":"breaking","affected_versions":"all"},{"fix":"Provide account_id as the third argument to Client.","message":"Account ID is required in the client constructor; omitting it will raise a TypeError.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace client.create_message(...) with client.send_message(...).","message":"The method 'Client.create_message' is deprecated; use 'Client.send_message' instead.","severity":"deprecated","affected_versions":">=20.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from bandwidth import Client'.","cause":"Attempting to import the package by its PyPI name.","error":"ModuleNotFoundError: No module named 'bandwidth_sdk'"},{"fix":"Include account_id: Client(username='...', password='...', account_id='...')","cause":"Missing account_id argument when creating Client.","error":"TypeError: __init__() missing 1 required positional argument: 'account_id'"},{"fix":"Check BW_USERNAME, BW_PASSWORD, and BW_ACCOUNT_ID environment variables.","cause":"Invalid credentials or insufficient permissions.","error":"bandwidth.api.exceptions.ApiException: (403) Forbidden"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}