Metadata-Version: 2.4
Name: byzh-extra
Version: 0.0.10.3
Summary: 基于byzh-core的扩展包
Author: byzh_rc
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: byzh_core>=0.0.10.0
Requires-Dist: python-pptx
Requires-Dist: pdf2image
Requires-Dist: chardet
Requires-Dist: fpdf2
Requires-Dist: beautifulsoup4
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# byzh-extra

> 基于 byzh-core 的扩展包。

`pip install byzh-extra` → 导入名 `byzh_extra`

## CLI 工具

| 命令 | 说明 |
|------|------|
| `b_py2ipynb <path>` | 将 `.py` 文件转换为 Jupyter `.ipynb` 笔记本 |
| `b_ipynb2py <path>` | 将 `.ipynb` 笔记本转换为 `.py` 脚本 |
| `b_str_finder <string>` | 在当前目录的文本文件中搜索字符串 |

## 模块一览

所有子模块以 `B` 开头，类以 `B_` 开头，函数以 `b_` 开头。

| 模块 | 说明 |
|------|------|
| **Bffmpeg** | 视频格式转换、合并、切割 |
| **Bconvert** | 格式互转：`py` ↔ `ipynb`、图像 ↔ PDF、图像 → PPT、TS → MP4 |
| **Bcrawler** | 网页爬取：从 URL 抓取图像并生成为 PPT / PDF |
| **Bfinder** | 文件查找：文本内容搜索、大文件/大目录查找 |
| **Bmine** | m3u8 截图工具 |
| **Bvideo** | 视频转音频提取器，提供 CLI / Gradio / PySide6 三种使用方式 |
| **Boffice** | PDF 排序（自定义页序 / 范围）与合并 |
| **Bm3u8** | m3u8 视频下载（多线程并行下载 TS 片段）与双面板 VLC 播放器 |
| **Bqt** | PySide6 GUI 演示与模板 |
| **Bmarkdown** | Markdown 目录生成 |
| **Bmathematical_modeling** | 数学建模算法：AHP（层次分析法）、TOPSIS、熵权法（EWM） |
| **pandas** | pandas 工具：DataFrame 字符串去空格、列转字典 |
| **h5py** | HDF5 文件结构递归查看器 |

## 依赖

- `byzh-core>=0.0.9.0` — 核心基础工具
- `python-pptx` — PowerPoint 生成
- `pdf2image` — PDF 转图像
- `fpdf2` — 图像生成 PDF
- `beautifulsoup4` — HTML 解析与爬取
- `chardet` — 文本编码检测
- `PySide6`（可选）— Qt GUI 界面
- `PyPDF2`（可选）— PDF 排序/合并
- `h5py`（可选）— HDF5 文件查看

## License

[MIT](LICENSE)
