Skip to main content

Cards package for Microsoft Teams

Project description

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()

Project details


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

Uploaded Python 3

File details

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

File metadata

  • Download URL: microsoft_teams_cards-2.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 9d72a4158141fc42f39404306f6cd6ef561d0877a61549682897f39de9feeabf
MD5 b907e8577b739f7bf767ea9e55faa115
BLAKE2b-256 23a6d025bea2181b8ceef953996bd492af3bcb097be87909c1e22d51c6b5a580

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 847290dd8e6eb9100ba7f169c6adb74299289d41ee5609542df082b97009839b
MD5 32c8fdcfa606342d55be891435831964
BLAKE2b-256 2b5ca6804a82e4b6a2ad811726ef4b9b46912f8676b889df8306987d4c03e4ca

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 Pingdom Monitoring Sentry Error logging StatusPage Status page