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.17.tar.gz
(34.8 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.17.tar.gz.
File metadata
- Download URL: byzh_core-0.0.10.17.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ffe236b4f5468c9bc12148df17d31fcf4076c604b1baad867385aeb963a0a43
|
|
| MD5 |
9dd5a996aede47d53a4693f11f55a52d
|
|
| BLAKE2b-256 |
851d5678e62fd5d53e37ae6684256151d38e5b00a65ef1ea737899e6ebfd25ea
|
File details
Details for the file byzh_core-0.0.10.17-py3-none-any.whl.
File metadata
- Download URL: byzh_core-0.0.10.17-py3-none-any.whl
- Upload date:
- Size: 45.4 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 |
16b336635d4f92a66b764d1826ee08d6ad8db8a16f1a4d202b5de04b3d24cca0
|
|
| MD5 |
23b01124cd493321b0367c730877166b
|
|
| BLAKE2b-256 |
c584f99d47575e679129e8fae32de49dff5b9684a572c026febdaf5372dfb0d8
|