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 使用文档。
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 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
联系方式
- Author: wl4837
- Email: wl4837@163.com
🎉 希望 GouTool 能让你的开发工作更加高效愉快!
Metadata
Release files for gou2tool 0.3.56
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gou2tool-0.3.56.tar.gz | 627.0 kB | Without provenance | Details for gou2tool-0.3.56.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gou2tool-0.3.56-py3-none-any.whl | Python 3 | none | any | Details for gou2tool-0.3.56-py3-none-any.whl |
Total release size: 1.3 MB
Release files / gou2tool-0.3.56.tar.gz
| Download URL | gou2tool-0.3.56.tar.gz |
|---|---|
| Size | 627.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5dfc8b23d4cf1cb7a2130aa382e61fd5af061e63a56e7a24a61c6db101084d4
|
|
BLAKE2b-256 checksum How to use checksums |
8114e5fddcc242b770583d316cc5f152f33900d9eec852d07b80da863bb241ba
|
| 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.56-py3-none-any.whl
| Download URL | gou2tool-0.3.56-py3-none-any.whl |
|---|---|
| Size | 683.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8746eb2190817cbe0a7ba87d97c6030dd0e6df25f191d35957589cdcf8b040ce
|
|
BLAKE2b-256 checksum How to use checksums |
dd989844eb4206957452c1593a1c56bf1940b1211ba908f10b65f50ac89a1600
|
| 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.56
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.