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

Uploaded Python 3

File details

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

File metadata

  • Download URL: microsoft_teams_cards-2.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 9a6170e72e9207c508b6cb91b950b7785177fbd57adb781c99bc8756e15e8977
MD5 069bc4f4cc3a4ea37dd2ec4bcf7a4be1
BLAKE2b-256 45735e337bf6bde2803d75e5990fc11085d83e99f6184bbd5d6efa5614a26239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 5e2eaaed534eab688c25c16111e0159d2946228c7c35315f92f22fff826a30c6
MD5 f7de82086b468ee446ba6bebc0a3427a
BLAKE2b-256 0be9c22bec14a6f4e8d5e054c23f150012afbf1ef3acf4ee871fc885728eae92

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