Skip to main content

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.0.16.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.0.16-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file microsoft_teams_cards-2.0.16.tar.gz.

File metadata

  • Download URL: microsoft_teams_cards-2.0.16.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for microsoft_teams_cards-2.0.16.tar.gz
Algorithm Hash digest
SHA256 2455ce4934b6a21a63b187c87cf078e6778930992f123e25fde86d137ef64218
MD5 2efe77214b6ed179bc945c1eeda13965
BLAKE2b-256 e7eba0d4c6561ce51da3c200f05d6d1e1ff570e3e79c87d0ac3e2b9c079a1135

See more details on using hashes here.

File details

Details for the file microsoft_teams_cards-2.0.16-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 2c7e909fd805d67656a24ef54b1d5f23e221666417a50cbe39bb9b973796c3e8
MD5 ba16448c4e3011a02514396f1f8c1d67
BLAKE2b-256 54be8ed2b59f3e480b6111983a6b24506c1083dafe89645bcc3b3ccf2f788a83

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