semvec/pypi-packages huggingface dataset:
microsoft-teams-openai 2.0.0a9
model package for enabling chat experiences with openai
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

# Microsoft Teams OpenAI

<p>
    <a href="https://pypi.org/project/microsoft-teams-openai/" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-openai" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-openai" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-openai" />
    </a>
    <a href="https://microsoft.github.io/teams-sdk" target="_blank">
        <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
    </a>
</p>


OpenAI model implementations for Microsoft Teams AI applications.
Supports OpenAI and OpenAI-compatible APIs for chat completions and embeddings.

## Installation

```bash
uv add microsoft-teams-openai
```

## Usage

```python
from microsoft_teams.openai import OpenAICompletionsAIModel
from microsoft_teams.ai import ChatPrompt

model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")
prompt = ChatPrompt(model)
```
microsoft-teams-mcpplugin 2.0.0a9
library for handling mcp with teams sdk
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

# Microsoft Teams MCP Plugin

<p>
    <a href="https://pypi.org/project/microsoft-teams-mcpplugin/" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-mcpplugin" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-mcpplugin/" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-mcpplugin" />
    </a>
</p>

Model Context Protocol (MCP) integration for Microsoft Teams AI applications.
Enables Teams bots to both expose tools as MCP servers and use MCP servers as clients.

