Skip to main content

GouTool 🛠️

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

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

✨ 特性

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

🚀 安装

# 通过 pip 安装
pip install gou2tool

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

📚 快速开始

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

🤝 参与贡献

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

⚙️ 开发环境

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

✅ 运行测试

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

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

📦 发布

# 本地构建
python setup.py sdist bdist_wheel

# 发布到 PyPI
twine upload dist/*

📄 许可证

MIT License

📮 联系方式


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

Metadata

Release files for gou2tool 0.3.61

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.61
File Size Uploaded Provenance Actions
gou2tool-0.3.61.tar.gz 671.5 kB Without provenance Details for gou2tool-0.3.61.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / gou2tool-0.3.61.tar.gz

Download URL gou2tool-0.3.61.tar.gz
Size 671.5 kB
Tags Source
SHA-256 checksum
How to use checksums
75354bf79d81c5cea1e67bb8f76c393e20e2e9c7dccfe10e59306b8d1d34093f
BLAKE2b-256 checksum
How to use checksums
abfa41d0bbead82b21481a7c5d1798dac144c5d0be7a5ec5ff0c4467932b0385
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.61-py3-none-any.whl

Download URL gou2tool-0.3.61-py3-none-any.whl
Size 732.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf96adef09ca5dad8bd4b8074b928ce6c03f7bab501572b1d38366c2314c3d04
BLAKE2b-256 checksum
How to use checksums
0666d27ee87d62c21c4567ee2f5b05d03ce5cd623cac98f62ee09cd116e050db
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.61

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.61 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