# luyiba
英雄联盟随机英雄选择器
安装用pip安装即可:
```
pip install luyiba
```
具体用法如下所示:
```
luyiba --help
```
或者
```
python -m luyiba --help
```
```
Usage: luyiba [OPTIONS]
英雄联盟辅助小工具
Options:
-v, --version 本软件版本
-V, --verbose 打印输出冗余信息
-l, --list 列出全英雄名
-m, --mode TEXT 模式: all 全英雄随机 mylist 我的喜好清单随机 rank 排名列出模式
[default: all]
--rank [hot|ban|show|win] 根据什么排名,默认热门率 [default: hot]
-n, --name TEXT 指定英雄名字选取模式
--number INTEGER rank模式下显示数目 [default: 5]
-p, --position [top|mid|jungle|bottom|support|t|m|j|b|s]
指定我只想玩那个位置
-r, --role [tank|mage|support|marksman|fighter|assassin|t|g|s|k|f|a]
指定我只想玩某种角色
--mylist-list 列出我的喜好英雄清单
--mylist-add TEXT 我的喜好清单添加一个
--mylist-remove TEXT 我的喜好清单删除一个
--mylist-delete 我的喜好清单清空
--help Show this message and exit.
```
## 基本使用
### 列出所有的英雄名字
```
luyiba -l
```
### 列出指定英雄信息
```
luyiba -n 百裂冥犬
```
### 随机选择英雄
默认随机选择英雄模式
```
luyiba
```
### 个人喜好清单随机模式
```
luyiba -m mylist
```
### 个人喜好清单操作
需要你往个人喜好清单里面增删一些英雄,具体英雄名字可以通过 `luyiba -l` 来查看。
- `luyiba --mylist-add 寒冰射手` 将某个英雄添加到个人喜好清单
- `luyiba --mylist-list` 列出我的个人喜好清单
- `luyiba -m -p t` 从个人喜好清单中随机抽选一名上单
### 排名模式
```
luyiba -m rank
```
rank排名模式支持 `--rank` 来指定具体的排名逻辑:
- hot 热门率排名 根据ban率加上选用率而来 这个热门率算法是我推荐的,可以看出当前版本那些英雄最超模
- ban ban率排名
- show 选用率排名
- win 胜率排名
### 过滤逻辑支持
所有模式均支持过滤逻辑的添加:
```
-p 位置过滤
-r 英雄角色过滤
```
目前提供了两种过滤, `--position` 和 `--role` ,比如说我想从我喜爱的英雄里面今天打上单:
```text
luyiba --position=top
```
比如说我今天打中路刺客
```text
luyiba --position=mid --role=assassin
```
## 视频讲解
[https://www.bilibili.com/video/BV1nK411K7wv](https://www.bilibili.com/video/BV1nK411K7wv)
Raw data
{
"_id": null,
"home_page": "https://github.com/a358003542/luyiba",
"name": "luyiba",
"maintainer": "wanze",
"docs_url": null,
"requires_python": null,
"maintainer_email": "a358003542@gmail.com",
"keywords": "lol, python",
"author": "wanze",
"author_email": "a358003542@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cb/46/ee539259979b8f7e06809cd9e302f3b4e0632ad7becebe36d72cbbc78dfb/luyiba-0.4.3.tar.gz",
"platform": "windows",
"description": "# luyiba\r\n\u82f1\u96c4\u8054\u76df\u968f\u673a\u82f1\u96c4\u9009\u62e9\u5668\r\n\r\n\u5b89\u88c5\u7528pip\u5b89\u88c5\u5373\u53ef:\r\n```\r\npip install luyiba\r\n```\r\n\r\n\u5177\u4f53\u7528\u6cd5\u5982\u4e0b\u6240\u793a\uff1a\r\n\r\n```\r\nluyiba --help\r\n```\r\n\r\n\u6216\u8005\r\n\r\n```\r\npython -m luyiba --help\r\n```\r\n\r\n\r\n\r\n```\r\nUsage: luyiba [OPTIONS]\r\n\r\n \u82f1\u96c4\u8054\u76df\u8f85\u52a9\u5c0f\u5de5\u5177\r\n\r\nOptions:\r\n -v, --version \u672c\u8f6f\u4ef6\u7248\u672c\r\n -V, --verbose \u6253\u5370\u8f93\u51fa\u5197\u4f59\u4fe1\u606f\r\n -l, --list \u5217\u51fa\u5168\u82f1\u96c4\u540d\r\n -m, --mode TEXT \u6a21\u5f0f\uff1a all \u5168\u82f1\u96c4\u968f\u673a mylist \u6211\u7684\u559c\u597d\u6e05\u5355\u968f\u673a rank \u6392\u540d\u5217\u51fa\u6a21\u5f0f\r\n [default: all]\r\n --rank [hot|ban|show|win] \u6839\u636e\u4ec0\u4e48\u6392\u540d\uff0c\u9ed8\u8ba4\u70ed\u95e8\u7387 [default: hot]\r\n -n, --name TEXT \u6307\u5b9a\u82f1\u96c4\u540d\u5b57\u9009\u53d6\u6a21\u5f0f\r\n --number INTEGER rank\u6a21\u5f0f\u4e0b\u663e\u793a\u6570\u76ee [default: 5]\r\n -p, --position [top|mid|jungle|bottom|support|t|m|j|b|s]\r\n \u6307\u5b9a\u6211\u53ea\u60f3\u73a9\u90a3\u4e2a\u4f4d\u7f6e\r\n -r, --role [tank|mage|support|marksman|fighter|assassin|t|g|s|k|f|a]\r\n \u6307\u5b9a\u6211\u53ea\u60f3\u73a9\u67d0\u79cd\u89d2\u8272\r\n --mylist-list \u5217\u51fa\u6211\u7684\u559c\u597d\u82f1\u96c4\u6e05\u5355\r\n --mylist-add TEXT \u6211\u7684\u559c\u597d\u6e05\u5355\u6dfb\u52a0\u4e00\u4e2a\r\n --mylist-remove TEXT \u6211\u7684\u559c\u597d\u6e05\u5355\u5220\u9664\u4e00\u4e2a\r\n --mylist-delete \u6211\u7684\u559c\u597d\u6e05\u5355\u6e05\u7a7a\r\n --help Show this message and exit.\r\n```\r\n\r\n## \u57fa\u672c\u4f7f\u7528\r\n\r\n### \u5217\u51fa\u6240\u6709\u7684\u82f1\u96c4\u540d\u5b57\r\n\r\n```\r\nluyiba -l\r\n```\r\n\r\n### \u5217\u51fa\u6307\u5b9a\u82f1\u96c4\u4fe1\u606f\r\n\r\n```\r\nluyiba -n \u767e\u88c2\u51a5\u72ac\r\n```\r\n\r\n### \u968f\u673a\u9009\u62e9\u82f1\u96c4\r\n\u9ed8\u8ba4\u968f\u673a\u9009\u62e9\u82f1\u96c4\u6a21\u5f0f\r\n\r\n```\r\nluyiba \r\n```\r\n\r\n### \u4e2a\u4eba\u559c\u597d\u6e05\u5355\u968f\u673a\u6a21\u5f0f\r\n\r\n```\r\nluyiba -m mylist\r\n```\r\n\r\n### \u4e2a\u4eba\u559c\u597d\u6e05\u5355\u64cd\u4f5c\r\n\u9700\u8981\u4f60\u5f80\u4e2a\u4eba\u559c\u597d\u6e05\u5355\u91cc\u9762\u589e\u5220\u4e00\u4e9b\u82f1\u96c4\uff0c\u5177\u4f53\u82f1\u96c4\u540d\u5b57\u53ef\u4ee5\u901a\u8fc7 `luyiba -l` \u6765\u67e5\u770b\u3002\r\n\r\n- `luyiba --mylist-add \u5bd2\u51b0\u5c04\u624b` \u5c06\u67d0\u4e2a\u82f1\u96c4\u6dfb\u52a0\u5230\u4e2a\u4eba\u559c\u597d\u6e05\u5355\r\n- `luyiba --mylist-list` \u5217\u51fa\u6211\u7684\u4e2a\u4eba\u559c\u597d\u6e05\u5355\r\n- `luyiba -m -p t` \u4ece\u4e2a\u4eba\u559c\u597d\u6e05\u5355\u4e2d\u968f\u673a\u62bd\u9009\u4e00\u540d\u4e0a\u5355\r\n\r\n### \u6392\u540d\u6a21\u5f0f\r\n\r\n```\r\nluyiba -m rank \r\n```\r\n\r\nrank\u6392\u540d\u6a21\u5f0f\u652f\u6301 `--rank` \u6765\u6307\u5b9a\u5177\u4f53\u7684\u6392\u540d\u903b\u8f91\uff1a\r\n\r\n- hot \u70ed\u95e8\u7387\u6392\u540d \u6839\u636eban\u7387\u52a0\u4e0a\u9009\u7528\u7387\u800c\u6765 \u8fd9\u4e2a\u70ed\u95e8\u7387\u7b97\u6cd5\u662f\u6211\u63a8\u8350\u7684\uff0c\u53ef\u4ee5\u770b\u51fa\u5f53\u524d\u7248\u672c\u90a3\u4e9b\u82f1\u96c4\u6700\u8d85\u6a21\r\n- ban ban\u7387\u6392\u540d\r\n- show \u9009\u7528\u7387\u6392\u540d\r\n- win \u80dc\u7387\u6392\u540d\r\n\r\n### \u8fc7\u6ee4\u903b\u8f91\u652f\u6301\r\n\u6240\u6709\u6a21\u5f0f\u5747\u652f\u6301\u8fc7\u6ee4\u903b\u8f91\u7684\u6dfb\u52a0\uff1a\r\n\r\n```\r\n-p \u4f4d\u7f6e\u8fc7\u6ee4\r\n\r\n-r \u82f1\u96c4\u89d2\u8272\u8fc7\u6ee4\r\n```\r\n\r\n\u76ee\u524d\u63d0\u4f9b\u4e86\u4e24\u79cd\u8fc7\u6ee4\uff0c `--position` \u548c `--role` \uff0c\u6bd4\u5982\u8bf4\u6211\u60f3\u4ece\u6211\u559c\u7231\u7684\u82f1\u96c4\u91cc\u9762\u4eca\u5929\u6253\u4e0a\u5355\uff1a\r\n\r\n```text\r\nluyiba --position=top\r\n```\r\n\r\n\r\n\u6bd4\u5982\u8bf4\u6211\u4eca\u5929\u6253\u4e2d\u8def\u523a\u5ba2\r\n\r\n```text\r\nluyiba --position=mid --role=assassin\r\n```\r\n\r\n \r\n\r\n\r\n## \u89c6\u9891\u8bb2\u89e3\r\n\r\n[https://www.bilibili.com/video/BV1nK411K7wv](https://www.bilibili.com/video/BV1nK411K7wv)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u82f1\u96c4\u8054\u76df\u968f\u673a\u82f1\u96c4\u9009\u62e9\u5668",
"version": "0.4.3",
"project_urls": {
"Homepage": "https://github.com/a358003542/luyiba"
},
"split_keywords": [
"lol",
" python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7822b97e5b0d311f8bbae259000e491fefefb33e05489727089347f8cbff067f",
"md5": "5d6f12e72fabf71bc95de310f4d6dbb7",
"sha256": "f033b6a6a707451fe92cebe9058a50e69fdbd4e081048f7a9689bb367ddc6baa"
},
"downloads": -1,
"filename": "luyiba-0.4.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5d6f12e72fabf71bc95de310f4d6dbb7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11720,
"upload_time": "2024-09-22T03:50:14",
"upload_time_iso_8601": "2024-09-22T03:50:14.311801Z",
"url": "https://files.pythonhosted.org/packages/78/22/b97e5b0d311f8bbae259000e491fefefb33e05489727089347f8cbff067f/luyiba-0.4.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cb46ee539259979b8f7e06809cd9e302f3b4e0632ad7becebe36d72cbbc78dfb",
"md5": "563b9519ce3eede63d167e2ca4a8da5e",
"sha256": "a0e5ffe391d9b1dc082d16451abab340f2c8da614ec70d7219ac79809a46a848"
},
"downloads": -1,
"filename": "luyiba-0.4.3.tar.gz",
"has_sig": false,
"md5_digest": "563b9519ce3eede63d167e2ca4a8da5e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11125,
"upload_time": "2024-09-22T03:50:16",
"upload_time_iso_8601": "2024-09-22T03:50:16.045174Z",
"url": "https://files.pythonhosted.org/packages/cb/46/ee539259979b8f7e06809cd9e302f3b4e0632ad7becebe36d72cbbc78dfb/luyiba-0.4.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-22 03:50:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "a358003542",
"github_project": "luyiba",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "luyiba"
}