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()
Release files for microsoft-teams-cards 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| microsoft_teams_cards-2.1.0.tar.gz | 27.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| microsoft_teams_cards-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:57.4 kB
Release files / microsoft_teams_cards-2.1.0.tar.gz
| Download URL | microsoft_teams_cards-2.1.0.tar.gz |
|---|---|
| Size | 27.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4857cc82836744ce1fb12d057aa9be55511aa6a7044658e5b7174af18bae760
|
|
BLAKE2b-256 checksum How to use checksums |
0643424e5cea49a22ea22b378116ca9cb305ea52f14ded4c6c4b462cf0f28c4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / microsoft_teams_cards-2.1.0-py3-none-any.whl
| Download URL | microsoft_teams_cards-2.1.0-py3-none-any.whl |
|---|---|
| Size | 29.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c984882fa8f922ace29f6f4981054f2ac5761ce4135ca79053e3189d6d963650
|
|
BLAKE2b-256 checksum How to use checksums |
98872ed9e5d532b1cbf8fb287fbbf59cfa9a3d4a874eeee2184dcdf8ae5323d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|