semvec/pypi-packages huggingface dataset:
nonebot-plugin-test 0.3.0
Test frontend for nonebot v2+
License: MIT
Requires Python: >=3.7.3,<4.0.0
Keywords: nonebot,qq,qqbot,mirai,cqhttp

<p align="center">
  <a href="https://v2.nonebot.dev/"><img src="https://raw.githubusercontent.com/nonebot/nonebot2/master/docs/.vuepress/public/logo.png" width="200" height="200" alt="nonebot"></a>
</p>

<div align="center">

# NoneBot Plugin Test

_✨ 在浏览器中测试你的 NoneBot 机器人 ✨_

</div>

<p align="center">
  <a href="https://raw.githubusercontent.com/nonebot/plugin-test/master/LICENSE">
    <img src="https://img.shields.io/github/license/nonebot/plugin-test.svg" alt="license">
  </a>
  <a href="https://pypi.python.org/pypi/nonebot-plugin-test">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-test.svg" alt="pypi">
  </a>
  <img src="https://img.shields.io/badge/python-3.7+-blue.svg" alt="python">
</p>

## 截屏展示

<table>
  <tr>
    <td><img src="https://i.loli.net/2021/02/13/rsQ9hgwcxIARoZi.png" ></br><b>模块加载状态一览无余</b></td>
    <td><img src="https://i.loli.net/2021/02/13/Mxi8bJdpkCQ1H2e.png" ></br><b>人性化的交互式测试</b></td>
  </tr>
  <tr>
    <td><img src="https://i.loli.net/2021/02/13/qV3KxScQuHrj4Xe.png" ></br><b>消息匹配器图形化展示</b></td>
    <td><img src="https://i.loli.net/2021/02/13/B1LkS2yApTPQxRU.png" ></br><b>可高度自定义的测试配置</b></td>
  </tr>
</table>

## 使用方法

加载插件

```python
nonebot.load_plugin("nonebot_plugin_test")
```

在日志中将会输出测试网站地址，通常为 `http://HOST:PORT/test/`

## 准备开发

首先你需要安装 npm 的本地依赖：

```sh
npm install
```

**不建议单独为此项目新建虚拟环境，直接在你原有的 nonebot 虚拟环境下使用即可。**

## 进行开发

使用命令启动前端页面的开发服务器，你对前端页面的任何修改都可以预览：

```sh
npm run serve
```

这时候的页面连接不到 `nonebot2` 的实例，所以只能进行页面的开发。

下面介绍一下如何连接到已有的 `nonebot2` 项目上。

由于开启了 [`devServer`](https://cli.vuejs.org/zh/config/#devserver) 中的 `writeToDisk` 选项， `webpack-dev-server` 会将每次编译产生的文件写入 `./nonebot_plugin_test/dist` 文件夹。

打开你的 bot 源码目录以及虚拟环境，将原来已经安装的 `nonebot-test` 包移除掉：

```sh
pip uninstall nonebot-test
```

将 bot 的依赖改为本地依赖：

```diff
- nonebot-test = { version = "^0.1.0", optional = true }
+ nonebot-test = { path = "relative/path/to/nonebot-test/", develop = true }
```

然后使用 poetry 重新安装依赖即可：

```sh
poetry update
poetry install
```

现在启动你的 bot，本地`nonebot-test` 包就可以开始工作了，打开 `localhost:2333` （**不需要打开前面所述的前端开发服务器:8080**）就可以查看实时最新的前端页面了。

```sh
python bot.py
```
csv-intersection 1.0.4
CSV intersection
License: MIT
Requires Python: >=3.6
Keywords: csv,intersection,csv_intersection,tsv,tsv_intersection,common data,data visualization

# csv_intersection


## Introduction
csv_intersection is basically a PyPI Package to get common rows from two tsv/csv files. Many a time we need common data from two tsv/csv files so using csv_intersection package will prolly solve this problem.

This package currently have one function `csv_intersection` which returns common rows between two csv/tsv in list of OrderedDict.

Default delimiter is `","` and default encoding is `"UTF-8"`

## Function

```csv_intersection(path_of_tsv1, path_of_tsv2, delimiter, encoding)```

## Table of contents
* [Setup](#setup)
* [Usage](#usage)
* [Dependencies](#dependencies)
* [Contacts](#contacts)

## Setup

```pip install csv-intersection```

## Usage

```
from csv_intersection import csv_intersection

common_rows = csv_intersection(tsv1, tsv2)

# if delimiter is other than ","
common_rows = csv_intersection(tsv1,tsv2,delimiter = delimiter_of_file)

# if encoding is different other than UTF-8
common_rows = csv_intersection(tsv1, tsv2, encoding = encoding_of_file)

```

## Dependencies
It requires csv module only which is a built-in module in Python.

## Contacts
* [Author](https://swapnalshahil.github.io/)
* [Github](https://github.com/swapnalshahil)
* [Linkedin](https://www.linkedin.com/in/swapnalshahil/)
* [Twitter](https://twitter.com/eulersgamma)