a13e
一个简单且可扩展的听歌识曲包,目前仅支持网易云音乐chromium插件API
快速使用
pip install a13e
a13e -h
作为python模块使用
from pathlib import Path
import a13e
audio_fp = Path('aaa.mp3')
a13e.recognize(audio_fp) #调用所有的识别器并返回结果
result = a13e.random_recognize(audio_fp) # 调用所有的识别器并随机返回一个结果
a13e.set_tag(audio_fp, result) # 将返回的结果设置为MP3标签
编写识别器
myproject
│ main.py #程序入口
│
└─plugins
__init__.py #必须
new_recognizer.py
#myproject/main.py
from importlib import import_module
from a13e.plugin import PluginRegister
PluginRegister(import_module('plugins'))
#myproject/plugins/new_recognizer.py
from a13e.plugin import PluginRegister
from a13e.recognizer import BaseRecognizer
@PluginRegister.register
class NewRecognizer(BaseRecognizer):
...
目前支持的平台
| 平台 | 识别器名称 | 额外参数 | 描述 |
|---|---|---|---|
| 网易云音乐 | NeteaseCloudMusic |
没有 | 本API来自网易云音乐听歌识曲插件 |
参考
https://github.com/akinazuki/NeteaseCloudMusic-Audio-Recognize
Metadata
Release files for a13e 0.0.1
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 |
|---|---|---|---|---|
| a13e-0.0.1.tar.gz | 48.7 MB | Without provenance | Details for a13e-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a13e-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for a13e-0.0.1-py3-none-any.whl |
Total release size: 97.7 MB
Release files / a13e-0.0.1.tar.gz
| Download URL | a13e-0.0.1.tar.gz |
|---|---|
| Size | 48.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b76e6c47fbf8158367912cc9cc1612f388bc7b381efb700e470ca5fd3f98f15
|
|
BLAKE2b-256 checksum How to use checksums |
a30d18434630a3903066d782d3320b0c4a4b42db49de5f0b511fbc7cc71dade2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / a13e-0.0.1-py3-none-any.whl
| Download URL | a13e-0.0.1-py3-none-any.whl |
|---|---|
| Size | 49.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce4c2e9a6be92c098e43d48e997f1a510409a473a384b7384bd4f77007cb6e3a
|
|
BLAKE2b-256 checksum How to use checksums |
54ad9fc6cab4f139010e06e754d8bb8a4e9e9f65abf5aa57f5c17e8cdeeb6dae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for a13e 0.0.1
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.