Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Microsoft Teams Cards

Adaptive Cards models and specialized action types for Microsoft Teams applications. Provides Pydantic-based models for creating Adaptive Cards and Teams-specific actions.

Features

  • Adaptive Card Models: Pydantic models for Adaptive Card schema
  • Teams Actions: Specialized action types for Teams interactions

Basic Usage

from microsoft_teams.cards import AdaptiveCard, TextBlock, SubmitAction

# Create adaptive card components
card = AdaptiveCard(
    body=[
        TextBlock(text="Hello from Teams!")
    ],
    actions=[
        SubmitAction(title="Click Me", data={"action": "hello"})
    ]
)

Teams-Specific Actions

from microsoft_teams.cards import InvokeAction, MessageBackAction, SignInAction

# Create Teams-specific actions
invoke_action = InvokeAction({"action": "getData"})
message_action = MessageBackAction("Send Message", {"text": "Hello"})
signin_action = SignInAction()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microsoft_teams_cards-2.1.0a2.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microsoft_teams_cards-2.1.0a2-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file microsoft_teams_cards-2.1.0a2.tar.gz.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.1.0a2.tar.gz
Algorithm Hash digest
SHA256 7ed403a8758fd8d9b411aab118f819d90e6ba7e714752b39ffa3e193f3d6b526
MD5 917c220dbcd7b5b477eefb2215ef022a
BLAKE2b-256 2928d3940830d2f51201dd88641888e058ba7c1475a1b58afc6cdbb11f52aa8d

See more details on using hashes here.

File details

Details for the file microsoft_teams_cards-2.1.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d759d4cf0983a8ed1e5d407cef9dbc9c1cf1a73383f482b73bf3446b67dfb4d5
MD5 a1c4e5ab326b9252b0852eece6b01ace
BLAKE2b-256 a5f8f70369dc783fa26cee9b35a7eae4da03ef6f1ef5e4b15148cc055a253035

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page