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.0a78.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.0a78-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a78.tar.gz
Algorithm Hash digest
SHA256 2a3a7a4cef24fe1da0de583633a1d029f216e1b5aaa1f64295da9a9472b4ef6f
MD5 5e737c283d706a4adef3cd68ae55b2d7
BLAKE2b-256 9a10ffec84357309fbd2647446a91de916c80d6986c4c832103ce3b64617d590

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a78-py3-none-any.whl
Algorithm Hash digest
SHA256 a744fd034d90b3fc2a2128ccd8023baf6c9c24b203dda31ea31eaac511e4e886
MD5 16de594f8e5c5abbdfee0fe63aa123c5
BLAKE2b-256 718c8a85aa31a8673696aa22498613c522d2dc42f4a66f279cbca3c2b2edf35d

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