nb-cli-plugin-littlepaimon


Namenb-cli-plugin-littlepaimon JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/CMHopeSunshine/nb-cli-plugin-littlepaimon
SummaryNonebot Cli plugin for LittlePaimon
upload_time2023-07-26 12:20:36
maintainer
docs_urlNone
authorCMHopeSunshine
requires_python>=3.8,<4.0
licenseAGPL
keywords nonebot2 nb-cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- markdownlint-disable MD033 MD041 -->
<p align="center">
  <img src="https://cli.nonebot.dev/logo.png" width="200" height="200" alt="nonebot">
</p>

<div align="center">

# NB CLI Plugin For LittlePaimon

_✨ 为[小派蒙Bot](https://github.com/CMHopeSunshine/LittlePaimon)定制的 NoneBot2 CLI 插件 ✨_

<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/CMHopeSunshine/nb-cli-plugin-littlepaimon.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nb-cli-plugin-littlepaimon">
    <img src="https://img.shields.io/pypi/v/nb-cli-plugin-littlepaimon.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">


</div>

## 演示

[![asciicast](https://asciinema.org/a/kMBRbuX5lCEnk5lmXcU53ys5b.svg)](https://asciinema.org/a/kMBRbuX5lCEnk5lmXcU53ys5b)

## 安装

<details>
<summary>安装nb-cli</summary>

> 请确保你的Python版本为3.8+,且在环境变量中

<details>
<summary>通过 pipx 安装</summary>

```shell
pip install --user pipx
pipx ensurepath
pipx install nb-cli
```
</details>

<details>
<summary>通过 pip 安装</summary>

```shell
pip install nb-cli
```
</details>

</details>

---

<details>
<summary>安装本插件</summary>

<details>
<summary>通过 nb-cli 安装</summary>

```shell
nb self install nb-cli-plugin-littlepaimon
```

</details>

<details>
<summary>通过 pipx 安装</summary>

```shell
pipx inject nb-cli nb-cli-plugin-littlepaimon
```
</details>

<details>
<summary>通过 pip 安装</summary>

```shell
pip install nb-cli-plugin-littlepaimon
```
</details>

</details>

---

<details>
<summary>安装Git</summary>

~~能上Github的话,应该都会装Git吧)~~

</details>

## 使用

- `nb paimon` 交互式使用
  - `nb paimon create` 
    - 交互式指引安装[LittlePaimon](https://github.com/CMHopeSunshine/LittlePaimon)
    - 自动克隆源码、创建虚拟环境、安装依赖,下载并配置go-cqhttp
    - 添加`-g`参数,则是只下载go-cqhttp
  - `nb paimon run` 运行python命令或启动小派蒙
    - 当接有命令时,使用该目录的下python解释器运行命令,例如`nb paimon run playwright install`
    - 当没有命令时,使用该目录的下python解释器启动小派蒙,实际上等价于`nb run`,不过去掉了不常用的参数 
  - `nb paimon install` 安装依赖库到小派蒙环境中
    - 当接有参数时,使用该目录的下pip安装依赖,例如`nb paimon install httpx`
    - 当没有参数时,则是使用该目录的下pip安装`requirements.txt`中的依赖
  - `nb paimon res` 下载或更新小派蒙的资源
  - `nb paimon update` 更新小派蒙,和`git pull`一样
  - `nb paimon logo` 展示小派蒙的logo
- `nb paimon (指令) --help` 查看帮助

## TODO

- [x] 更新资源
- [ ] 不依赖git
- [ ] 修改配置
- [ ] 安装小派蒙插件
- [ ] more

## 相关项目
- [nb-cli](https://github.com/nonebot/nb-cli)
- [LittlePaimon](https://github.com/CMHopeSunshine/LittlePaimon)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CMHopeSunshine/nb-cli-plugin-littlepaimon",
    "name": "nb-cli-plugin-littlepaimon",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "nonebot2,nb-cli",
    "author": "CMHopeSunshine",
    "author_email": "277073121@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/d3/98/35a69c789d3c57c4dae5ddb3b3018113489b249369d304619fe4bfbf8226/nb_cli_plugin_littlepaimon-1.0.3.tar.gz",
    "platform": null,
    "description": "<!-- markdownlint-disable MD033 MD041 -->\n<p align=\"center\">\n  <img src=\"https://cli.nonebot.dev/logo.png\" width=\"200\" height=\"200\" alt=\"nonebot\">\n</p>\n\n<div align=\"center\">\n\n# NB CLI Plugin For LittlePaimon\n\n_\u2728 \u4e3a[\u5c0f\u6d3e\u8499Bot](https://github.com/CMHopeSunshine/LittlePaimon)\u5b9a\u5236\u7684 NoneBot2 CLI \u63d2\u4ef6 \u2728_\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/CMHopeSunshine/nb-cli-plugin-littlepaimon.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nb-cli-plugin-littlepaimon\">\n    <img src=\"https://img.shields.io/pypi/v/nb-cli-plugin-littlepaimon.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"python\">\n\n\n</div>\n\n## \u6f14\u793a\n\n[![asciicast](https://asciinema.org/a/kMBRbuX5lCEnk5lmXcU53ys5b.svg)](https://asciinema.org/a/kMBRbuX5lCEnk5lmXcU53ys5b)\n\n## \u5b89\u88c5\n\n<details>\n<summary>\u5b89\u88c5nb-cli</summary>\n\n> \u8bf7\u786e\u4fdd\u4f60\u7684Python\u7248\u672c\u4e3a3.8+\uff0c\u4e14\u5728\u73af\u5883\u53d8\u91cf\u4e2d\n\n<details>\n<summary>\u901a\u8fc7 pipx \u5b89\u88c5</summary>\n\n```shell\npip install --user pipx\npipx ensurepath\npipx install nb-cli\n```\n</details>\n\n<details>\n<summary>\u901a\u8fc7 pip \u5b89\u88c5</summary>\n\n```shell\npip install nb-cli\n```\n</details>\n\n</details>\n\n---\n\n<details>\n<summary>\u5b89\u88c5\u672c\u63d2\u4ef6</summary>\n\n<details>\n<summary>\u901a\u8fc7 nb-cli \u5b89\u88c5</summary>\n\n```shell\nnb self install nb-cli-plugin-littlepaimon\n```\n\n</details>\n\n<details>\n<summary>\u901a\u8fc7 pipx \u5b89\u88c5</summary>\n\n```shell\npipx inject nb-cli nb-cli-plugin-littlepaimon\n```\n</details>\n\n<details>\n<summary>\u901a\u8fc7 pip \u5b89\u88c5</summary>\n\n```shell\npip install nb-cli-plugin-littlepaimon\n```\n</details>\n\n</details>\n\n---\n\n<details>\n<summary>\u5b89\u88c5Git</summary>\n\n~~\u80fd\u4e0aGithub\u7684\u8bdd\uff0c\u5e94\u8be5\u90fd\u4f1a\u88c5Git\u5427)~~\n\n</details>\n\n## \u4f7f\u7528\n\n- `nb paimon` \u4ea4\u4e92\u5f0f\u4f7f\u7528\n  - `nb paimon create` \n    - \u4ea4\u4e92\u5f0f\u6307\u5f15\u5b89\u88c5[LittlePaimon](https://github.com/CMHopeSunshine/LittlePaimon)\n    - \u81ea\u52a8\u514b\u9686\u6e90\u7801\u3001\u521b\u5efa\u865a\u62df\u73af\u5883\u3001\u5b89\u88c5\u4f9d\u8d56\uff0c\u4e0b\u8f7d\u5e76\u914d\u7f6ego-cqhttp\n    - \u6dfb\u52a0`-g`\u53c2\u6570\uff0c\u5219\u662f\u53ea\u4e0b\u8f7dgo-cqhttp\n  - `nb paimon run` \u8fd0\u884cpython\u547d\u4ee4\u6216\u542f\u52a8\u5c0f\u6d3e\u8499\n    - \u5f53\u63a5\u6709\u547d\u4ee4\u65f6\uff0c\u4f7f\u7528\u8be5\u76ee\u5f55\u7684\u4e0bpython\u89e3\u91ca\u5668\u8fd0\u884c\u547d\u4ee4\uff0c\u4f8b\u5982`nb paimon run playwright install`\n    - \u5f53\u6ca1\u6709\u547d\u4ee4\u65f6\uff0c\u4f7f\u7528\u8be5\u76ee\u5f55\u7684\u4e0bpython\u89e3\u91ca\u5668\u542f\u52a8\u5c0f\u6d3e\u8499\uff0c\u5b9e\u9645\u4e0a\u7b49\u4ef7\u4e8e`nb run`\uff0c\u4e0d\u8fc7\u53bb\u6389\u4e86\u4e0d\u5e38\u7528\u7684\u53c2\u6570 \n  - `nb paimon install` \u5b89\u88c5\u4f9d\u8d56\u5e93\u5230\u5c0f\u6d3e\u8499\u73af\u5883\u4e2d\n    - \u5f53\u63a5\u6709\u53c2\u6570\u65f6\uff0c\u4f7f\u7528\u8be5\u76ee\u5f55\u7684\u4e0bpip\u5b89\u88c5\u4f9d\u8d56\uff0c\u4f8b\u5982`nb paimon install httpx`\n    - \u5f53\u6ca1\u6709\u53c2\u6570\u65f6\uff0c\u5219\u662f\u4f7f\u7528\u8be5\u76ee\u5f55\u7684\u4e0bpip\u5b89\u88c5`requirements.txt`\u4e2d\u7684\u4f9d\u8d56\n  - `nb paimon res` \u4e0b\u8f7d\u6216\u66f4\u65b0\u5c0f\u6d3e\u8499\u7684\u8d44\u6e90\n  - `nb paimon update` \u66f4\u65b0\u5c0f\u6d3e\u8499\uff0c\u548c`git pull`\u4e00\u6837\n  - `nb paimon logo` \u5c55\u793a\u5c0f\u6d3e\u8499\u7684logo\n- `nb paimon (\u6307\u4ee4) --help` \u67e5\u770b\u5e2e\u52a9\n\n## TODO\n\n- [x] \u66f4\u65b0\u8d44\u6e90\n- [ ] \u4e0d\u4f9d\u8d56git\n- [ ] \u4fee\u6539\u914d\u7f6e\n- [ ] \u5b89\u88c5\u5c0f\u6d3e\u8499\u63d2\u4ef6\n- [ ] more\n\n## \u76f8\u5173\u9879\u76ee\n- [nb-cli](https://github.com/nonebot/nb-cli)\n- [LittlePaimon](https://github.com/CMHopeSunshine/LittlePaimon)\n",
    "bugtrack_url": null,
    "license": "AGPL",
    "summary": "Nonebot Cli plugin for LittlePaimon",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/CMHopeSunshine/nb-cli-plugin-littlepaimon"
    },
    "split_keywords": [
        "nonebot2",
        "nb-cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f81845f7c9476d9de43abc8689248014fdda5db25a87459a0ed80f9f71a3d3d",
                "md5": "bfde824192975c5e6b96e5a619696f9a",
                "sha256": "f58726308560853fffd4c9e958d8dc6e3113e6cd0f91bc2fc5344670ca2526eb"
            },
            "downloads": -1,
            "filename": "nb_cli_plugin_littlepaimon-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bfde824192975c5e6b96e5a619696f9a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 31472,
            "upload_time": "2023-07-26T12:20:35",
            "upload_time_iso_8601": "2023-07-26T12:20:35.205305Z",
            "url": "https://files.pythonhosted.org/packages/6f/81/845f7c9476d9de43abc8689248014fdda5db25a87459a0ed80f9f71a3d3d/nb_cli_plugin_littlepaimon-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d39835a69c789d3c57c4dae5ddb3b3018113489b249369d304619fe4bfbf8226",
                "md5": "74d1592ce97884140d0734b308214b4d",
                "sha256": "5081b8c6ec03bbab3f943e5a656bbe4eabb2622a8e95b6b00281fe0cd0174460"
            },
            "downloads": -1,
            "filename": "nb_cli_plugin_littlepaimon-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "74d1592ce97884140d0734b308214b4d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 26719,
            "upload_time": "2023-07-26T12:20:36",
            "upload_time_iso_8601": "2023-07-26T12:20:36.705345Z",
            "url": "https://files.pythonhosted.org/packages/d3/98/35a69c789d3c57c4dae5ddb3b3018113489b249369d304619fe4bfbf8226/nb_cli_plugin_littlepaimon-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-26 12:20:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CMHopeSunshine",
    "github_project": "nb-cli-plugin-littlepaimon",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nb-cli-plugin-littlepaimon"
}
        
Elapsed time: 1.80032s