Skip to content

nullhack/python-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

98 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

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

✨ What You Get

πŸ€– AI-Powered Development - OpenCode agents for architecture review, TDD implementation, and repository management
πŸ—οΈ SOLID Architecture - Object calisthenics, dependency inversion, and protocol-based design
⚑ Zero-Config Setup - UV package manager, Ruff formatting, PyTest + Hypothesis testing
🎯 Quality Enforced - 100% coverage, static typing, property-based testing
πŸ”„ Smart Releases - Calver versioning with themed releases (v1.2.20240315r1 "Swift Cheetah")
πŸ“‹ Complete Workflows - 7-phase development cycle from prototype to production

🎯 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 developing with AI assistance
@developer /skill feature-definition

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

7-Phase AI Development Cycle

  1. Feature Definition β†’ SOLID principles planning with acceptance criteria
  2. Prototype Validation β†’ Quick scripts with real data capture
  3. Test-Driven Development β†’ BDD-style tests using pytest + hypothesis
  4. Signature Design β†’ Protocol-based interfaces with type safety
  5. Architecture Review β†’ AI architect validates SOLID compliance
  6. Implementation β†’ Method-by-method TDD with real prototype data
  7. Quality Assurance β†’ Automated quality gates and deployment

Smart Release Management

  • Hybrid Versioning: v{major}.{minor}.{YYYYMMDD}r{revision}
  • 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

  • OpenCode agents for development automation
  • Architect agent for design review and SOLID compliance
  • Repository manager for releases and PR workflows

Quality Assurance

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

Documentation & Deployment

  • MkDocs with modern theme
  • 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)
  • 🌐 Multi-language template support (TypeScript, Rust)
  • πŸ”’ 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!