Skip to main content

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()

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for microsoft_teams_cards-2.0.15.tar.gz
Algorithm Hash digest
SHA256 623d87fcd973c823deb5b78cccb27bc35471f535bef10116a7404255f6da5499
MD5 6abbc203ce66742aa1fb8dc906e11219
BLAKE2b-256 8a0d05054d629afb548937616a7e91cb8c2c2ffbf23e3ff774340ca0ee2a6dfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b0257d9b8782830df61eb6aa993a1ddc0349daddd845739da45d2a29a0c44b
MD5 beb4b31f203422e5dd73b9ac43738356
BLAKE2b-256 7db8c4e5df0f6797363ff8a431bcee1a51a7d8b6fe2e5d4cac21a6bd58e9f50f

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 Sentry Error logging StatusPage Status page