跳到主要內容
AI News HubLIVE
來源內容 · 翻譯待補全2 分鐘閱讀

待翻譯:Show HN: Pyrig – A tool that automates project setup and maintenance

文章摘要

AI 服務暫時不可用,以下為來源摘要,待恢復後補全翻譯:Notifications You must be signed in to change notification settings Fork 1 Star 23 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 2,242 Commits…

來源Hacker News AI作者: Winipedia
待翻譯:Show HN: Pyrig – A tool that automates project setup and maintenance
回報錯誤

更正管道尚未開通,可先複製下方文章資訊留存。

查看更正說明
直接讀正文

AI 服務暫時不可用,以下為來源正文,待恢復後補全翻譯。

Notifications You must be signed in to change notification settings Fork 1 Star 23 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 2,242 Commits 2,242 Commits .github .github docs docs src/pyrig src/pyrig tests tests .gitattributes .gitattributes .gitignore .gitignore .python-version .python-version CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTING.md LICENSE LICENSE README.md README.md SECURITY.md SECURITY.md prek.toml prek.toml pyproject.toml pyproject.toml uv.lock uv.lock zensical.toml zensical.toml Repository files navigation A tool that standardizes and automates Python project setup, configuration, development, and maintenance. What is pyrig? pyrig is a package and tool that rigs up your project. It scaffolds and initializes a complete, fully configured, installed and working Python project with one command and makes the process of developing and maintaining it more seamless and efficient by automating things like configuration management, CLI generation, testing infrastructure, and more. Requirements Python 3.12+ Git uv Quick Start uv init my-project --python 3.12 cd my-project uv add pyrig --dev uv run pyrig init See the Getting Started Guide for detailed setup instructions to also fully integrate with GitHub and CI/CD from the start. Features Project Scaffolding & Initialization pyrig init generates a complete project in one command that works out of the box. This includes everything a modern python project needs: Standardized directory structure Fully configured dev tools (linters, formatters, type checkers, test frameworks, git hooks, etc.) End-to-end CI/CD pipeline with GitHub Actions and integrated repository protection Complete and working CLI And much more... File & Configuration Management Every generated file is backed by a Python class that validates and merges automatically. Override any config by subclassing, or define entirely new config files — pyrig discovers and manages them for you. Run pyrig sync to create or update all config files at once. Run pyrig mk subcls to generate a subclass for overriding a specific file. Automatic CLI pyrig init sets up a CLI for your project that works immediately. Generate and add new commands by running pyrig mk cmd . An automatic version command is included that shows the version of your project. Run my-project version to see it in action. Mirror Test Generation & Maintenance Generate test skeletons with pyrig sync. This will generate test skeletons for all source modules and update them automatically as your project evolves. Multi-Package Inheritance and Extensibility Architecture Override and customize any and all behaviour to suit your project's needs. pyrig's classes are designed for inheritance and composition, allowing you to create custom configurations, tools, and more by subclassing and simply overriding methods. pyrig will automatically discover and use your custom classes without any additional configuration. Run pyrig mk subcls to generate a subclass for any pyrig class. CI/CD & Repository Protection Pyrig generates GitHub Actions workflows for CI/CD which automatically test and release your code. They also configure and apply repository protection settings and protection rulesets. Push your code to GitHub after initialization and see it in action. Commands Run pyrig --help to see a list of all available commands and their usage. Run pyrig --help for more information about a specific command and its usage. Run my-project --help to see the automatically generated CLI for your project. Documentation Full Documentation The manually written documentation CodeWiki AI-generated documentation Tutorials YouTube tutorials for pyrig MIT license Code of conduct Code of conduct Contributing Contributing Security policy Security policy Activity Stars 23 stars Watchers 0 watching Forks 1 fork Report repository

展開要點與分析

文章情報

工程師中級

要點

  • AI 服務暫時不可用,系統已先保留來源內容與降級後設資料。
  • Notifications You must be signed in to change notification settings Fork 1 Star 23 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit d…

技術影響

可能影響 Agent 架構、工具呼叫、工作流自動化和產品整合。

要點與分析由自動化流程生成,可能有誤,請結合原始來源核實。