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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| naga_helper-0.3.3.tar.gz | 37.6 kB | Without provenance | Details for naga_helper-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| naga_helper-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for naga_helper-0.3.3-py3-none-any.whl |
Total release size: 74.4 kB
Release files / naga_helper-0.3.3.tar.gz
| Download URL | naga_helper-0.3.3.tar.gz |
|---|---|
| Size | 37.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05f63b5777b7520c80226dc7d7d72749e58e2dfcabdaec16658d89645029cfd3
|
|
BLAKE2b-256 checksum How to use checksums |
5d096acb5146cf920e3cb4e7dd24c5c7dcf4bc1cfa97472a465b6381a0116a1a
|
| 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.3-py3-none-any.whl
| Download URL | naga_helper-0.3.3-py3-none-any.whl |
|---|---|
| Size | 36.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2f59da43b42255857395112b71beb1129ce992bb8ba2831398e8be61f1ddd30
|
|
BLAKE2b-256 checksum How to use checksums |
64bd81d5286012e516d61a1711968d95e2135cc977aad71a9f03e6401335f527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Security for naga-helper 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.