semvec/pypi-packages huggingface dataset:
hogwarts-ai-agent 0.2.3
hogwarts-ai-agent 霍格沃兹测试开发学社学员版
Requires Python: >=3.11

# hogwarts-ai-agent

hogwarts-ai-agent 支持自定义 mcp 的 playwright agent。
霍格沃兹测试开发学社学员体验版，本工具为教学演示版本。

## 使用

```bash
# 安装
pip install hogwarts-ai-agent

# 启动mcp
npx -y @playwright/mcp@latest --port 8931

# 运行agent
hogwarts-ai-agent --llm.model deepseek-chat --llm.base_url https://api.deepseek.com/v1 --llm.key $DEEPSEEK_TOKEN  -p '打开百度 搜索霍格沃兹测试开发学社 打开搜索结果中的第一条链接' --mcp.name playwright --mcp.url http://localhost:8931/sse 

```

## 参数说明

```text
$ hogwarts-ai-agent -h

usage: hogwarts-ai-agent [-h] [-p str] [--llm [JSON]]
                                 [--llm.model str]
                                 [--llm.provider {openai,ollama}]
                                 [--llm.key str]
                                 [--llm.tool_calling {function,react}]
                                 [--llm.base_url str] [--llm.reasoning bool]
                                 [--llm.description str] [--mcp [JSON]]
                                 [--mcp.name str] [--mcp.url str]
                                 [--mcp.command str] [--mcp.args list[str]]
                                 [--mcp.transport str]

hogwarts-ai-agent 0.1.4, 支持自定义 mcp 的 playwright agent。
霍格沃兹测试开发学社学员体验版，本工具为教学演示版本。

如需企业版本可联络。
- [商务合作](https://ceshiren.com/t/topic/34688#h-5)
- [霍格沃兹测试开发学社](https://testing-studio.com)
- [测吧（北京）科技有限公司](https://ceba.ceshiren.com)
- [测试人交流社区](https://ceshiren.com)

示例
# 启动playwright-mcp
npx -y @playwright/mcp@latest --port 8931
# 使用
hogwarts-ai-agent --llm.model deepseek-chat --llm.base_url https://api.deepseek.com/v1 --llm.key $DEEPSEEK_TOKEN  -p '打开百度 搜索霍格沃兹测试开发学社 打开搜索结果中的第一条链接' --mcp.name playwright --mcp.url http://localhost:8931/sse

options:
  -h, --help            show this help message and exit
  -p str, --prompt str  prompt 提示词 (required)

llm options:
  llm 大模型配置

  --llm [JSON]          set llm from JSON string (default: {})
  --llm.model str       model 大语言模型 deepseek-chat qwen3 qwen3:4b
                        deepseek-r1... (default: deepseek-chat)
  --llm.provider {openai,ollama}
                        schema 大模型协议 (default: openai)
  --llm.key str         key or token (default: null)
  --llm.tool_calling {function,react}
                        工具调用风格 (default: function)
  --llm.base_url str    base_url 服务地址 (default: null)
  --llm.reasoning bool  是否开启思考模式 (default: null)
  --llm.description str
                        备注 (default: null)

mcp options:
  default: null (undefined)
  mcp 配置

  --mcp [JSON]          set mcp from JSON string (default: {})
  --mcp.name str        mcp工具名字，会包含在提示词中 (default: null)
  --mcp.url str         mcp地址，根据url自动判断是sse或者mcp (default: null)
  --mcp.command str     stdio模式下的命令，npx -y @playwright/mcp@latest 不推荐使用
                        (default: null)
  --mcp.args list[str]  根据command自动拆分，不用填写 (default: null)
  --mcp.transport str   根据url自动判断是sse或者mcp (default: null)

```

## 霍格沃兹测试开发学社

- [测试人社区](https://ceshiren.com)
- [霍格沃兹测试开发学社](https://testing-studio.com)
- [测吧（北京）科技有限公司](https://ceba.ceshiren.com)
- [商务合作](https://ceshiren.com/t/topic/34688#h-5)
sg-games 0.1.5
A small games package
Requires Python: >=3.9

# SG Games Collection

SG Games Collection is a Python package that provides a set of classic games implemented with **Tkinter**. Play games like Brick Breaker, Flappy Bird, Ping-Pong, Snake, and TicTacToe from a simple command-line interface.

## Features

- Brick Breaker
- Flappy Bird
- Ping Pong
- Snake
- TicTacToe
- ClickABall
- PegSolitare

Run each game from the terminal using convenient command-line flags.

---

## Installation

You can install `sg-games` from [PyPI](https://pypi.org) using `pip`.  

### Step 1: Install Python 3 (if not already installed)

Check your Python version:

```bash
    python3 --version
```
### Step 2: Ensure Tkinter is Installed

#### - Ubuntu / Debian
```bash
    sudo apt update
    sudo apt install python3-tk
```

#### - Fedora
```bash
    sudo dnf install python3-tkinter
```

#### - Arch Linux / Manjaro
```bash
    sudo pacman -S tk
```

Verify Tkinter Installation
```bash
    python3 -m tkinter
```

### Step 3: Install SG games
```bash
    pip install sg-games
```

### Usage
Run the games from your terminal using the following flags:
```bash
    sg-games --help
```

Output:

```less
usage: sg-games [-h] [--brick_breaker] [--flappy_bird] [--ping_pong] [--snake] [--xox]

SG Games Collection

options:
  -h, --help       show this help message and exit
  --brick_breaker  Launch Brick Breaker game
  --flappy_bird    Launch Flappy Bird game
  --ping_pong      Launch Ping Pong game
  --snake          Launch Snake game
  --xox            Launch TicTacToe
```

### Examples

- Launch Brick Breaker
```bash
    sg-games --brick_breaker
```

- Launch Snake
```bash
    from sg_games import snake
    snake_game()
```

### Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your improvements.