microsoft-teams-common
Common package for Microsoft Teams
What it is and what it does
microsoft-teams-common is a foundational utilities package for the Microsoft Teams Python SDK, offering reusable components that other Teams packages depend on. It bundles an async HTTP client built on httpx with token and interceptor support, a type-safe event emitter for lifecycle management, local storage abstractions for key-value and list data, and logging helpers that integrate with Python's standard logging module.
The package is designed as a shared layer rather than a standalone tool—it is typically installed as a dependency of other Teams SDK packages rather than used directly. It provides the plumbing needed for async Teams applications: making authenticated requests, emitting and listening to application events, persisting simple state locally, and integrating structured logging. The API is straightforward and async-first, with both synchronous and asynchronous variants for storage operations.
Use it for:
- As a dependency of other Microsoft Teams SDK packages to provide HTTP client and event infrastructure.
- Building async applications that need type-safe event handling for lifecycle events and message processing.
- Storing application state or configuration locally using the key-value or list storage abstractions.
- Centralizing logging configuration across an application using the provided logging helpers and filters.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides shared utilities for Microsoft Teams SDK packages, including an async HTTP client with token support, type-safe event emitter, local storage implementations, and logging helpers.
Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and installs with minimal friction. It is most valuable as a dependency of other Teams SDK packages, but can also be used directly for async HTTP requests via httpx, event handling, and local storage. Requires Python 3.11 or later.
Install
microsoft-teams-common on PyPI
pip
pip install microsoft-teams-commonuv
uv add microsoft-teams-commonpoetry
poetry add microsoft-teams-commonInstalling microsoft-teams-common
Before you install
Active maintenance with a recent release (10 days old) and no known vulnerabilities. Low install friction with a single runtime dependency (httpx). Requires Python 3.11 or later.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it safe for commercial and open-source projects.
Quickstart
pip install microsoft-teams-common
from microsoft_teams.common import Client, ClientOptions
client = Client(ClientOptions(base_url="https://api.example.com"))
response = await client.get("/users/me")
Requires Python 3.11 or later; async operations require an async runtime context.
Verify before relying
- Whether the HTTP client's token support covers common authentication schemes (OAuth2, Bearer tokens, etc.)
- Performance characteristics and limits of the local storage implementations for production workloads
- Compatibility expectations with other Teams SDK packages and their versions
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — httpx |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,040,817/month — #4,456 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: microsoft_teams_common-2.0.15-py3-none-any.whl
Keywords: agents, ai, bot, microsoft, teams
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
microsoft-teams-appsFramework for building Microsoft Teams…
permissive · top 15,000 on PyPI
py-key-value-sharedProvides shared utility code and type…
permissive · top 5,000 on PyPI
vonage-http-clientProvides a synchronous HTTP client for…
permissive · top 15,000 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
microsoft-teams-apiHTTP client library for Microsoft Teams Bot…
permissive · top 5,000 on PyPI
microsoft-agents-hosting-teamsProvides Teams-specific handlers and utilities…
permissive · top 15,000 on PyPI
google-cloud-commonProvides common protobuf definitions and…
permissive · top 15,000 on PyPI
microsoft-agents-activityProvides core types and schemas implementing…
permissive · top 5,000 on PyPI
google-cloud-tasksPython client library for Google Cloud Tasks,…
permissive · top 1,000 on PyPI
pymsteamsSends formatted messages to Microsoft Teams…
permissive · top 5,000 on PyPI