{"id":24077,"library":"msteamsapi","title":"Microsoft Teams AdaptiveCards API Wrapper","description":"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.","status":"maintenance","version":"0.9.5","language":"python","source_language":"en","source_url":"https://github.com/ALERTua/msteamsapi","tags":["microsoft-teams","adaptive-cards","webhook"],"install":[{"cmd":"pip install msteamsapi","lang":"bash","label":"latest stable"}],"dependencies":[{"reason":"HTTP client for sending webhooks","package":"requests","optional":false}],"imports":[{"note":"","wrong":null,"symbol":"TeamsWebhook","correct":"from msteamsapi import TeamsWebhook"},{"note":"","wrong":null,"symbol":"AdaptiveCard","correct":"from msteamsapi import AdaptiveCard"}],"quickstart":{"code":"from msteamsapi import TeamsWebhook\nimport os\n\nwebhook_url = os.environ.get('TEAMS_WEBHOOK_URL', '')\nwebhook = TeamsWebhook(url=webhook_url)\nwebhook.send_text('Hello from msteamsapi!')\n","lang":"python","description":"Send a simple text message to a Teams channel using a webhook URL."},"warnings":[{"fix":"Use Python 3.9+ and upgrade to newer versions when available.","message":"Python 2 support is deprecated, though still present. Future versions may drop it.","severity":"deprecated","affected_versions":"<=0.9.5"},{"fix":"Use keyword argument 'url=' when initializing TeamsWebhook.","message":"The library uses 'url' parameter name, not 'webhook_url'. Common mistake.","severity":"gotcha","affected_versions":"all"},{"fix":"Test your card JSON with the Microsoft AdaptiveCard designer before sending.","message":"AdaptiveCards must be properly formatted; the library does not validate card structure. Malformed cards will fail silently.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from msteamsapi import TeamsWebhook","cause":"Incorrect import path, e.g., from msteamsapi import msteamsapi","error":"AttributeError: module 'msteamsapi' has no attribute 'TeamsWebhook'"},{"fix":"Pass the URL as a string: TeamsWebhook(url='https://outlook.office.com/webhook/...')","cause":"Instantiating TeamsWebhook without providing the webhook URL.","error":"TypeError: __init__() missing 1 required positional argument: 'url'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}