WebexPythonSDK
Community Python SDK for working with the Cisco Webex APIs natively
Repository Health
Technical Analysis
webexpythonsdk is a community-developed Python library for working with the Cisco Webex APIs, designed to make interacting with Webex feel native and natural in Python. It wraps the Webex REST APIs behind a clean object model where rooms, messages, people, memberships, teams, and webhooks are exposed as Python objects and methods rather than raw HTTP calls.
It is the successor to the earlier webexteamssdk library — functionally equivalent aside from the name change and dropping Python 2 support (it now targets Python 3.10+). New projects are encouraged to use webexpythonsdk, and existing webexteamssdk users are guided to migrate.
What You Get
- A single
WebexAPIobject exposing all Webex API resources as attributes - Pythonic access to rooms, messages, people, memberships, teams, and webhooks
- Automatic handling of authentication, pagination, and JSON response parsing
- Native Python objects returned from API calls with attribute access
- Support for Python 3.10+ (the modern successor to webexteamssdk)
- A community-maintained, MIT-licensed codebase with generated documentation
Common Use Cases
- Building bots that post and read messages in Webex spaces
- Automating creation and cleanup of Webex rooms and memberships
- Registering and managing webhooks for Webex events
- Scripting bulk administration of Webex people and teams
Under The Hood
Architecture - The library centers on the WebexAPI class, which composes a set of per-resource API manager objects (rooms, messages, people, memberships, teams, webhooks, etc.) sharing a common HTTP session. Each manager maps CRUD methods onto Webex REST endpoints, deserializing JSON responses into rich WebexObject-style wrappers that expose fields as attributes. A generator-based pagination layer yields items across paged list responses transparently, and error responses are raised as typed exceptions.
Tech Stack - It is pure Python (3.10+) built on the requests library for HTTP, distributed on PyPI under the MIT license. Documentation is generated and published via GitHub Pages, and CI runs build-and-test workflows on GitHub Actions.
Code Quality - The project is mature (originating in 2016 as webexteamssdk) with 42 contributors, an automated test suite, and a documented migration path from the legacy package. Activity has slowed but the codebase remains maintained under the WebexCommunity organization.
API Design - The developer experience is a key strength: a single import and WebexAPI() construction (with token from an environment variable) gives discoverable, attribute-based access to every resource, so common tasks like listing rooms or posting messages take one intuitive method call. Naming mirrors the Webex API resources closely, keeping the mental model aligned with the official documentation.