https://github.com/sander76/mspyteams
https://github.com/sander76/mspyteams
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sander76/mspyteams
- Owner: sander76
- License: mit
- Created: 2020-04-15T19:11:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T13:27:17.000Z (about 6 years ago)
- Last Synced: 2025-12-16T16:16:04.768Z (6 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/psf/black)

[](https://codecov.io/gh/sander76/mspyteams)
# MsPyTeams
A sansio card creation library for sending cards to Microsoft Teams.
mspyteams requires python 3.6 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](https://github.com/rveachkc/pymsteams) and [msteams](https://github.com/johanjeppsson/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..
## Usage
For a complete description of the Card API go [here](https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference)