Python wrapper for Banned.AniParser (.NET) with pythonnet
Project description
PyAniParser
PyAniParser 是一个用于解析动画文件名的库,专门设计用于识别和提取动画文件名中的关键信息。
功能特点
- 支持多个字幕组/压制组的命名规则解析
- 内置多个常用字幕组的解析支持
- 支持批量文件解析
安装
pip install pyaniparser
使用方法
基本使用
from pyaniparser import AniParser
# 单个title
parser = AniParser()
result = parser.parse("你的动画文件名.mp4")
print(result.title)
# 多个title
items = list(parser.parse_batch(["文件1.mp4", "文件2.mp4"]))
for result in items :
print(result.title)
获取支持的字幕组列表
parser = AniParser()
groups = parser.get_translation_parser_list()
内置解析器支持
目前支持以下字幕组/压制组的命名规则(按字典顺序),完整支持的小组列表请见:详细列表
- 北宇治字幕组
- 喵萌奶茶屋
- 桜都字幕组
- ANi
- jsum
- Kirara Fantasia
- Vcb-Studio
许可证
本项目采用 Apache-2.0 许可证。详情请参见 LICENSE 文件。
贡献
欢迎提交 Issue 和 Pull Request!
支持
如果你在使用过程中遇到任何问题,请创建 Issue。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyaniparser-0.0.2.tar.gz.
File metadata
- Download URL: pyaniparser-0.0.2.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
607deab1289b857212f208224cb82fae644681b837355f307029ed104435dc4f
|
|
| MD5 |
9a461bbca5af192e96ac36417c32d0e1
|
|
| BLAKE2b-256 |
8d707d034c71999983bed88c62ec0a12d0e35c57fd854f9c81469796c4038fbc
|
Provenance
The following attestation bundles were made for pyaniparser-0.0.2.tar.gz:
Publisher:
publish.yml on banned2054/PyAniParser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaniparser-0.0.2.tar.gz -
Subject digest:
607deab1289b857212f208224cb82fae644681b837355f307029ed104435dc4f - Sigstore transparency entry: 393401836
- Sigstore integration time:
-
Permalink:
banned2054/PyAniParser@afd54699a1e083d96071ba39f22b322ba90fdd30 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/banned2054
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@afd54699a1e083d96071ba39f22b322ba90fdd30 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyaniparser-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pyaniparser-0.0.2-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
359acaaa0f86479edc7ecc517001888b049155935dbebc320843e77370ccdd65
|
|
| MD5 |
ca0219354015674f720c7601d25a33cd
|
|
| BLAKE2b-256 |
e4823d0536fdaf1b518261ab0092c0a942580370d893d42ec3de9ad6e9fd7f8a
|
Provenance
The following attestation bundles were made for pyaniparser-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on banned2054/PyAniParser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaniparser-0.0.2-py3-none-any.whl -
Subject digest:
359acaaa0f86479edc7ecc517001888b049155935dbebc320843e77370ccdd65 - Sigstore transparency entry: 393401839
- Sigstore integration time:
-
Permalink:
banned2054/PyAniParser@afd54699a1e083d96071ba39f22b322ba90fdd30 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/banned2054
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@afd54699a1e083d96071ba39f22b322ba90fdd30 -
Trigger Event:
release
-
Statement type: