Skip to main content

GouTool

介绍

GouTool(包名 gou2tool)是面向 Python 项目开发的工具库,提供数据库链式查询、Excel 读写、本地文件同步部署,以及树形结构、字符串、日期、路径和常用业务数据处理工具。通过统一的工具接口减少重复代码,方便在项目中直接使用;文件部署也支持命令行调用。

安装

bash

通过 pip 安装

pip install gou2tool

或从源码安装

cd gou2tool pip install .

快速开始

数据库链式查询、参数绑定和事务用法见 DBUtil 使用文档。

本地文件同步部署和命令行用法见 DeployUtil 使用文档。

Excel 导入、导出及单元格修改见 Xlsx 使用案例。

远程命令、文件传输和端口映射见 SSHUtil 使用文档。

Webhook 请求、消息发送和签名见 WebHookUtil 使用文档。

运行时配置管理见 ConfigUtil 使用文档。

环境变量和环境文件读取见 EnvUtil 使用文档。

内存、文件缓存和标签管理见 CacheUtil 使用文档。

参数化 SQL 模板操作见 DBTemplateUtil 使用文档。

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

开发环境

  • Python >= 3.6
  • 项目依赖见 requirements.txt

运行测试

bash
# 运行所有测试
python -m unittest discover tests

# 运行单个测试
python -m unittest tests.tree_util

发布

bash
# 本地构建
python setup.py sdist bdist_wheel

# 发布到 PyPI
twine upload dist/*

许可证

MIT License

联系方式


🎉 希望 GouTool 能让你的开发工作更加高效愉快!

Metadata

Release files for gou2tool 0.3.59

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

Source distribution (sdist)

Source distribution for gou2tool 0.3.59
File Size Uploaded Provenance Actions
gou2tool-0.3.59.tar.gz 638.7 kB Without provenance Details for gou2tool-0.3.59.tar.gz

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / gou2tool-0.3.59.tar.gz

Download URL gou2tool-0.3.59.tar.gz
Size 638.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1c5572d935ecc40f5af5c3c6f00b6cac9b04779b15811b164192e39330331ca
BLAKE2b-256 checksum
How to use checksums
c030330fa64708ece4ccb4c4a171c0ed103f9f6f9afb71c942fa1e4c66a9d6fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / gou2tool-0.3.59-py3-none-any.whl

Download URL gou2tool-0.3.59-py3-none-any.whl
Size 696.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e5159e0500bf873379174bcfb32159857d2106c1eb1c85830c6fa7876372035
BLAKE2b-256 checksum
How to use checksums
a00f39e8ce0d7e17a639ca179efa494683e3db3cb2b12a12ed3f430af494d440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for gou2tool 0.3.59

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.

Release history Release notifications | RSS feed

This release

0.3.59 This release

2 release files No provenance

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