Skip to main content

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

Project description

blux

面向 Bilibili 场景的无状态工具库,提供 BV/AV 互转、文档打分、文本整理、WBI 签名、搜索和公开资源下载等能力。

模块

  • blux.bvs: AV/BV 互转工具
  • blux.doc_score: 文档互动分值计算
  • blux.text_doc: 标题、标签、简介拼接与 MD5 标识生成
  • blux.wbi: WBI 签名和 dm_img 参数生成
  • blux.search: Bilibili 搜索客户端与数据模型
  • blux.download: 面向公开资源的下载工具

文档索引

命令行

blux bv av-to-bv 100
blux search all 猫和老鼠
blux dl snapshot BV1YXZPB1Erc
blux dl all BV1YXZPB1Erc

安装

pip install blux --upgrade

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.1.tar.gz (29.5 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.1-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blux-0.5.1.tar.gz
  • Upload date:
  • Size: 29.5 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.1.tar.gz
Algorithm Hash digest
SHA256 e64d24c843f673497554f2d93b4ed96410805effa9849120ee19428e08b3077b
MD5 121e2a828aca904b6cabc88786084bcd
BLAKE2b-256 64a221c8eef41918819377b7b59845fdd0fa0fa1a25e4d52dce84c9614bd4dce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blux-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 32.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53b3bfe40a09a71824abcc3577404a5a1c30658722eda4710df21263f55383f2
MD5 d0c7d8292ea2d8ca92f460430eca218e
BLAKE2b-256 68482a6160666748aec7cd46f2ea33e29fd7cfeaa79ce0077734f20127916a34

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