May 1st, 2026
celebratelike2 reactions

Python support for the Microsoft Teams SDK is now generally available

Today we’re announcing the general availability (GA) of Python support in the Microsoft Teams SDK. Python developers can now build Teams-native apps and agents using the same SDK surface that powers modern Teams experiences across our TypeScript and .NET stacks 

Get started 

In your terminal:

pip install microsoft-teams-apps

Basic usage:

from microsoft_teams.apps import App, ActivityContext 
from microsoft_teams.api import MessageActivity 
 
app = App() 
 
@app.on_message 
async def handle_message(ctx: ActivityContext[MessageActivity]): 
   await ctx.send(f"You said: {ctx.activity.text}") 
 
# Start the app 
await app.start() 

With Python support, your orchestration logic, reasoning layer, workflow automation, or domain-specific agents can now:                                                                                               

  •  Participate in chats, channels, and meetings as a first-class Teams app 
  •  Stream responses and render adaptive cards in conversation 
  •  Plug into your existing Python server, agent framework, or LLM stack 
  •  Send proactive in-conversation messages to users and groups          

What’s included                                                                              

The Python release ships with the capabilities developers need to move from prototype to production: 

  • Decorator-based activity routing. Handle messages, mentions, and conversation events using familiar Python decorators — no boilerplate, no custom dispatchers.
  • Built-in OAuth. First-class user authentication flows are handled by the SDK, so you can focus on your app instead of token plumbing. 
  • Type-safe Microsoft Graph access. Call Microsoft Graph as the signed-in user or as the app via the user_graph and app_graph properties, with full type hints. 
  • Extensible plugin architecture. Compose middleware, telemetry, and custom behaviors into your app without modifying core SDK code. 

Start building today 

With GA support for Python, developers have a direct path to extend their services into one of the most widely used collaboration platforms in the world. 

  • Follow the quick start guide: You can create a new Teams agent in seconds. The quick start guides you through it step by step. 
  • Explore an example: Our Teams sample inventory can help you dig deeper into the code to learn more via a hands-on experience.  
  • Join the community: Join the discussions in the Microsoft 365 Developer Forum, share your agent ideas or ask questions on Stack Overflow, and follow our updates on the Teams developer blog. Report any issues you experience in the Teams SDK repo.

We’re excited to see what you build! 

Learn more about the Microsoft Teams SDK. 

Author

Lily Du is a Software Engineer with Microsoft.

Ricky is a product manager on the Teams Platform team where he is focusing primarily on conversational AI and developer AI experiences.

Aamir Jawaid is a Senior Software Engineer with Microsoft.

0 comments