Registry / communication / webexpythonsdk

webexpythonsdk

JSON →
library2.0.6pypypi✓ verified 88d ago

A Python SDK for interacting with the Webex (formerly Cisco Spark/Webex Teams) APIs. Version 2.0.6 is the latest, supporting Python 3.10+. The library was renamed from webexteamssdk in v2.0.0, dropping Python 2 support. Released on GitHub under the WebexCommunity organization. Release cadence is irregular, with minor patches every few months.

pip install webexpythonsdk
INSTALL
IMPORT
SIG · WEBEXPYTHONSDK
W
webexpythonsdk
communicationpythonv2.0.6
Install
2.3s avg
Import
700ms
Disk
21MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.0.6 · 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
glibc
py 3.10
✓ —
✓ 2.5s
py 3.11
✓ —
✓ 2.4s
py 3.12
✓ —
✓ 2.2s
py 3.13
✓ —
✓ 2.1s
py 3.9
✕ build_error
✕ build_error
21MB installed
● package 21MB
Code
Verified usage

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

WebexAPI
✓ from webexpythonsdk import WebexAPI
✗ from webexteamssdk import WebexAPI
The library was renamed from webexteamssdk to webexpythonsdk in v2.0.0. The old import no longer works.
ApiError
✓ from webexpythonsdk.exceptions import ApiError
✗ from webexpythonsdk import ApiError
ApiError is in the exceptions module, not top-level.

Initialize the SDK with your Webex Bot Token and list rooms. Replace 'your_token_here' with a valid token.

import os from webexpythonsdk import WebexAPI api = WebexAPI(os.environ.get('WEBEX_TOKEN', '')) for room in api.rooms.list(): print(room.title)
Debug
Known issues
breakingLibrary renamed from webexteamssdk to webexpythonsdk in v2.0.0. Existing code using 'from webexteamssdk import ...' will break. Migrate to webexpythonsdk.
fix
Change your import to 'from webexpythonsdk import ...' and update requirements files.
affects: >=2.0.0
breakingPython 2 support removed. Python 3.10+ required. Older codebases on Python 2 or 3.6-3.9 will not work.
fix
Upgrade to Python 3.10 or later.
affects: >=2.0.0
gotchaThe 'max' parameter in list_messages() can cause confusion. It limits the total number of messages returned across all pages, not per page. If you set max=10, it will fetch up to 10 messages, but may make multiple API calls.
fix
Understand that max controls total items. To limit per-page, use the 'limit' parameter (if available). For list_messages, 'max' is often the intended way.
affects: >=2.0.0
deprecatedThe old 'webexteamssdk' library is no longer maintained. Any security patches or bug fixes are only applied to webexpythonsdk.
fix
Switch to webexpythonsdk and update imports.
affects: all versions
Errors
Common errors & fixes
ImportError: No module named webexpythonsdk
Library not installed.
fix
Run 'pip install webexpythonsdk'.
webexpythonsdk.exceptions.ApiError: [401] Unauthorized
Invalid or missing API token.
fix
Ensure you have a valid Webex Bot Token and pass it to WebexAPI(token='...').
TypeError: object of type 'NoneType' has no len()
Occurs if you try to iterate over api.rooms.list() without a valid token; api object is not properly initialized.
fix
Check that your token is set and correctly passed to the WebexAPI constructor.
Upgrade
Version history
2.0.6latest on PyPI · released Apr 14, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
36
OpenAI (training)
1
Resources
webexpythonsdk — pip install webexpythonsdk · libregistry