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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a58.tar.gz
Algorithm Hash digest
SHA256 ee17497a23c2fd3c6bc378063f9265bf9940c7841ddc95d0f55822878bf8a360
MD5 83f4dd6f39429fb48a750e40228e03d6
BLAKE2b-256 d080f14be586b4a812beedb38f99a774a3d8209d81a45e8010f91d9730344807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a58-py3-none-any.whl
Algorithm Hash digest
SHA256 2acb1fe885bc7232b68ff89d154a83bd0e9bf89a9ad9b81f404f809f9e9b7547
MD5 476276c78285c9f50a639d274fe29406
BLAKE2b-256 dd82c3ee8df4b72f360f4bdb907347e48bd1252e2d08f81f29d504dddcb4e9bb

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