Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaniparser-0.0.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyaniparser-0.0.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file pyaniparser-0.0.1.tar.gz.

File metadata

  • Download URL: pyaniparser-0.0.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyaniparser-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5396a957ee160bda6c5c9eac83c2492b15f45f1e0ba36eb6c4f5d0337ea554d7
MD5 75b6c418eca396f4da8d705fe9cbfb53
BLAKE2b-256 337d8a2a6928ae9acb38790299bcc2fd442dd3e1e098b161be9f45af25318cdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaniparser-0.0.1.tar.gz:

Publisher: publish.yml on banned2054/PyAniParser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyaniparser-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyaniparser-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyaniparser-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3be5a367df6fa7ffde46f3ed026a08ec8f15a9153c229d62e987332eda33d738
MD5 9c75b9d4656ab019a05b3f3dd098df26
BLAKE2b-256 b563df054da82afd544634903dadb2766678a83c7c767b7a2012f105775a957f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaniparser-0.0.1-py3-none-any.whl:

Publisher: publish.yml on banned2054/PyAniParser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page