Skip to main content

byzh-core是byzh系列的核心库,包含了一些常用的工具函数和类。

Project description

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

MIT

Project details


Release history Release notifications | RSS feed

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.11.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

byzh_core-0.0.10.11-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file byzh_core-0.0.10.11.tar.gz.

File metadata

  • Download URL: byzh_core-0.0.10.11.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for byzh_core-0.0.10.11.tar.gz
Algorithm Hash digest
SHA256 56e5577a8b5b8202d560ddac507b08a401144f3497f9ec9b5a49f3478d89af13
MD5 7f5c241cc9fa0b3aacd470b81c90f843
BLAKE2b-256 b0610ae4e8f6addd34bcc395f7ef78fb78da5ca7e0064ffb721ae63e12a9218e

See more details on using hashes here.

File details

Details for the file byzh_core-0.0.10.11-py3-none-any.whl.

File metadata

  • Download URL: byzh_core-0.0.10.11-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for byzh_core-0.0.10.11-py3-none-any.whl
Algorithm Hash digest
SHA256 72861ddc52fdaf4101c24eb801bceef6b1dd57ab51e87d4383e4cde0e1d0e461
MD5 29002630b76a5cc4297ebbb0d9218efc
BLAKE2b-256 32872d2414f40b5cd4eae11b60dc9a7196e0c9a0ac80816ce9ab9c165cb32d8e

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