byzh-core
byzh 系列工具的核心库,包含了一些常用的工具函数和类。
pip install byzh-core → 导入名 byzh_core
CLI 工具
| 命令 | 说明 |
|---|---|
b_zip <dir_path> |
使用黑/白名单过滤将目录压缩为 ZIP |
b_dirtree <dir_path> |
打印目录树 |
模块一览
所有模块以 B 开头(包),类以 B_ 开头,函数以 b_ 开头。
| 模块 | 说明 |
|---|---|
| Barchive | ZIP / 7z 归档压缩,支持黑/白名单过滤和分卷压缩 |
| Bdownloader | HTTP 文件下载,支持多线程分段下载及单线程回退 |
| Bgrid | 实验数据记录到 CSV 或 SQLite(1D 行式 / 2D 网格) |
| Brecorder | 基于 pandas 的 1D / 2D CSV 记录器 |
| Btable | 2D 表格格式化渲染,支持 CJK 对齐、INI 导入/导出、转置 |
| Bterminal | 终端彩色打印、Shell 命令执行(超时终止)、Python 脚本运行 |
| Btqdm | 两种风格的进度条(经典填充条 / 现代多列条) |
| Butils | 通用工具:颜色枚举、计时器、参数验证装饰器、ML 项目脚手架 |
| Bwriter | 双通道日志写入器(终端 + 文件),支持颜色和时间戳 |
| B_argv | 运行时操作 sys.argv,方便测试和自动化 |
| B_os | 跨平台文件/目录操作、黑名单过滤的递归遍历、目录树显示 |
依赖
wcwidth— 表格中日韩字符宽度计算pandas(Bgrid / Brecorder)requests(Bdownloader)
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
byzh_core-0.0.10.18.tar.gz
(35.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file byzh_core-0.0.10.18.tar.gz.
File metadata
- Download URL: byzh_core-0.0.10.18.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d529d9044af8a111d3ec67096f9d6ba83a42a73cebe0ec0f7cb63cbcfc5fc160
|
|
| MD5 |
58e2e4dea73e36d7a461739b54b5aa6f
|
|
| BLAKE2b-256 |
6f6991466f0f2e40f5da769b1d1cda70b32a44ae7d2e100f130d24a7aa04b059
|
File details
Details for the file byzh_core-0.0.10.18-py3-none-any.whl.
File metadata
- Download URL: byzh_core-0.0.10.18-py3-none-any.whl
- Upload date:
- Size: 46.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b393b989400073969d2a6355e4baac54b6a3d9d09f591c7dbdadd9a213ae9c51
|
|
| MD5 |
2142ca39b8c8144f2232cafc437f7c12
|
|
| BLAKE2b-256 |
30696bd07ebc8b7f7af5acc2975a4458c50114a5f0427bd80ab5c55747585ac5
|