msteamsapi is a Python wrapper for sending AdaptiveCards to Microsoft Teams via webhooks. Current version 0.9.5 supports Python 2.7+ and 3.9+. Release cadence is irregular; last release was in 2023.
pip install msteamsapiVerified import paths — ran on the pinned version, not inferred.
Send a simple text message to a Teams channel using a webhook URL.
Use Python 3.9+ and upgrade to newer versions when available.
Use keyword argument 'url=' when initializing TeamsWebhook.
Test your card JSON with the Microsoft AdaptiveCard designer before sending.
Use: from msteamsapi import TeamsWebhook
Pass the URL as a string: TeamsWebhook(url='https://outlook.office.com/webhook/...')