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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.13.4.tar.gz
Algorithm Hash digest
SHA256 de54956a2afbbcf187f2531459967515b4f4743fa784bd0f454eaff1ac675c90
MD5 5f29e12cac77298b48b7e7e6f6126333
BLAKE2b-256 ef7fcce9633f635d9e1b2318ce2146a804a14a46c9e34e855c3784beb8ab39b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.13.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b8b887466c8144675ff5704064daf05ec3ebdf4d322658ab9a25bfc1373d7909
MD5 cf0cce25950e491971296b00772b26f1
BLAKE2b-256 200995cad44d4417e33df11a15c82ca1bde442c1f1f77396f936f18896f116c1

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