--- id: microsoft-teams-cards version: "2.0.15" license: MIT license_treatment: permissive maintenance: active --- # microsoft-teams-cards — Cards package for Microsoft Teams License: permissive · Maintenance: active · Downloads: 1.0M/mo ## 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 above — 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 pip install microsoft-teams-cards uv add microsoft-teams-cards 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_current - Install friction: low - Maintenance: active - Downloads: 1.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags adaptive cards microsoft teams, teams card models pydantic, teams actions invoke submit, microsoft teams bot cards, adaptive card schema python, teams interactive cards, teams message actions, teams-integration, adaptive-cards, pydantic-models [View on SkillFed](https://skillfed.io/packages/microsoft-teams-cards) · [View on PyPI](https://pypi.org/project/microsoft-teams-cards/)