Skip to main content

Cards package for Microsoft Teams

Project description

[!CAUTION] This project is in public preview. We’ll do our best to maintain compatibility, but there may be breaking changes in upcoming releases.

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.0a31.tar.gz (28.4 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.0a31-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file microsoft_teams_cards-2.0.0a31.tar.gz.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a31.tar.gz
Algorithm Hash digest
SHA256 70d2ffb8b1490554096cee84dc223685d098c96e63b19ccdb40901abe923292b
MD5 a3ab2b1e3205fa43d1b6513fc57a427f
BLAKE2b-256 8df862c9823a21dd4e1227f70a3cf64c44118b2e0b8be6f845fed1c4ad8b2184

See more details on using hashes here.

File details

Details for the file microsoft_teams_cards-2.0.0a31-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a31-py3-none-any.whl
Algorithm Hash digest
SHA256 d3eba041cf24ec321f553be5adec0bd900408c75c7bdcd70c1a0d4851ddcac37
MD5 c4575fbdd8d375847179ec39fcc0b6d1
BLAKE2b-256 9aa200f038e864ca96875a35d54430adab8b0113a2ed96a417342e2a583fc8a1

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