summery233's python modules
Project description
summer_modules
233的Python工具箱 | Python Utility Collection by 233
简介
summer_modules 是一个面向日常开发、数据分析与安全自动化的 Python 工具箱,自 v1.1.0 起全面拆分为多个按需安装的子包(如 summer-modules-core、summer-modules-ai 等),通过聚合包 summer-modules 统一依赖。适合个人开发、自动化脚本、数据处理与安全分析等多场景。
安装与依赖管理
本项目使用 uv 进行依赖管理与打包,建议 Python 版本 ≥ 3.11。
# 安装 uv(官方推荐方式)
curl -LsSf https://astral.sh/uv/install.sh | sh
# 同步依赖并创建虚拟环境
uv sync
# 运行测试
uv run pytest
若只想安装某个子包,可直接
pip install summer-modules-core等;若安装聚合包,则pip install summer-modules。
项目结构与模块功能
自 v1.1.0 起,核心源码全部位于 packages/ 下的子包中:
├── packages/
│ ├── summer_modules_core/ # 通用核心工具、日志、配置加载等
│ ├── summer_modules_ai/ # AI/Deepseek 相关封装
│ ├── summer_modules_bot/ # 企业微信 Bot 等消息推送
│ ├── summer_modules_markdown/ # Markdown / 图床 / GitLab 图像托管
│ ├── summer_modules_charts/ # 图表绘制组件
│ ├── summer_modules_excel/ # Excel 读写与列名操作
│ ├── summer_modules_database/ # PostgreSQL、HBase 等数据库工具
│ ├── summer_modules_prefect/ # Prefect 工作池/部署工具
│ ├── summer_modules_security/ # 漏洞信息、威胁情报、ATT&CK 等
│ └── summer_modules_ssh/ # SSH 命令执行、HBase Shell 辅助
├── scripts/ # 辅助脚本(如版本依赖同步)
├── .github/workflows/ # CI / 发布流程
├── pyproject.toml # 聚合包配置(依赖所有子包)
└── README.md / CHANGELOG.md / config.toml
常用子包一览:
| 包名 | 说明 |
|---|---|
summer-modules-core |
通用工具、日志、配置加载、Web 请求辅助等基础能力 |
summer-modules-ai |
Deepseek 英译中等 AI 工具封装 |
summer-modules-bot |
企业微信机器人等消息推送能力 |
summer-modules-markdown |
Markdown 处理与图床、GitLab Image Host 支持 |
summer-modules-charts |
可视化与图表绘制工具 |
summer-modules-excel |
Excel 读写、列名查找、单元格操作 |
summer-modules-database |
PostgreSQL 分区、HBase API、数据导出等 |
summer-modules-prefect |
Prefect 工作池巡检、部署检测、日志桥接 |
summer-modules-security |
CVE/CNNVD/攻击矩阵解析、OTX 威胁情报、Nuclei 缓存等 |
summer-modules-ssh |
SSH 命令执行、交互式命令、HBase Shell 支持 |
快速上手(开发者)
# 克隆仓库后安装依赖
uv sync
# 运行单元测试
uv run pytest
# 进入某个子包示例
uv run python -m packages.summer_modules_security.examples.threat_intelligence.otx.example_otx_api
建议直接参考 packages/<module>/tests/ 与 examples/,涵盖各模块的典型用法。
贡献指南
- Fork 本仓库并新建分支
- 提交代码前请确保通过所有单元测试
- 提交 PR 时请详细描述变更内容
- 欢迎 issue 反馈与建议
版本管理与发布流程
- 遵循 Keep a Changelog 维护
CHANGELOG.md - 从
v1.1.0开始:更新根目录VERSION→ 执行scripts/bump_dependencies.py→ 推送v*tag - GitHub Actions 会在推送 tag 后自动执行测试并发布所有子包及聚合包到 PyPI(需配置
PYPI_TOKEN) - 主分支
main保持稳定,开发分支建议以feature/、fix/前缀命名
联系方式 & 致谢
- 作者:233Official
- 邮箱:ayusummer233@outlook.com
- 欢迎关注、Star、交流!
Changelog
详细变更请查阅 CHANGELOG.md。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file summer_modules-1.1.2.tar.gz.
File metadata
- Download URL: summer_modules-1.1.2.tar.gz
- Upload date:
- Size: 5.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bedba650a1791c9bf246dfc51b6aabc3d624cdf97e8d1ae9012550eb29c7f100
|
|
| MD5 |
21543770730b7c1b3b150d7516940365
|
|
| BLAKE2b-256 |
4eb985b47efd24a487509854583648d285d2f67558b0734d4c2a42feea541f48
|
File details
Details for the file summer_modules-1.1.2-py3-none-any.whl.
File metadata
- Download URL: summer_modules-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce3369380d1bc936142fa370394ea47b3df29908c209ecc583c7dfb19738658
|
|
| MD5 |
506818f9a87bf658b5e120b3e59d12d9
|
|
| BLAKE2b-256 |
b3a1ed4b61eb872d57dafc9425fc2d762c7280d8f8d15ead86b892afc4091ddb
|