Metadata-Version: 2.4
Name: gou2tool
Version: 0.3.61
Summary: 🐶 Python工具类库 更加快速的开发项目 便捷优雅的使用类库
Home-page: https://gitee.com/kingood/gou2tool
Author: kingood
Author-email: wl4837@qq.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: office
Requires-Dist: openpyxl<3.1.0,>=3.0.10; python_version < "3.8" and extra == "office"
Requires-Dist: openpyxl>=3.1.0; python_version >= "3.8" and extra == "office"
Requires-Dist: xlrd>=2.0.1; extra == "office"
Requires-Dist: xlwt>=1.3.0; extra == "office"
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: twine>=3.0; extra == "dev"
Requires-Dist: build>=0.10.0; extra == "dev"
Provides-Extra: all
Requires-Dist: openpyxl<3.1.0,>=3.0.10; python_version < "3.8" and extra == "all"
Requires-Dist: openpyxl>=3.1.0; python_version >= "3.8" and extra == "all"
Requires-Dist: xlrd>=2.0.1; extra == "all"
Requires-Dist: xlwt>=1.3.0; extra == "all"
Requires-Dist: pytest>=6.0; extra == "all"
Requires-Dist: twine>=3.0; extra == "all"
Requires-Dist: build>=0.10.0; extra == "all"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

# GouTool 🛠️

> 让 Python 开发更快、更优雅 —— 一个开箱即用的工具百宝箱 🧰

GouTool（包名 `gou2tool`）是面向 Python 项目开发的一站式工具库，帮你把重复的「造轮子」工作一次性搞定。涵盖数据库链式查询、Excel 读写、本地文件同步部署，以及树形结构、字符串、日期、路径等常用业务数据处理。统一接口、开箱即用，让开发更省心、更高效 🚀

## ✨ 特性

- 🗄️ 数据库链式查询，参数绑定与事务
- 📊 Excel 读写与单元格操作
- 📂 本地文件同步部署，支持命令行调用
- 🌲 树形结构、字符串、日期、路径等常用工具
- 🧩 数十个开箱即用的业务工具类

## 🚀 安装

```bash
# 通过 pip 安装
pip install gou2tool

# 或从源码安装
cd gou2tool
pip install .
```

## 📚 快速开始

| 工具 | 描述 | 文档 |
| --- | --- | --- |
| `DBUtil` | 数据库链式查询、参数绑定与事务 | [文档](docs/DBUtil.md) |
| `DeployUtil` | 本地文件同步部署 | [文档](docs/DeployUtil.md) |
| `DBTemplateUtil` | 参数化 SQL 模板 | [文档](docs/DBTemplateUtil.md) |
| `SQLUtil` | SQL 语句生成 | [文档](docs/SQLUtil.md) |
| `Xlsx` | Excel 导入导出与单元格操作 | [文档](docs/Xlsx.md) |
| `FileUtil` | 文件读写 | [文档](docs/FileUtil.md) |
| `DirUtil` | 目录操作 | [文档](docs/DirUtil.md) |
| `ZipUtil` | 压缩包处理 | [文档](docs/ZipUtil.md) |
| `ImageUtil` | 图片处理 | [文档](docs/ImageUtil.md) |
| `XmlUtil` | XML 解析 | [文档](docs/XmlUtil.md) |
| `IniFileUtil` | INI 配置解析 | [文档](docs/IniFileUtil.md) |
| `PathUtil` | 路径处理 | [文档](docs/PathUtil.md) |
| `SSHUtil` | 远程命令与文件传输 | [文档](docs/SSHUtil.md) |
| `WebHookUtil` | Webhook 消息发送与签名 | [文档](docs/WebHookUtil.md) |
| `UrlUtil` | URL 处理 | [文档](docs/UrlUtil.md) |
| `SmsUtil` | 短信发送 | [文档](docs/SmsUtil.md) |
| `WechatUtil` | 微信接口 | [文档](docs/WechatUtil.md) |
| `WecliUtil` | 微信 CLI | [文档](docs/WecliUtil.md) |
| `KingdeeJdyUtil` | 金蝶精斗云接口 | [文档](docs/KingdeeJdyUtil.md) |
| `ConfigUtil` | 运行时配置管理 | [文档](docs/ConfigUtil.md) |
| `EnvUtil` | 环境变量读取 | [文档](docs/EnvUtil.md) |
| `CacheUtil` | 内存与文件缓存 | [文档](docs/CacheUtil.md) |
| `FormValidateUtil` | 表单字段验证 | [文档](docs/FormValidateUtil.md) |
| `EmailUtil` | 邮箱校验 | [文档](docs/EmailUtil.md) |
| `PhoneUtil` | 手机号 / 电话校验 | [文档](docs/PhoneUtil.md) |
| `IdCardUtil` | 身份证校验与信息提取 | [文档](docs/IdCardUtil.md) |
| `RegexUtil` | 信息提取 | [文档](docs/RegexUtil.md) |
| `AddressUtil` | 地址解析与相似度 | [文档](docs/AddressUtil.md) |
| `CompanyUtil` | 企业名称与代码校验 | [文档](docs/CompanyUtil.md) |
| `GeoUtil` | 地理距离 | [文档](docs/GeoUtil.md) |
| `LngLatUtil` | 经纬度距离 | [文档](docs/LngLatUtil.md) |
| `AIDetectionUtil` | AI 文本检测 | [文档](docs/AIDetectionUtil.md) |
| `DateUtil` | 日期时间格式化 | [文档](docs/DateUtil.md) |
| `TimeUtil` | 时间格式化与区间判断 | [文档](docs/TimeUtil.md) |
| `ScheduleUtil` | 定时任务调度 | [文档](docs/ScheduleUtil.md) |
| `YearUtil` | 年份处理 | [文档](docs/YearUtil.md) |
| `MonthUtil` | 月份处理 | [文档](docs/MonthUtil.md) |
| `WeekUtil` | 星期处理 | [文档](docs/WeekUtil.md) |
| `MathUtil` | 数学运算与单位转换 | [文档](docs/MathUtil.md) |
| `PercentageUtil` | 百分比计算 | [文档](docs/PercentageUtil.md) |
| `RandomUtil` | 随机生成 | [文档](docs/RandomUtil.md) |
| `StringUtil` | 字符串处理 | [文档](docs/StringUtil.md) |
| `WordsUtil` | 单词大小写 | [文档](docs/WordsUtil.md) |
| `ListUtil` | 数组操作 | [文档](docs/ListUtil.md) |
| `DictUtil` | 字典操作 | [文档](docs/DictUtil.md) |
| `IdUtil` | ID 与编号生成 | [文档](docs/IdUtil.md) |
| `TreeUtil` | 树结构转换 | [文档](docs/TreeUtil.md) |
| `ObjectUtil` | 对象处理 | [文档](docs/ObjectUtil.md) |
| `ReflectionUtil` | 反射 | [文档](docs/ReflectionUtil.md) |
| `JsonUtil` | JSON 编解码 | [文档](docs/JsonUtil.md) |
| `Console` | 日志输出 | [文档](docs/Console.md) |
| `LockUtil` | 跨进程文件锁与线程锁 | [文档](docs/LockUtil.md) |
| `RUtil` | JSON 响应 | [文档](docs/RUtil.md) |
| `Exceptions` | 异常类 | [文档](docs/Exceptions.md) |

## 🤝 参与贡献

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

## 📮 联系方式

- Author: wl4837
- Email: wl4837@163.com

---

🚀 希望 GouTool 让你的开发工作更加高效愉快！
