NAGA/Mortal牌谱解析
这是 NAGA助手 网站NAGA/Mortal牌谱解析的代码。
之所以开源这部分代码,是因为其技术含金量最高(有实际价值)、计算量较重(缓解网站负载)、且欢迎各位贡献。网站其余部分主要是重CRUD逻辑,参考价值不大,因此不做开源。
Install
pip install naga_helper
模块
analyzer
分析现有NAGA牌谱报告,使用方式如下:
导入pip包:
from naga_helper.analyzer import parse_report
parse_report('NAGA html content')
命令行:
python naga_helper/analyzer.py <naga牌谱网址> <Mortal牌谱id>
其中Mortal牌谱id为选填,如果填写,则会把Mortal的切牌选择合并入NAGA牌谱报告。恶手率/一致率/Rating的计算方式与NAGA一致。
naga牌谱地址可以同时省略前缀与后缀,只保留html key。
格式参考:
python naga_helper/analyzer.py https://naga.dmv.nico/htmls/9a852e2e3a273e1d5a362d69618000684340d3e0e96024e6fa07858afa1afa00v2_2.html 01f7faef6dc7fe5e
plugins
各类插件,包括NAGA网页模块等
功能
- NAGA牌谱报告分析
- Mortal牌谱报告分析 & 把Mortal报告融合入NAGA界面
- NAGA网页端快捷键注入脚本
Metadata
Release files for naga-helper 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| naga_helper-0.3.2.tar.gz | 105.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| naga_helper-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 140.4 kB
Release files / naga_helper-0.3.2.tar.gz
| Download URL | naga_helper-0.3.2.tar.gz |
|---|---|
| Size | 105.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c60a589958c842ac9ba9f903202f2d9416b8c20f9bcb59bf62c9625267c492e9
|
|
BLAKE2b-256 checksum How to use checksums |
8593635d1a9eb4918bede6646dd4bc0bc74b16a678744c1b449122b5dc376f57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / naga_helper-0.3.2-py3-none-any.whl
| Download URL | naga_helper-0.3.2-py3-none-any.whl |
|---|---|
| Size | 35.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86beed64fd11a7154ab4c0b659958d923f8d5c38b52e0fd2cb76c4d9f7fba12b
|
|
BLAKE2b-256 checksum How to use checksums |
54e7a96ebb85a40f6ead9d3c816e34ec161d936e34249af24472b0df82afad2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|