Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Uploaded Python 3

File details

Details for the file microsoft_teams_cards-2.1.0a1.tar.gz.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.1.0a1.tar.gz
Algorithm Hash digest
SHA256 a5503be96629b7ce637bdf2e3868848ca57e88cf42aa15913f617a3f56d4a3a6
MD5 dc12f918a303a1d6e297897936c7d0e0
BLAKE2b-256 d187fe4b349386ad83269fbfbe38cb1922a77d9bf9e2d5d120b43e7b49e73c76

See more details on using hashes here.

File details

Details for the file microsoft_teams_cards-2.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_teams_cards-2.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0867dedf7e3d9e61104913a9067198bb3d26b185e4853ed075306aa6e4d7d68
MD5 a1819bae506fa40461ced406ac214f1b
BLAKE2b-256 9ff3106e71407a7b8c225fc667db358ad391f5f55ebb9b1c9aeefcc924f5e048

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