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.0a20.tar.gz (23.9 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.0a20-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a20.tar.gz
Algorithm Hash digest
SHA256 f46dbabb733196eb31add5b061e09ef6570ea608e1502c8149e383b98120dc3e
MD5 1a5195c564121c3b14b4c3b013edbaff
BLAKE2b-256 c9f50a4b03d2a58503abdf07e77deb6b5a395da12fe749655938f354558f1e64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microsoft_teams_cards-2.0.0a20-py3-none-any.whl
Algorithm Hash digest
SHA256 0e260c07919836712b842b007908b5032546fcc687f9e914c63a4087d593c5eb
MD5 1da5145d88817686321a5305adba4e46
BLAKE2b-256 de5609566a17c258251f35ec1d013485081011c11be8e4b3a1fa9357ba0e7cdb

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