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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file microsoft_teams_cards-2.0.0a49.tar.gz.
File metadata
- Download URL: microsoft_teams_cards-2.0.0a49.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e78c8c4b6eb19e5f4496718721eef1a3ada0c35baea3b8b249383c08514b015a
|
|
| MD5 |
47937819986095ce1d3ed10797031952
|
|
| BLAKE2b-256 |
0c21de9e757ffd06cf4062481441023e0fabd2b70c72429982f057b9116fe7db
|
File details
Details for the file microsoft_teams_cards-2.0.0a49-py3-none-any.whl.
File metadata
- Download URL: microsoft_teams_cards-2.0.0a49-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b84b2bacffea4705104f4d0aa72df3cdee3093ea7e96c0f4e75dcff2a58163
|
|
| MD5 |
afb2e48b0d50b9b0ddf24f9594b62cbb
|
|
| BLAKE2b-256 |
e05111ff1cb7dfecb1bab2c651142587156d2e31327442732be0100ebe1a9206
|