Skip to main content

wztools

个人用 Python 工具库

模块

  • utils - 通用工具函数

    • run_cmd - 执行命令行命令并实时返回结果
    • logger / get_logger - 日志配置(Rich 终端输出)
    • get_loguru - loguru 日志(按需使用,需额外安装 loguru)
    • load_toml - 读取 TOML 配置文件
    • error_info - 错误信息提取
    • measure_time / format_time - 时间相关工具
    • set_datetime_double_xaxis - matplotlib 双 x 轴时间格式
    • fetch_nearest_point - 空间最近点查询
  • datalake - 本地数据存储管理

    • 按时间组织数据文件
    • 支持日、月、年维度创建和获取数据

变更记录

  • [v2026.06.22]

    • logger 改为懒初始化,from wztools import logger 时再创建 root logger
    • datalake 缺失文件 warning 补充 root_dir、dataset_name、时间范围和路径模板
  • [v2026.04.28]

    • command.py stdout 日志级别改为 warning
    • 添加 command.py 测试
  • [v2026.04.10]

    • datalake warning 信息优化
  • [v2025.12.01]

    • 增加 datalake 模块
  • [v2025.10.29]

    • 添加 load_toml

Metadata

Release files for wztools 2026.6.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wztools 2026.6.22
File Size Uploaded Provenance Actions
wztools-2026.6.22.tar.gz 10.1 kB Without provenance Details for wztools-2026.6.22.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wztools 2026.6.22
File Interpreter ABI Platform Actions
wztools-2026.6.22-py3-none-any.whl Python 3 none any Details for wztools-2026.6.22-py3-none-any.whl

Total release size: 21.3 kB

Release files / wztools-2026.6.22.tar.gz

Download URL wztools-2026.6.22.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae8ad79e3e82f437373460afa4741e437604e7d2a76dc08bc593b1c628eb1183
BLAKE2b-256 checksum
How to use checksums
204fc738bdbf8c810449ce80872b5f777c0ade3eb4a4db824cea5eb26e5b2fac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / wztools-2026.6.22-py3-none-any.whl

Download URL wztools-2026.6.22-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01aa562e10ac37634e4347a26a69222b3e352a5a132c89c8cca6344a1a49e01a
BLAKE2b-256 checksum
How to use checksums
d8e7e39bd07398b1adffb7918f3df36e11d18b9f37056bcc45556be1166f8748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for wztools 2026.6.22

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page