Registry / communication / microsoft-teams-common

microsoft-teams-common

JSON →
library2.0.0pypypiunverified

Common package for building Microsoft Teams bots and apps in Python. Provides shared models, utilities, and middleware. Current stable version is 2.0.0, released June 2025. The library is under active development with alpha pre-releases on the v2.0.0 track.

pip install microsoft-teams-common
INSTALL
IMPORT
SIG · MICROSOFT-TEAMS-CO
M
microsoft-teams-common
communicationpythonv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

MicrosoftTeamsCommon
from microsoft_teams import MicrosoftTeamsCommon
from microsoft_teams.common import MicrosoftTeamsCommon

Basic setup to initialize the common module. Requires TEAMS_APP_ID and TEAMS_APP_PASSWORD environment variables for authentication.

import os from microsoft_teams.common import MicrosoftTeamsCommon # Initialize common client with optional configuration client = MicrosoftTeamsCommon( app_id=os.environ.get('TEAMS_APP_ID', ''), app_password=os.environ.get('TEAMS_APP_PASSWORD', ''), ) print('Common client initialized successfully.')
Debug
Known issues
breakingNamespace changed from `microsoft.teams.*` to `microsoft_teams.*` in v2.0.0a8 and later. Imports using dots will break.
fix
Change all imports from `microsoft.teams.common` to `microsoft_teams.common`.
affects: >=2.0.0a8
breakingIn v2.0.0a20, HttpPlugin was replaced with HttpServer + HttpServerAdapter. Old code using HttpPlugin will not work.
fix
Replace HttpPlugin with HttpServer and HttpServerAdapter as per migration guide.
affects: >=2.0.0a20
deprecatedSupport for Python <3.12 dropped as of v2.0.0. Requires Python >=3.12 and <3.15.
fix
Upgrade to Python 3.12 or later.
affects: >=2.0.0
breakingIsTargeted property moved from Activity class to Account class in v2.0.0a20.
fix
Access IsTargeted via Account object instead of Activity.
affects: >=2.0.0a20
breakingRemove custom logger, use standard logging library (v2.0.0a20).
fix
Replace custom logger imports with Python's standard logging module.
affects: >=2.0.0a20
Upgrade
Version history
2.0.0latest on PyPI · released Apr 30, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
microsoft-teams-common — pip install microsoft-teams-common · libregistry