Skip to content

nullhack/python-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

130 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ AI-Enhanced Python Project Template

Contributors Forks Stargazers Issues MIT License

Ship production-ready Python projects faster with AI-powered development workflows

Latest Release: v1.7.20260410 - Vivid Cardinal

Modern cookiecutter template delivering enterprise-grade Python projects with OpenCode AI agents, TDD/BDD workflows, and zero-config quality standards.

✨ What You Get

πŸ€– Enterprise AI Team - 5 specialized agents: Developer, Architect, Business Analyst, QA Specialist, Release Engineer
πŸ—οΈ SOLID Architecture - Object Calisthenics, Dependency Inversion, Protocol-based design with architect review
⚑ Zero-Config Setup - UV package manager, Ruff formatting, pytest + Hypothesis testing
🎯 Mandatory QA Gates - 4 quality checkpoints enforced by QA specialist throughout development
πŸ”„ Smart Releases - Hybrid calver versioning with AI-generated themed names
πŸ“‹ Epic-Based Workflow - Requirements-driven development with automatic feature progression

🎯 Perfect For

  • Startups building MVPs with enterprise standards
  • Teams needing consistent code quality and architecture
  • Developers wanting AI-assisted TDD/BDD workflows
  • Projects requiring rapid iteration with zero technical debt

πŸš€ Quick Start

Prerequisites

Install the required tools:

# Install OpenCode AI assistant
curl -fsSL https://opencode.ai/install.sh | sh

# Install UV package manager (replaces pip/poetry/virtualenv)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install Cookiecutter
pip install cookiecutter

Create Your Project

# Generate your AI-enhanced Python project
cookiecutter gh:nullhack/python-project-template

# Enter your project directory
cd your-project-name

# Initialize AI development environment
opencode
/init

# Start an epic with requirements gathering
@requirements-gatherer  # Business analysis
@developer /skill epic-workflow start-epic "MVP Features"

Instant Development Ready

# Install dependencies and activate virtual environment
uv venv && uv pip install -e '.[dev]'

# Run the complete development workflow
task test     # 100% coverage + property-based tests
task lint     # Ruff formatting + static analysis  
task doc-serve # Live documentation server

# Deploy with confidence
@repo-manager /skill git-release

πŸ›οΈ Architecture & Workflow

Epic-Based Development with Mandatory QA Gates

  1. Requirements Gathering β†’ Business analyst conducts stakeholder interviews
  2. QA Gate #1 β†’ Requirements completeness review by QA specialist
  3. Test-Driven Development β†’ BDD-style tests with pytest + Hypothesis
  4. QA Gate #2 β†’ Test quality and coverage review
  5. Design & Architecture β†’ Pattern selection and SOLID design by architect
  6. Implementation β†’ TDD methodology with Red-Green-Refactor cycle
  7. QA Gate #3 β†’ SOLID/DRY/KISS compliance review
  8. Final Quality β†’ Comprehensive quality checks
  9. QA Gate #4 β†’ Final approval before feature completion
  10. Automatic Progression β†’ System advances to next feature in epic

Smart Release Management

  • Hybrid Versioning: v{major}.{minor}.{YYYYMMDD} (same-day releases increment minor)
  • Themed Releases: AI-generated names based on PR sentiment
    • Performance: "Swift Cheetah" "Lightning Falcon"
    • Security: "Vigilant Owl" "Guardian Bear"
    • Features: "Creative Fox" "Innovative Dolphin"

πŸ”§ Included Technology Stack

Development

  • Python 3.13+ with modern type hints
  • UV for blazing-fast dependency management
  • Ruff for linting and formatting (replaces 8+ tools)
  • PyTest + Hypothesis for comprehensive testing

AI Integration - Your Enterprise Development Team

  • @developer: Development Lead implementing TDD workflow with QA integration
  • @architect: Software Architect ensuring SOLID principles and design patterns
  • @requirements-gatherer: Business Analyst using BABOK methodology
  • @overseer: QA Specialist enforcing mandatory quality checkpoints
  • @repo-manager: Release Engineer handling versioning and deployments

Quality Assurance

  • 100% test coverage requirement
  • Static type checking with Pyright
  • Property-based testing for edge cases
  • Mutation testing with Cosmic Ray

Documentation & Deployment

  • pdoc for API documentation with search
  • pytest-html-plus with BDD docstring display
  • Docker containerization
  • GitHub Actions CI/CD
  • Automated documentation deployment

πŸ“ˆ Template Roadmap

  • ✨ AI-powered development workflow with OpenCode integration
  • πŸ—οΈ SOLID architecture enforcement with object calisthenics
  • πŸ€– Automated repository management with smart releases
  • ⚑ Modern toolchain (UV, Ruff, PyTest, Hypothesis)
  • πŸ“‹ Epic-based workflow with automatic feature progression
  • 🎯 Mandatory QA gates with dedicated QA specialist agent
  • πŸ’Ό Business analyst agent for requirements gathering
  • πŸ”’ Advanced security scanning and SBOM generation
  • πŸ“Š Performance benchmarking and optimization workflows

🀝 Contributing

Contributions make this template better for everyone! We welcome:

  • πŸ› Bug reports and fixes
  • ✨ New agents and skills
  • πŸ“š Documentation improvements
  • 🎯 Workflow optimizations
# Quick contribution setup
cookiecutter gh:nullhack/python-project-template
cd your-contribution
@developer /skill feature-definition
@repo-manager /skill pr-management

πŸ“„ License

MIT License - see LICENSE for details.

πŸ™ Credits

Built on the shoulders of giants:

  • OpenCode - AI-powered development platform
  • UV - Blazing fast Python package manager
  • Ruff - Extremely fast Python linter
  • Hypermodern Python - Modern Python practices
  • Hypothesis - Property-based testing framework

⭐ Star this repo if it powers your next breakthrough!