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

Uploaded Python 3

File details

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

File metadata

  • Download URL: microsoft_teams_cards-2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 30bbb49e03ad92c29ea734715d4574cf5c66b001840ae9ad952b1519fea1286b
MD5 8e9a6b8c0c0bd1a5e0a443adf3f66ca6
BLAKE2b-256 ee9eb180ce3ee853ef8019f9557b75230042aeb1fd68e2df6a8226a175816f1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d44c888b393183c0b9ba6e1bbe18c6e3d31272d7c40723eb6858ebae416fc2f3
MD5 5a8db4b79ed8f8556696f4b972fb64d8
BLAKE2b-256 c49a790ed96344a4ebf3cfb0ef5b42a0d40429f640024e44bdd18c802c0164d9

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