d_Pygen is a powerful, extensible, and intelligent command-line tool that generates complete, production-ready project structures using AI, templates, and plugins.
It supports multiple languages, dependency managers, plugin marketplaces, and AI providers --- allowing developers to bootstrap projects instantly with correct structure, dependencies, and configurations.
- Overview
- Installation
- Quick Start
- Features
- Command Reference
- Core Commands
- Config Commands
- Plugin Commands
- Template Commands
- Cache Commands
- Telemetry Commands
- CLI Options
- Example Workflows
- Configuration
- Supported Providers
- Supported Platforms
- Security
- License
- Author
d_Pygen is an intelligent CLI that generates complete project structures using:
- AI providers (OpenAI, OpenRouter, Gemini, Ollama, Groq, Together)
- Built-in templates
- Plugin system
- Dependency detection and installation
- Automatic environment and toolchain validation
- Template variants and plugin extensions
It eliminates manual setup and generates production-ready projects instantly.
pip install d_pygengit clone https://github.com/dangerSayan/d_pygen.git
cd d_pygen
pip install -e .Initialize configuration:
d_Pygen initCreate your first project:
d_Pygen create "FastAPI backend with JWT"Interactive mode:
d_Pygen createShow help:
d_Pygen helpShow version:
d_Pygen version- AI-powered project generation
- Template-based generation
- Plugin marketplace and plugin system
- Automatic dependency installation
- Toolchain and environment validation
- Interactive mode
- Template variants
- Cross-platform support
- Telemetry control
- Cache system
- Multiple AI provider support
d_Pygen create "project description"
d_Pygen create --template fastapi --variant minimal
d_Pygen create "FastAPI backend" --install local
d_Pygen init
d_Pygen doctor
d_Pygen update
d_Pygen version
d_Pygen helpd_Pygen config show
d_Pygen config set api_provider openrouter
d_Pygen config set api_key YOUR_KEY
d_Pygen config set api_model gpt-4o
d_Pygen config reset
d_Pygen config edit
d_Pygen config wizardd_Pygen plugins install fastapi
d_Pygen plugins uninstall fastapi
d_Pygen plugins list
d_Pygen plugins search
d_Pygen plugins info fastapi
d_Pygen plugins marketplace
d_Pygen plugins update fastapi
d_Pygen plugins update-all
d_Pygen plugins upgrade
d_Pygen plugins outdated
d_Pygen plugins validate fastapi
d_Pygen plugins publish
d_Pygen plugins registry update
d_Pygen plugins cache clear
d_Pygen plugins cache infod_Pygen templates listd_Pygen cache list
d_Pygen cache clear
d_Pygen cache infod_Pygen telemetry status
d_Pygen telemetry enable
d_Pygen telemetry disable
d_Pygen telemetry clearTelemetry is anonymous and optional.
| Option | Description |
|---|---|
--provider |
Select AI provider |
--template |
Use template |
--variant |
Template variant |
--install |
Dependency install mode |
--output |
Output directory |
--name |
Override project name |
--dry-run |
Preview only |
--force |
Overwrite existing |
--verbose |
Enable verbose logging |
--no-cache |
Disable cache |
d_Pygen init
d_Pygen create "FastAPI backend"
d_Pygen plugins install fastapi
d_Pygen doctor
d_Pygen updateConfiguration directory:
~/.d_pygen/
Contains:
config.json
plugins/
templates/
cache/
logs/
registry.json
- OpenAI
- OpenRouter
- Gemini
- Groq
- Together
- Ollama
- Windows
- Linux
- macOS
- WSL
- Plugin validation
- Safe file generation
- Plan validation
- No arbitrary code execution
MIT License
Sayan Bose
GitHub: https://github.com/dangerSayan/d_pygen
If you like this project, please star the repository.