semvec/pypi-packages huggingface dataset:
nonebot-plugin-vvquest 0.1.0
通过API获取维维语录图片的NoneBot2插件
License: MIT
Requires Python: >=3.8

# nonebot-plugin-vvquest

[![License](https://img.shields.io/github/license/webjoin111/nonebot-plugin-vvquest)](LICENSE)
![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)
![NoneBot Version](https://img.shields.io/badge/nonebot-2.0.0+-red.svg)
![Adapter](https://img.shields.io/badge/adapter-OneBot-green.svg)

通过API获取维维语录图片的NoneBot2插件

## 功能介绍

通过API获取维维语录图片，支持直接搜索和引用消息搜索，可配置返回图片数量和使用合并转发消息。

## 安装方式

### 使用 nb-cli 安装（推荐）

```bash
nb plugin install nonebot-plugin-vvquest
```

### 使用 pip 安装

```bash
pip install nonebot-plugin-vvquest
```

### 手动安装

1. 克隆本仓库

```bash
git clone https://github.com/webjoin111/nonebot-plugin-vvquest.git
```

2. 将`nonebot_plugin_vvquest`文件夹复制到你的插件目录下

3. 在`pyproject.toml`中添加插件

```toml
[tool.nonebot]
plugins = ["nonebot_plugin_vvquest"]
```

## 配置项

在`.env`文件中添加以下配置：

```dotenv
# 最大返回图片数量限制 (1-50)
VVQUEST_MAX_NUM=10

# 是否使用合并转发消息
VVQUEST_USE_FORWARD=true

# 本地API完整地址（如 http://localhost:8000/search），留空使用默认在线API
VVQUEST_API_BASE=""

# API请求冷却时间（秒），防止频繁请求 (1-300)
VVQUEST_COOLDOWN=30
```

## 使用方法

### 直接搜索

```
/vv语录 <标题> [数量/参数]
```

### 引用消息搜索

```
引用某条消息 + /vv语录 [数量/参数]
```

### 支持本地API

在配置中设置 `VVQUEST_API_BASE` 项，填写完整API地址（如 <http://localhost:8000/search）>

## 示例

```
/vv语录 你好
/vv语录 你好 5
/vv语录 你好 n=5
```

## 注意事项

- 默认返回5条结果，最大返回数量受配置限制
- 请求有冷却时间，防止频繁请求
- 本地API失败时会自动回退到在线API
- 插件内置API请求失败重试机制，提高稳定性

## API 来源

本插件使用的 API 基于 [MemeMeow](https://github.com/MemeMeow-Studio/MemeMeow) 项目，在此对该项目的开发者表示衷心的感谢！

如果网络连接有问题，建议开启代理工具，并将 `api.zvv.quest` 加入规则列表，以确保 API 请求能够正常进行。

## 开源协议

本项目使用 [MIT](LICENSE) 许可证开源。
task-6-report 0.4.3
Аналізатор гонки F1
License: MIT
Requires Python: >=3.9

# Пакет task_6_report

`task_6_report` — Python package for analyzing Formula 1 race results: loading logs, building reports, output via CLI.

---

## Installation

```bash
pip install task_6_report
```

---

## Using

```python
from race_report.report import RaceData
from pathlib import Path

# Вкажи шлях до папки з файлами
folder = Path(r"your path to the folder/data")

# Ініціалізація RaceData — передаємо шлях до папки як параметр folder
data = RaceData(folder=folder)

# Завантаження даних з файлів start.log, end.log, abbreviations.txt (шляхи утворюються автоматично)
data.load_data()

# Побудова звіту у порядку 'asc' або 'desc'
report = data.build_report(order='asc')

# Вивід звіту в консоль
data.print_report(report)
```

### Required data files:
abbreviations.txt:
```
DRR_Daniel Ricciardo_RED BULL RACING TAG HEUER
SVF_Sebastian Vettel_FERRARI
LHM_Lewis Hamilton_MERCEDES
```

start.log:
```
DRR2018-05-24_12:14:12.054
SVF2018-05-24_12:14:15.145
LHM2018-05-24_12:14:18.035
```

end.log:
```
DRR2018-05-24_12:15:26.399
SVF2018-05-24_12:15:29.750
LHM2018-05-24_12:15:33.082
```

### An example of a report:

```
1. DRR_Daniel Ricciardo | RED BULL RACING TAG HEUER | 1:14.345
2. SVF_Sebastian Vettel | FERRARI | 1:14.788
...
```

---

## Call in GitBash GitBash (CLI)

To run your report.py file with the --order option, use the following command:

```bash
race-report -p PATH_TO_DATA_FOLDER [-o asc|desc] [-d DRIVER_NAME]
```

Parameters:

 - -p, --path (required): path to the folder with the data files
 - -o, --order (optional): sort order (asc for ascending, desc for descending), default asc
 - -d, --driver (optional): pilot name to display information only for him/her

Examples:

- Build the full report in ascending order:

```bash
race-report -p data/ -o asc
```

- Build the full report in descending order:
```bash
race-report -p data/ -o desc
```

- Get information only about a specific pilot:
```bash
race-report -p data/ -d "Sebastian Vettel"
```
---

## The structure of the project

```
task_6_report/

├── src/
│   └── race_report/
│       ├── __init__.py
│       ├── report.py
│       └── cli.py
│
├── tests/
│   ├── __init__.py
│   ├── tests_load_data/
│   ├── tests_build_report/
│   ├── tests_print_report/
│   ├── tests_read_abbreviations/
│   └── tests_cli/
│
├── LICENSE
├── pyproject.toml
├── README.md
└── .gitignore
```

## License

This project is licensed under the MIT License.
simple-prompts-mcp 0.1.1
Simple Prompt MCP Server
License: MIT
Requires Python: >=3.11

# simple-prompts-mcp

## Overview

[日本語はこちら](README_ja.md)

- A simple MCP server for utilizing prompts.
- Prompts are defined in advance using YAML files.

## Defining Prompt Files

Define each prompt in a separate YAML file.

### Schema Details

- `name`: string. Identifier for the prompt.
- `description`: string. Description of the prompt.
- `arguments`: array. Each element is an object with the following properties:
    - `name`: string. Argument name.
    - `description`: string. Description of the argument.
    - `required`: boolean. Whether the argument is required.
- `prompt`: string. The main body of the prompt.  
  The prompt body (`prompt`) is dynamically generated using Python's `str.format()` with named arguments.  
  As shown in the example, you can use placeholders like `{user_name}` which will be replaced with the provided argument values.

### Example

```yaml
name: example
description: This is a sample prompt.
arguments:
  - name: user_name
    description: Name of the user
    required: true
prompt: |
  Hello, {user_name}!
```

Please create each YAML file according to this schema.

## Registering the MCP Server

To register `simple-prompts-mcp` as an MCP server, add the following to your configuration file.

> **Note:**  
> Please use Python 3.11 or later with `uv`.

```json
{
    "mcpServers": {
        "simple-prompts-mcp": {
            "command": "uvx",
            "args": ["simple-prompts-mcp"]
        }
    }
}
```

### Configuration

| Environment Variable | Purpose                        | Default Value                  |
|---------------------|--------------------------------|-------------------------------|
| `PROMPTS_DIR`       | Directory to store prompt files | ~/.config/simple-prompts-mcp  |


```json
{
    "mcpServers": {
        "simple-prompts-mcp": {
            "command": "uvx",
            "args": ["simple-prompts-mcp"],
            "env": {
                "PROMPTS_DIR": "/full-path/to/prompts/dir"
            }
        }
    }
}
```

## License

This project is licensed under the MIT License. See the LICENSE file for details.