[📖 Documentation](https://microsoft.github.io/teams-sdk/python/in-depth-guides/ai/mcp/)

## Installation

```bash
uv add microsoft-teams-mcpplugin
```

## Usage

### MCP Client (Use MCP Servers)

```python
from microsoft_teams.apps import App
from microsoft_teams.mcpplugin import McpClientPlugin
from microsoft_teams.ai import ChatPrompt
from microsoft_teams.openai import OpenAICompletionsAIModel

# Create MCP client plugin
mcp_client = McpClientPlugin()

# Connect to MCP servers
mcp_client.use_mcp_server("https://example.com/mcp")

# Use with ChatPrompt
model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")
prompt = ChatPrompt(model, plugins=[mcp_client])
```

### MCP Server (Expose Tools)

```python
from microsoft_teams.apps import App
from microsoft_teams.mcpplugin import McpServerPlugin
from microsoft_teams.ai import Function
from pydantic import BaseModel

# Create MCP server plugin
mcp_server = McpServerPlugin(name="my-mcp-server")

# Define a tool
class EchoParams(BaseModel):
    input: str

async def echo_handler(params: EchoParams) -> str:
    return f"You said {params.input}"

# Register tool with MCP server
mcp_server.use_tool(
    Function(
        name="echo",
        description="Echo back whatever you said",
        parameter_schema=EchoParams,
        handler=echo_handler
    )
)

app = App(plugins=[mcp_server])
```
microsoft-teams-devtools 2.0.0a9
Local tool to streamline testing and development
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

> [!CAUTION]
> This project is in public preview. We’ll do our best to maintain compatibility, but there may be breaking changes in upcoming releases.

# Microsoft Teams DevTools

<p>
    <a href="https://pypi.org/project/microsoft-teams-devtools" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-devtools" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-devtools" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-devtools" />
    </a>
    <a href="https://microsoft.github.io/teams-sdk" target="_blank">
        <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
    </a>
</p>

[📖 Documentation](https://microsoft.github.io/teams-sdk/developer-tools/devtools/)

Developer tools for locally testing and debugging Teams applications. Streamlines the development process by eliminating the need to deploy apps or expose public endpoints during development.

## Installation

```bash
uv add microsoft-teams-devtools
```

## Usage

```python
from microsoft_teams.apps import App
from microsoft_teams.devtools import DevToolsPlugin

app = App()
app.use(DevToolsPlugin())

await app.start()
# Open http://localhost:3979/devtools in your browser
```
microsoft-teams-common 2.0.0a9
Common package for Microsoft Teams
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

> [!CAUTION]
> This project is in public preview. We’ll do our best to maintain compatibility, but there may be breaking changes in upcoming releases.

# Microsoft Teams Common Utilities

<p>
    <a href="https://pypi.org/project/microsoft-teams-common" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-common" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-common" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-common" />
    </a>
</p>

Shared utilities including HTTP client, logging, storage, and event handling.
Provides common functionality used across other Teams SDK packages.

<a href="https://microsoft.github.io/teams-sdk" target="_blank">
    <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
</a>

## Features

- **HTTP Client**: Async HTTP client with token support and interceptors
- **Event System**: Type-safe event emitter for application lifecycle management
- **Storage**: Local storage implementations for key-value and list data
- **Logging**: Console logging with formatting and filtering

## HTTP Client

```python
from microsoft_teams.common import Client, ClientOptions

# Create HTTP client
client = Client(ClientOptions(
    base_url="https://api.example.com",
    headers={"User-Agent": "Teams-Bot/1.0"}
))

# Make requests
response = await client.get("/users/me")
data = await client.post("/messages", json={"text": "Hello"})
```

## Event System

```python
from microsoft_teams.common import EventEmitter

# Create type-safe event emitter
emitter = EventEmitter[str]()

# Register handler
def handle_message(data: str):
    print(f"Received: {data}")

subscription_id = emitter.on("message", handle_message)

# Emit event
emitter.emit("message", "Hello World")

# Remove handler
emitter.off(subscription_id)
```

## Storage

```python
from microsoft_teams.common import LocalStorage, ListLocalStorage

# Key-value storage
storage = LocalStorage[str]()
storage.set("key", {"data": "value"})
data = storage.get("key")

# Async operations
await storage.async_set("key", {"data": "value"})
data = await storage.async_get("key")

# List storage
list_storage = ListLocalStorage[str]()
list_storage.append("new-item")
items = list_storage.items()
```

## Logging

```python
from microsoft_teams.common import ConsoleLogger

# Create console logger
logger = ConsoleLogger().create_logger("my-app")
```
microsoft-teams-cards 2.0.0a9
Cards package for Microsoft Teams
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

> [!CAUTION]
> This project is in public preview. We’ll do our best to maintain compatibility, but there may be breaking changes in upcoming releases.

# Microsoft Teams Cards

<p>
    <a href="https://pypi.org/project/microsoft-teams-cards" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-cards" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-cards" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-cards" />
    </a>
</p>

Adaptive Cards models and specialized action types for Microsoft Teams applications.
Provides Pydantic-based models for creating Adaptive Cards and Teams-specific actions.

<a href="https://microsoft.github.io/teams-sdk" target="_blank">
    <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
</a>

## Features

- **Adaptive Card Models**: Pydantic models for Adaptive Card schema
- **Teams Actions**: Specialized action types for Teams interactions

## Basic Usage

```python
from microsoft_teams.cards import AdaptiveCard, TextBlock, SubmitAction

# Create adaptive card components
card = AdaptiveCard(
    body=[
        TextBlock(text="Hello from Teams!")
    ],
    actions=[
        SubmitAction(title="Click Me", data={"action": "hello"})
    ]
)
```

## Teams-Specific Actions

```python
from microsoft_teams.cards import InvokeAction, MessageBackAction, SignInAction

# Create Teams-specific actions
invoke_action = InvokeAction({"action": "getData"})
message_action = MessageBackAction("Send Message", {"text": "Hello"})
signin_action = SignInAction()
```
microsoft-teams-botbuilder 2.0.0a9
BotBuilder plugin for Microsoft Teams
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

# Microsoft Teams BotBuilder

<p>
    <a href="https://pypi.org/project/microsoft-teams-botbuilder/" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-botbuilder" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-botbuilder" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-botbuilder" />
    </a>
</p>

A package used to make the `microsoft-teams-apps` package backwards compatible with legacy bots built using
`BotBuilder`.

<a href="https://microsoft.github.io/teams-sdk" target="_blank">
    <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
</a>
microsoft-teams-apps 2.0.0a9
The app package for a Microsoft Teams agent
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

> [!CAUTION]
> This project is in public preview. We’ll do our best to maintain compatibility, but there may be breaking changes in upcoming releases.

# Microsoft Teams Apps Framework

<p>
    <a href="https://pypi.org/project/microsoft-teams-apps" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-apps" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-apps" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-apps" />
    </a>
</p>

High-level framework for building Microsoft Teams applications.
Handles activity routing, authentication, and provides Microsoft Graph integration.

<a href="https://microsoft.github.io/teams-sdk" target="_blank">
    <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
</a>

## Features

- **Activity Routing**: Decorator-based routing for different activity types
- **OAuth Integration**: Built-in OAuth flow handling for user authentication
- **Microsoft Graph Integration**: Type-safe Graph client access via `user_graph` and `app_graph` properties
- **Plugin System**: Extensible plugin architecture for adding functionality

## Basic Usage

```python
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()
```

## OAuth and Graph Integration

```python
@app.on_message
async def handle_message(ctx: ActivityContext[MessageActivity]):
    if ctx.is_signed_in:
        try:
            # Access user's Graph data
            me = await ctx.user_graph.me.get()
            await ctx.send(f"Hello {me.display_name}!")
        except (ValueError, RuntimeError, ImportError) as e:
            await ctx.send(f"Graph access failed: {e}")
    else:
        # Prompt user to sign in
        await ctx.sign_in()
```

## Optional Graph Dependencies

Microsoft Graph functionality requires additional dependencies:

```bash
# Recommended: Using uv
uv add microsoft-teams-apps[graph]

# Alternative: Using pip
pip install microsoft-teams-apps[graph]
```

If Graph dependencies are not installed, `user_graph` and `app_graph` will raise an `ImportError` when accessed. If the user is not signed in or tokens are unavailable, they will raise `ValueError`.
microsoft-teams-api 2.0.0a9
API package for Microsoft Teams
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

> [!CAUTION]
> This project is in public preview. We’ll do our best to maintain compatibility, but there may be breaking changes in upcoming releases.

# Microsoft Teams API Client

<p>
    <a href="https://pypi.org/project/microsoft-teams-api/" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-api" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-api/" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-api" />
    </a>
</p>

Core API client library for Microsoft Teams Bot Framework integration.
Provides HTTP clients, authentication, and typed models for Teams Bot Framework APIs.

<a href="https://microsoft.github.io/teams-sdk" target="_blank">
    <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
</a>

## Features

- **API Clients**: Bot, User, Conversation, Team, and Meeting clients
- **Authentication**: ClientCredentials and TokenCredentials support
- **Activity Models**: Typed Pydantic models for Teams activities
- **JWT Tokens**: JsonWebToken implementation with TokenProtocol interface

## Authentication

```python
from microsoft_teams.api import ClientCredentials, TokenCredentials

# Client credentials authentication
credentials = ClientCredentials(
    client_id="your-app-id",
    client_secret="your-app-secret"
)

# Token-based authentication
credentials = TokenCredentials(
    client_id="your-app-id",
    token=your_token_function
)
```

## API Client Usage

```python
from microsoft_teams.api import ApiClient

# Initialize API client
api = ApiClient("https://smba.trafficmanager.net/amer/")

# Bot token operations
token_response = await api.bots.token.get(credentials)
graph_token = await api.bots.token.get_graph(credentials)

# User token operations
user_token = await api.users.token.get(params)
token_status = await api.users.token.get_status(params)
```

## Activity Models

```python
from microsoft_teams.api import MessageActivity, Activity, ActivityTypeAdapter

# Validate incoming activities
activity = ActivityTypeAdapter.validate_python(activity_data)

# Work with typed activities
if isinstance(activity, MessageActivity):
    print(f"Message: {activity.text}")
```
microsoft-teams-ai 2.0.0a9
package to handle interacting with ai or llms
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

# Microsoft Teams SDK

<p>
    <a href="https://pypi.org/project/microsoft-teams-ai/" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-ai" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-ai/" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-ai" />
    </a>
    <a href="https://microsoft.github.io/teams-sdk" target="_blank">
        <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
    </a>
</p>

AI-powered conversational experiences for Microsoft Teams applications.
Provides prompt management, action planning, and model integration for building intelligent Teams bots.

[📖 Documentation](https://microsoft.github.io/teams-sdk/python/in-depth-guides/ai/)

## Installation

```bash
uv add microsoft-teams-ai
```

## Usage

### ChatPrompt

```python
from microsoft_teams.ai import ChatPrompt, Function
from microsoft_teams.openai import OpenAICompletionsAIModel
from pydantic import BaseModel

model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")

# Create a ChatPrompt
prompt = ChatPrompt(model)

result = await prompt.send(
    input="Hello!",
    instructions="You are a helpful assistant."
)
```

### Function Calling

```python
class GetWeatherParams(BaseModel):
    location: str

async def get_weather(params: GetWeatherParams) -> str:
    return f"The weather in {params.location} is sunny"

weather_function = Function(
    name="get_weather",
    description="Get weather for a location",
    parameter_schema=GetWeatherParams,
    handler=get_weather
)

prompt = ChatPrompt(model, functions=[weather_function])
```
microsoft-teams-a2a 2.0.0a9
plugin that enables your teams agent to be used as an a2a agent
Requires Python: <3.15,>=3.12
Keywords: agents, ai, bot, microsoft, teams

# Microsoft Teams A2A

<p>
    <a href="https://pypi.org/project/microsoft-teams-a2a/" target="_blank">
        <img src="https://img.shields.io/pypi/v/microsoft-teams-a2a" />
    </a>
    <a href="https://pypi.org/project/microsoft-teams-a2a" target="_blank">
        <img src="https://img.shields.io/pypi/dw/microsoft-teams-a2a" />
    </a>
    <a href="https://microsoft.github.io/teams-sdk" target="_blank">
        <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
    </a>
</p>

Agent-to-Agent (A2A) protocol support for Microsoft Teams AI applications.
Enables Teams agents to communicate and collaborate with other AI agents using standardized protocols.

## Installation

```bash
uv add microsoft-teams-a2a
```

## Usage

### A2A Server (Expose Agent)

```python
from microsoft_teams.apps import App
from microsoft_teams.a2a import A2APlugin, A2APluginOptions
from a2a.types import AgentCard, AgentCapabilities

app = App()

# Define agent card with capabilities
agent_card = AgentCard(
    name="weather_agent",
    description="An agent that can tell you the weather",
    url="http://localhost:4000/a2a/",
    version="0.0.1",
    protocol_version="0.3.0",
    capabilities=AgentCapabilities(),
    default_input_modes=[],
    default_output_modes=[]
)

a2a_server = A2APlugin(A2APluginOptions(agent_card=agent_card))
app = App(plugins=[a2a_server])
```

### A2A Client (Use Other Agents)

```python
from microsoft_teams.a2a import A2AClientPlugin, A2APluginUseParams
from microsoft_teams.ai import ChatPrompt
from microsoft_teams.openai import OpenAICompletionsAIModel

model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")

# Connect to another A2A agent
a2a_client = A2AClientPlugin()
a2a_client.on_use_plugin(
    A2APluginUseParams(
        key="my-weather-agent",
        base_url="http://localhost:4000/a2a",
        card_url=".well-known/agent-card.json"
    )
)

prompt = ChatPrompt(model, plugins=[a2a_client])
```
manju 1.1
Fast & minimal OpenAI API wrapper
Requires Python: >=3.10

# manju

Fast & minimal AI wrapper

| [GitLab](https://gitlab.com/isaac.bu/manju)                          | [PyPI](https://pypi.org/project/manju)                              |
| -------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Docs](https://gitlab.com/isaac.bu/manju/-/blob/main/docs/README.md) | [License](https://gitlab.com/isaac.bu/manju/-/blob/main/LICENSE.md) |

## Install

```sh
pip install manju
# or
uv add manju
```

## Basic usage

```py
import manju

manju.api_key = # ...
manju.provider = # Supported providers: ["openai", "groq", "openrouter"]

manju.chat(
    "llama-3.1-8b-instant",
    [{"role": "system", "content": "you're a helpful assistant"}]
)
```

See more on the [docs](https://gitlab.com/isaac.bu/manju/-/blob/main/docs/README.md)
techlens-agent 0.7.2
This tool safely and securely analyzes applications for benchmarking.
Requires Python: <=3.13.99,>=3.10

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
# TechLens™ Agent

 TechLens Agent™ is one of many tools Crosslake uses to guide your critical technology decisions with data-driven confidence. To learn more, drop us a note at: techlens@crosslaketech.com.

## Requirements:
 - Python3 - Test with `python3 --version`
 - pip - Test with `pip -V`
 - SSH access to code repositories - Test with `git status`
 - Command line tool access to cloud hosting providers
 - Admin privileges on the computer used to run the agent (not required but recommended)
 - Outbound internet access (for posting results and fetching dependency metadata)
 - Your dependency management tools (e.g. `npm` or `yarn` or `maven`)

## To run the Agent:
 - Download the `techlens-agent` binary from crosslake
 - Run the agent `techlens-agent --config=/path/to/config`

## Config Options
 - If you want to check the output for yourself you can set `should_upload: false`, and use the flag `--output=/path/to/dir`. This will give you the chance to inspect what we collect before uploading. For large repositories, it is a lot of information, but we never upload your code or any credentials, just the summary data we collect.

## Troubleshooting:
### Python
 - Run `python3 -m pip install --upgrade pip setuptools wheel`
### git
 - Run `which git`, `git --version`
 - Run ` ssh -vT git@github.com` to test access to GitHub
###  AWS
 - Run `which aws`, `aws --version`
### Azure
 - Run `az git`, `az --version`
 - Run `az account subscription list` to check subscription Id
### Semgrep
 - Run `which semgrep`, `semgrep --version`
### pip
 - Run `which pip`
 - If no `pip`, run:
    `curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py`
    `python get-pip.py`  OR `python3 get-pip.py`
 Run `sudo apt update`

 Copyright ©2023-2025 Crosslake Technologies.


## Run with Docker Compose
You can build and run the Techlens Agent container with Docker Compose. This mirrors the included run-docker.sh script but makes it easy to pass arguments and reuse mounts.

### Build the image
- docker compose -f docker-compose.yml build techlens-agent