Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

Sansio MsTeams cards composing library

Project description

Code style: black

MsPyTeams

A sansio card creation library for sending cards to Microsoft Teams.

mspyteams requires python 3.5 and up.

Installation

python3 -m pip install mspyteams

Being a sans-io library this installs only the card composition library, which in the end returns a valid card dict, which can be send as a json payload using any http client library of your liking.

Currently the aiohttp client is implemented as an option. To install:

python3 -m pip install mspyteams[aiohttp]

Goals

There are more ms teams card libaries available, like pymsteams and msteams, and I have thought of adapting them to my needs by doing pull requests etc. However, my goals were to provide a library that complies with pep8 (no camelcasing), doing an sans-io implementation, using flit, trying to get github actions running in combination with nox and learning some more along the way. So to do that effectively, I thought it would be best to do a library from scratch. And there you go..

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page