skillfed

microsoft-teams-cards

Cards package for Microsoft Teams

microsoft-teams-cards v2.0.15 1.0M downloads/30d#4,452 on PyPI62
Permissive license MIT Active released

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-cards

uv

uv add microsoft-teams-cards

poetry

poetry add microsoft-teams-cards

Installing 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

adaptive cards microsoft teamsteams card models pydanticteams actions invoke submitmicrosoft teams bot cardsadaptive card schema pythonteams interactive cardsteams message actions
teams-integrationadaptive-cardspydantic-models

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

adaptive-cards-templating-py

Expands Adaptive Card templates by substituting…

permissive · top 15,000 on PyPI

microsoft-agents-hosting-teams

Provides Teams-specific handlers and utilities…

permissive · top 15,000 on PyPI

pymsteams

Sends formatted messages to Microsoft Teams…

permissive · top 5,000 on PyPI

microsoft-agents-activity

Provides core types and schemas implementing…

permissive · top 5,000 on PyPI

microsoft-teams-apps

Framework for building Microsoft Teams…

permissive · top 15,000 on PyPI

microsoft-teams-api

HTTP client library for Microsoft Teams Bot…

permissive · top 5,000 on PyPI

pyscard

pyscard provides Python bindings to interact…

copyleft · top 15,000 on PyPI

dagster-msteams

A Microsoft Teams integration resource for…

permissive · top 15,000 on PyPI

autogen-agentchat

Provides a high-level API for building…

permissive · top 5,000 on PyPI

microsoft-teams-common

Provides shared utilities for Microsoft Teams…

permissive · top 5,000 on PyPI