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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a50.tar.gz
Algorithm Hash digest
SHA256 f60c88983f63d32a79889cb39615f0d0a9e0d069c7b3a5a8ff9f6c48e2087fd0
MD5 55e2f0a03f5fa161b1d12818584d63dd
BLAKE2b-256 97094ae653e9b3d879c2b8df521d4e2e97aa27e5bfda54a493a67b70c7cd6e18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a50-py3-none-any.whl
Algorithm Hash digest
SHA256 f27080792162b777524f1a46e449c2578737aa69e5719ae285fd39cd7cc74d4a
MD5 f9603d00b8d3b7b33a4850dd0ff0062b
BLAKE2b-256 47aa4eb57b964a3b940c98d858cb892e060ffdb6a4dbe821b9f9d9b4898bf924

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