microsoft-teams-cards
Cards package for Microsoft Teams
What it is and what it does
microsoft-teams-cards wraps the Adaptive Card schema and Teams-specific action types in Pydantic models, letting you build interactive card layouts and actions for Teams applications in Python. It has no external runtime dependencies, so installation is straightforward and adds minimal weight to your environment.
The package is designed for developers building Teams integrations who need to construct cards programmatically rather than writing raw JSON. It provides typed models for Adaptive Card components and Teams-specific actions like InvokeAction, MessageBackAction, and SignInAction, reducing the friction of manual schema validation.
Use it for:
- Build interactive bot responses in Teams that include buttons, text blocks, and form submissions.
- Create Teams message extensions that render rich card layouts with Teams-specific actions.
- Programmatically generate Adaptive Cards for Teams workflows without hand-writing JSON schemas.
- Implement Teams sign-in flows and message-back actions using typed action models.
- Construct Teams bot cards with invoke actions for custom Teams app integrations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Pydantic-based models for building Adaptive Cards and Teams-specific actions in Microsoft Teams applications.
Yes, if you are building Microsoft Teams applications and want type-safe Adaptive Card construction. The package has low install friction, active maintenance, MIT licensing, and no known vulnerabilities. Install it when you need to generate Teams cards programmatically; skip it if you are hand-writing JSON or not targeting Teams.
Install
microsoft-teams-cards on PyPI
pip
pip install microsoft-teams-cardsuv
uv add microsoft-teams-cardspoetry
poetry add microsoft-teams-cardsInstalling microsoft-teams-cards
Before you install
Low install friction with no runtime dependencies. Active maintenance as of 2026-08-13 with recent releases; repository shows 62 stars and no archived status.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install microsoft-teams-cards
from microsoft_teams_cards import AdaptiveCard, TextBlock, SubmitAction
card = AdaptiveCard(
body=[TextBlock(text="Hello from Teams!")],
actions=[SubmitAction(title="Click Me", data={"action": "hello"})]
)
Requires Python 3.11 or later; Python 4.0+ not supported.
Verify before relying
- Whether the package includes full Adaptive Card schema coverage or a subset of card types.
- Whether Teams-specific actions cover the complete Teams action API or a curated set.
- Documentation completeness and availability beyond the basic usage examples provided.
- The exact module import path for accessing AdaptiveCard, TextBlock, and action classes.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,046,174/month — #4,452 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: microsoft_teams_cards-2.0.15-py3-none-any.whl
Keywords: agents, ai, bot, microsoft, teams
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
adaptive-cards-templating-pyExpands Adaptive Card templates by substituting…
permissive · top 15,000 on PyPI
microsoft-agents-hosting-teamsProvides Teams-specific handlers and utilities…
permissive · top 15,000 on PyPI
pymsteamsSends formatted messages to Microsoft Teams…
permissive · top 5,000 on PyPI
microsoft-agents-activityProvides core types and schemas implementing…
permissive · top 5,000 on PyPI
microsoft-teams-appsFramework for building Microsoft Teams…
permissive · top 15,000 on PyPI
microsoft-teams-apiHTTP client library for Microsoft Teams Bot…
permissive · top 5,000 on PyPI
pyscardpyscard provides Python bindings to interact…
copyleft · top 15,000 on PyPI
dagster-msteamsA Microsoft Teams integration resource for…
permissive · top 15,000 on PyPI
autogen-agentchatProvides a high-level API for building…
permissive · top 5,000 on PyPI
microsoft-teams-commonProvides shared utilities for Microsoft Teams…
permissive · top 5,000 on PyPI