Metadata-Version: 2.4
Name: blux
Version: 0.5.0
Summary: Common utils for multi repos of blbl.top.
Author: Hansimov
License-Expression: MIT
Project-URL: Homepage, https://github.com/Hansimov/blux
Project-URL: Issues, https://github.com/Hansimov/blux/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tclogger
Requires-Dist: requests
Requires-Dist: redis
Requires-Dist: rocksdict
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Dynamic: license-file

# blux
Common utils for multi repos of blbl.top.

![](https://img.shields.io/pypi/v/blux?label=blux&color=blue&cacheSeconds=60)


## Modules

- `blux.bvs`: AV/BV conversion helpers
- `blux.doc_score`: document score calculation
- `blux.text_doc`: sentence / md5 helpers for text documents
- `blux.wbi`: WBI signing helpers
- `blux.search`: Bilibili search client and models
- `blux.download`: public Bilibili audio/video/snapshot/cover/danmaku downloader
- `blux.store`: layered cache + storage manager with RocksDB/Redis and service mode


## CLI

```sh
blux bv av-to-bv 100
blux search all 猫和老鼠
blux dl snapshot BV1YXZPB1Erc
blux dl all BV1YXZPB1Erc
blux store put text sample --text "hello"
blux store service start
```


## Install package

```sh
pip install blux --upgrade
```


## Install for development

```sh
pip install -e .[dev]
pytest
```
