Skip to main content

面向 Bilibili 场景的无状态工具库。

Project description

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

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

blux-0.5.2.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

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

blux-0.5.2-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file blux-0.5.2.tar.gz.

File metadata

  • Download URL: blux-0.5.2.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for blux-0.5.2.tar.gz
Algorithm Hash digest
SHA256 284a62be57dab3c4301020fa5417a9ecf9922dd1f17267aa3ca09d20d3d621da
MD5 8e7f77011fb59ef42f75eb8b91582e54
BLAKE2b-256 1668dfd3010d385489b20b4325bceb4a4e137161459f1b62e56ee7f07811918e

See more details on using hashes here.

File details

Details for the file blux-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: blux-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 36.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for blux-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b054a3ba471e0f2805f3fedba28caffbb186c16a31d9ea8309ca2eb1c3e9d85b
MD5 c4a82caebd92908236d6a1207428f47d
BLAKE2b-256 f95fc1d296c42d426bcc0565387b563cfba4f58c751920a0eeee4a9a0d4f87f3

See more details on using hashes here.

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