Skip to main content

个人用工具库

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wztools-2026.6.22.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

wztools-2026.6.22-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file wztools-2026.6.22.tar.gz.

File metadata

  • Download URL: wztools-2026.6.22.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for wztools-2026.6.22.tar.gz
Algorithm Hash digest
SHA256 ae8ad79e3e82f437373460afa4741e437604e7d2a76dc08bc593b1c628eb1183
MD5 3cddd3b726fb00d2134b944c44566181
BLAKE2b-256 204fc738bdbf8c810449ce80872b5f777c0ade3eb4a4db824cea5eb26e5b2fac

See more details on using hashes here.

File details

Details for the file wztools-2026.6.22-py3-none-any.whl.

File metadata

  • Download URL: wztools-2026.6.22-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for wztools-2026.6.22-py3-none-any.whl
Algorithm Hash digest
SHA256 01aa562e10ac37634e4347a26a69222b3e352a5a132c89c8cca6344a1a49e01a
MD5 2da9b69fc47dff52ff2556e97bd622f6
BLAKE2b-256 d8e7e39bd07398b1adffb7918f3df36e11d18b9f37056bcc45556be1166f8748

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