Skip to content

【开源自荐】P3G:面向 Python 包开发者的现代工程化项目生成器🚀 #6526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Undertone0809 opened this issue Apr 6, 2025 · 0 comments

Comments

@Undertone0809
Copy link

P3G (Python Packages Project Generator) 一个面向 Python 包开发者的现代化项目初始化工具,目标是帮助开发者快速搭建符合最佳实践的包工程结构。

Github: https://github.com/undertone0809/P3G
Official Docuementation: https://p3g.zeeland.top/

🔧 项目简介

P3G 旨在提供一套“现代 Python 包开发的默认标准”。使用 Poetry 做依赖管理,内置 ruff 格式化 + 类型检查,集成 pytest 测试、pre-commit 钩子、GitHub Actions CI/CD、Docker 支持、文档自动化、Release 管理等功能。可以灵活生成一套高度工程化、即刻可用的 Python 包项目模板。

适合想要快速构建干净、高质量结构的包开发者,尤其是开源项目作者、独立开发者、小型团队等,我构建的所有 Python Packages 都使用该项目生成。

Image

💡 推荐理由

  • 专注于 Python 包开发场景,不像 Cookiecutter 那么宽泛
  • 默认集成现代工具链(ruff、Poetry、safety、bandit 等)
  • 自动化程度高:从代码风格到安全检测、CI 流程全部预配置好
  • 节省工程化成本,让开发者专注于写功能代码本身
  • 长期维护中,已用于多个实际项目中

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant