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.11.tar.gz (28.0 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.11-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microsoft_teams_cards-2.0.11.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for microsoft_teams_cards-2.0.11.tar.gz
Algorithm Hash digest
SHA256 94c76552bd50166cbd10efcea13f015b4c61aea4e4473ac84dc9fee794520e1b
MD5 6a07e7b917910febc74e002f5f6405a6
BLAKE2b-256 4b0ecbb4672d66d920d54cb41b867db4dfca72d9a25dd757e10b4209940c6a0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1682b624476ebfed7d62b2c9c5eab7c4f17ead1c2f8c44f956ded15a8719ec
MD5 265cb9a1776a0e1fc17b2eeecf3c34a2
BLAKE2b-256 b4d39e57b7cf2eb74bae23c4bf5c5c4a8ee473c61077c6697f7dbefa17ce9f8d

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