
向您展示一个python cookiecutter,用于在python 中快速启动polylith。如果您不知道什么是 polylith,请阅读文档,对于不耐烦的读者:
polylith 是一种软件架构,旨在构建简单、可维护、可测试和可扩展的后端系统。它通过在系统规模上应用功能思维来实现这一点,将代码视为可以组合成功能的构建块。
python-polylith 是允许我们在 python 中实现此功能的工具。
我不会详细介绍这种方法的优点。在本文中,我向您介绍诗歌-poly-cc,这是一个非常有主见的 cookiecutter,用于使用 python-polylith 启动项目。
您可以首先安装 cookiecutter 并使用以下命令生成项目:
cookiecutter https://github.com/ybenitezf/poetry-poly-cc.git
回答问题,你就很好了。你最终应该得到类似的结果:
. ├── license ├── readme.md ├── bases ├── build-packages.sh ├── components ├── development │ └── __init__.py ├── poetry.toml ├── projects ├── pyproject.toml ├── update-locks.sh └── workspace.toml
第一步包含在 readme.md 中:
奔跑
git init poetry install # install pre-commit hook poetry run pre-commit install # install pre-commit dependencies poetry run pre-commit run -a
以上就是用于快速启动 Polylith 的 Cookiecutter的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号