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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a49.tar.gz
Algorithm Hash digest
SHA256 e78c8c4b6eb19e5f4496718721eef1a3ada0c35baea3b8b249383c08514b015a
MD5 47937819986095ce1d3ed10797031952
BLAKE2b-256 0c21de9e757ffd06cf4062481441023e0fabd2b70c72429982f057b9116fe7db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a49-py3-none-any.whl
Algorithm Hash digest
SHA256 53b84b2bacffea4705104f4d0aa72df3cdee3093ea7e96c0f4e75dcff2a58163
MD5 afb2e48b0d50b9b0ddf24f9594b62cbb
BLAKE2b-256 e05111ff1cb7dfecb1bab2c651142587156d2e31327442732be0100ebe1a9206

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