blux
面向 Bilibili 场景的无状态工具库,提供 BV/AV 互转、文档打分、文本整理、WBI 签名、搜索和公开资源下载等能力。
模块
blux.bvs: AV/BV 互转工具blux.convert: 基于 ffmpeg 的音频探测与转码工具blux.doc_score: 文档互动分值计算blux.text_doc: 标题、标签、简介拼接与 MD5 标识生成blux.wbi: WBI 签名和dm_img参数生成blux.search: Bilibili 搜索客户端与数据模型blux.download: 面向公开资源的下载工具
文档索引
命令行
blux bv av-to-bv 100
blux convert probe ./sample.m4a
blux search all 猫和老鼠
blux dl snapshot BV1YXZPB1Erc
blux dl audio BV1YXZPB1Erc --convert-audio-format wav
安装
pip install blux --upgrade
如果需要音频探测和转码能力,请额外安装 ffmpeg,见 docs/package/SETUP.md。
blux 只保留无状态能力。持久化存储、缓存策略和服务编排应放在仓库外部的独立层中。
开发
pip install -e .[dev]
git config core.hooksPath .githooks
pytest
Metadata
Release files for blux 0.5.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 | Provenance | Actions |
|---|---|---|---|---|
| blux-0.5.2.tar.gz | 33.7 kB | Without provenance | Details for blux-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blux-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for blux-0.5.2-py3-none-any.whl |
Total release size: 69.9 kB
Release files / blux-0.5.2.tar.gz
| Download URL | blux-0.5.2.tar.gz |
|---|---|
| Size | 33.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
284a62be57dab3c4301020fa5417a9ecf9922dd1f17267aa3ca09d20d3d621da
|
|
BLAKE2b-256 checksum How to use checksums |
1668dfd3010d385489b20b4325bceb4a4e137161459f1b62e56ee7f07811918e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / blux-0.5.2-py3-none-any.whl
| Download URL | blux-0.5.2-py3-none-any.whl |
|---|---|
| Size | 36.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b054a3ba471e0f2805f3fedba28caffbb186c16a31d9ea8309ca2eb1c3e9d85b
|
|
BLAKE2b-256 checksum How to use checksums |
f95fc1d296c42d426bcc0565387b563cfba4f58c751920a0eeee4a9a0d4f87f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for blux 0.5.2
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.